Page 5 of 14 FirstFirst ... 2345678 ... LastLast
Results 41 to 50 of 135
  1. #41

    Default Re: can you give me some tips to become a good programmer


    This is my tip to you brother to be a good/better/best programmer. Follow my steps.

    1. Gather complete requirements.
    Take the time to write down what the end product needs to achieve. Clarity of thought at this stage will save a lot of time down the line.

    2. Write an implementation plan (or model).

    2.1. For something small and self-contained, this might just be a basic flowchart or an equation.

    2.2. For larger projects, it helps to break it into modules and consider what job each module must do, how data gets passed between modules, and within each module how it will function.

    2.3. Although it is fun to dive straight into code, it is equally tedious to spend hours debugging. By taking the time to design the structure on paper, you will drastically reduce your debugging time (and you may also spot more efficient ways of doing things even before you write the first line of code).

    3. Add Comments to your code.

    Whenever you feel your code needs some explanation, drop some comments in. Each function should be preceded by 1-2 lines describing the arguments and what it returns. (Comments should tell you why more often than what. Remember to update the comments when you update your code!)

    4. Use naming conventions for variables.

    It will help you keep track of what type the variable is and also what it's purpose is. Although this means more typing than x = a + b * c, it will make your code easier to debug and maintain. One popular convention is Hungarian notation where the variable name is prefixed with its type. e.g. for integer variables, intRowCounter; strings: strUserName. It doesn't matter what your naming convention is, but be sure that it is consistent and that your variable names are descriptive.

    5. Organize your code.
    Use visual structure to indicate code structure. i.e. indent a code block that sits within a conditional (if,else,...) or a loop (for,while,...) Also try putting spaces between a variable name and an operator such as addition, subtraction, multiplication, division, and even the equal sign (myVariable = 2 + 2). As well as making the code more visually elegant, it makes it much easier to see the program flow at a glance.

    6. Test.
    Start by testing it with inputs that you would typically expect. Then try inputs that are possible but less common. This will flush out any hidden bugs. There is an art to testing and you will gradually build up your skills with practice.
    Write your tests to always include the following:

    6.1 Extremes: zero and max for positive values, empty string, null for every parameter.

    6.2 Meaningless values, Gibberish. Even if you don't think someone with half a brain might input that, test your software against it.

    6.3 Wrong values. Zero in a parameter that will be used in a division, negative when positive is expected or a square root will be calculated. Something that is not a number when the input type is a string, and it will be parsed for numeric value.

    7. Practice. Practice. Practice.

    8. Be prepared for change.

    In a realistic working environment, requirements change. However, the clearer you are at the start about the requirements and the clearer your implementation plan, the less likely those changes will be down to misunderstanding or "Ah, I hadn't thought of that" scenarios.

    8.1 You can take an active role in improving clarity of thinking by presenting your requirements document or your implementation plans before coding to ensure that what you are planning to create is actually what's been asked for.

    8.2 Structure the project as a series of milestones with a demo for each block. Approach the programming one milestone at a time - the less you need to think about at any moment, the more likely you will think clearly.

    9. Start simple and work towards complexity.

    When programming something complex, it helps to get the simpler building blocks in place and working properly first.
    For example, let's say you want to create an evolving shape on screen that follows the mouse and where the degree of shape change depends on mouse speed.

    9.1 Start by displaying a square and get it to follow the mouse, i.e. solve movement tracking on its own.

    9.2 Then make the size of the square relate to mouse speed, i.e. solve speed-to-evolution tracking on its own.

    9.3 Finally create the actual shapes you want to work with and put the three components together.

    9.4 This approach naturally lends itself to modular code writing, where each component is in its own self-contained block. This is very useful for code reuse (e.g. you want to just use the mouse tracking in a new project), and makes for easier debugging and maintenance.

    I hope TS this methods/steps can help you in future...

  2. #42

    Default Re: can you give me some tips to become a good programmer

    Quote Originally Posted by KillMe View Post
    Bill Gates is not a good programmer.
    Steve Jobs was not a good programmer.
    Mark Zuckerberg is not known to be a good programmer but he probably knows how to code.

    All of them are successful in computing business world.

    So unsa man jud, magpaka "good programmer" pa ta ani? Murag kita raman gibinuangan ani sa mga companya, gigamit ra ta sa mga companya para makakwarta cla through our efforts.

    Lastly, I think ang uso karon panahona kay mga designers ug artists. Para nako mas dali sila makakita ug sideline compared to software programmers/developers.

    Kasagaran sa mga codes kay pwede naman lang i Google... Gamay lang ilad ilad sa code then okay na dayon para sa customer not knowing naa diay hidden bug ang program.

    So unsa man jud, mag programmer pa ta ani? Anyway, sa ako part as a Application Developer "kunohay", wala ko choice but to continue kay mao naman nasudlan nga career.
    fyi lang... if you put bug in your code and customer finds out from another programmer you are screwed ka pwede ka ikiha.... thats why kung programmer ka naay ma gukod ang client kung designer ka dili kaayo...

    the days of sneaky coder are over there are only few left but most are not... think again if you say nga wala na kaayo ang mga developer i keep getting left and right projects that i cant keep up anymore tungod sa sunod2x, is that what you called dili dayon kakita?, if you are dependent sa mga online site for freelance work, then good luck.... only newbies do that... if you already have a portfolio you dont need to find the client they'll find you!!

  3. #43

    Default Re: can you give me some tips to become a good programmer

    Quote Originally Posted by salbahis View Post
    fyi lang... if you put bug in your code and customer finds out from another programmer you are screwed ka pwede ka ikiha.... thats why kung programmer ka naay ma gukod ang client kung designer ka dili kaayo...

    the days of sneaky coder are over there are only few left but most are not... think again if you say nga wala na kaayo ang mga developer i keep getting left and right projects that i cant keep up anymore tungod sa sunod2x, is that what you called dili dayon kakita?, if you are dependent sa mga online site for freelance work, then good luck.... only newbies do that... if you already have a portfolio you dont need to find the client they'll find you!!
    @salbahis: Bro, dili ka good programmer... "Expert" na tawag nimo. Maayo ka dha oi naa ka left and right projects. Pang hatag dha beh. Suya mi diri nimo dah!! Wala ka dha mag hiring kay apply ko ug ako migo nga programmer diri.

    OT: Unsa mga systems imo kasagaran gipang roll-out?

  4. #44

    Default Re: can you give me some tips to become a good programmer

    @KILLME: My own point of view. Money, income and revenue is the main objective. There's no such thing a 100% perfect systems done by a good programmer. Though you are using the best tools we have. Take a look at Microsoft or Oracle, it's not the systems their talking about but in reality it's the money...

  5. #45

    Default Re: can you give me some tips to become a good programmer

    Quote Originally Posted by messerchtmitt View Post
    @KILLME: My own point of view. Money, income and revenue is the main objective. There's no such thing a 100% perfect systems done by a good programmer. Though you are using the best tools we have. Take a look at Microsoft or Oracle, it's not the systems their talking about but in reality it's the money...
    Mao gyud sir. 100% agree.

  6. #46

    Default Re: can you give me some tips to become a good programmer

    contribute to the open source community, wish to be a committer in any open source projects out there. by contributing and getting rejected, you'll learn.

    don't be afraid to make mistakes, coz by that, you'll grow.

    another tip to become a good programmer...

    When you write code, write it for the future you.

  7. #47

    Default Re: can you give me some tips to become a good programmer

    practice practice practice....

  8. #48

    Default Re: can you give me some tips to become a good programmer

    TAE = Trial And Error

  9. #49

    Default Re: can you give me some tips to become a good programmer

    IMO, Programming is an art, put your heart in it and be passionate

  10. #50

    Default Re: can you give me some tips to become a good programmer

    Quote Originally Posted by SYNCH View Post
    IMO, Programming is an art, put your heart in it and be passionate
    true, programming is like a work of art by pablo picasso!!

  11.    Advertisement

Page 5 of 14 FirstFirst ... 2345678 ... LastLast

Similar Threads

 
  1. Want To Buy: Want to buy LOT....can you give me tips on buying a legitimate LOT?
    By inxss4 in forum Real Estate
    Replies: 33
    Last Post: 01-23-2013, 08:30 PM
  2. Give Me some tips on how to be a gooD Breeder especially Labrador
    By calumbaanamarie in forum Pet Discussions
    Replies: 10
    Last Post: 10-04-2012, 01:05 AM
  3. Replies: 29
    Last Post: 07-03-2008, 02:37 PM
  4. Scrapbookers/card makers, could you give me some adhesive advice?
    By exquisitemoments in forum Hobbies & Crafts
    Replies: 2
    Last Post: 02-02-2007, 09:30 PM
  5. give me some tips on what to buy....
    By Tin_Tin in forum Computer Hardware
    Replies: 16
    Last Post: 02-09-2006, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top