Showing posts with label basic. Show all posts
Showing posts with label basic. Show all posts

Thursday, December 07, 2006

One prove that a good user interface design is needed in all aspect of life :
I got a post of comment regarding my previous blog about web developer skill, it said that I have to put valid source reference URL for every quote that I post. Hmm... I did doing it from start, but due to my personal recklessness, i put the reference,as hyperlinked text, not a raw URL, on the lefthand side of the under the quote body, as oppose to the convention to put it right justified to be more identifiable as cross reference.
Aside from the fact that the commentary is actually a bit biased since it comes from a friend of mine who is a web designer who refused to learn programming :)) , this case in general is a good example of user interface intuitiveness and formal convention, so beware, for everything that touches human, it should be simple but carefully crafted for full usability...

Saturday, November 18, 2006

Tuesday, November 14, 2006

Before you start your quest to become a Jedi programmer, remember these small things :
  • Most language have end of line delimiter, like C, C++, C#, java, PHP and many other C like languages, use ";" ( semicolon ) to mark end of line then telling the compiler to treat subsequent strings as new statement. Even the masters can forget this from time to time, but it's a good habit to make sure you hit semicolon after typing a complete statement.
  • Matching bracket, wheter it's curly bracket "{}", or any other brackets "( )", "[]" always make sure that they come as pair... No bracket should live alone :)... hints : everytime you need to type a bracket, type as pair, then move back your cursor to type in and fill in the space between the two...
  • Some languages has it's own quirks, and sometimes not too obvious for uninitiated ones, like Python, it uses "tab" to specify blocks of statements... so if in most other languages you put tabs for readability and make your codes aesthetically beautiful, then in Python, you could actually get error if you don't tidy up your codes...
  • Make comments... put comments, any comments on any functions, or any parts of the codes that you deem important... may not be meaningful at the time you write the code, but it will be after sometime and you need to review your own code... Well, don't bother about other people, just do it for your own sake, that will be enough...
Another thing is, if you code doesn't generate error the first time you run it, then must be something wrong with it :) could be the error suppression is working or simply because you only type in an example from the book as is... come on, be more adventurous, add more code, try those built in functions, use those weird syntaxes... the more you try, the more you gain...
So you want to be a computer programmer...
Ok, first, choose your first language to learn, most modern programming language has powerful features yet easy to learn, like good old Basic with its modern incarnation ( Visual Basic, or Gambas in Linux world )
for the daring souls, try choose Pascal, C, C++,C# or Java as your first language, and if you can survive, then you're on the way to become a true Jedi ( hehehe... )
for those who really, really want to make money fast from programming, try web programming... PHP will be a nice choice for a start... the syntax is much like C, and if you can get into advanced PHP then you can easily start learn C.. although this learning path ( PHP to C ) is not recomended in formal school for computer science and the fact that C is the first language to learn there, but hey, I ain't talking about taking programming school here ...
For those adrenaline junkie, choose Assembly, not really sure if chicks love it if you say "I like extreme sports, I program in Assembly"...
Anyway, for any language you have choosen, keep in mind that there's no ultimate language that can solve all problems.
Another rule of thumb is : Good programmer must learn another language at least one new language a year...
Happy coding :)