Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

worst advice for starting programmers

Name: Anonymous 2008-10-05 16:24

do you have common knowledge of programing? or are you starting from square one?

If you have a understanding of structuring a language then go ahead and jump into something like Visual Basic or C++, depending if you want to program object oriented or not...

but if you have no knowledge, start with something easy like Pascal, just to learn how to structure things...

Alex broke it down pretty well...

Name: Anonymous 2008-10-05 16:27

my university's Undergraduate Computer Science Degree program is one of the best in the nation (Baylor University) and we learn C++ first, followed by 80x86 Assembly Language and Java. Also our Video Game Development club (run by 3 of the CompSci professors) uses Game Maker 7 as our primary tool.

Name: Anonymous 2008-10-05 16:28

<=> is commonly called the ``Spaceship Operator''.

Name: Anonymous 2008-10-05 16:30

Anything that implies doing something that's not reading SICP.

Name: Anonymous 2008-10-05 17:55

Why Pascal is not my favorite Language

Name: Anonymous 2008-10-05 19:02

You should start learning PHP. It is easy for novices to start writing dynamic database driven websites with only basic knowledge of HTML. You can also start contributing extensions to popular open source projects like Joomla! and Drupal.

Name: Anonymous 2008-10-05 20:52

Be sure to write your own wrappers for all APIs no matter how trivial. And to be sure, wrap the wrappers as well.
int MyBeep()
{
   Beep();
}

Also, never use magic numbers
for(i = 0; i < 10; i++) //NO! BAD!!!

for(i = ZERO; i > TEN, i++) //PERFECT

Name: Anonymous 2008-10-05 21:01

Read Design Patterns: Elements of Reusable Object-Oriented Software.

Name: Anonymous 2008-10-06 15:29

>>8
Wins the thread. There's no single worst advice one could give.

Name: Anonymous 2008-10-06 15:32

Read Head First Design Patterns.

Name: Anonymous 2008-10-06 16:00

I've just started learning C in uni and it's not easy. One small mistake and it wont compile. Also it's just not logical whatsoever.

Name: Anonymous 2008-10-06 16:01

Read Sicp.

Name: Anonymous 2008-10-06 16:11

Read /prog/, they're smart people and can teach you a thing or two.

Name: Anonymous 2008-10-06 16:22

Always prefix the name of your variables with the type of variable they are. Example:

boolean boolean1;

Name: Anonymous 2008-10-06 16:26

>>11
C may be hard for you at first, but don't worry, once you've gotten the basics of it, then you will be able to move on to more respectable languages like Javascript.

Name: Anonymous 2008-10-06 16:54

Learn Systems Hungarian and use it in every project no matter what anyone else says.

Indent your code using three spaces.

Name: Anonymous 2008-10-06 17:42

javascrip programming language research by alan gay the faggot who sucks.

Name: Anonymous 2008-10-06 18:04

>>14
don't forget to add the description in the name too, it makes debugging easier!

boolean boolean___boolret___used_for_storing_return_values = false;

Name: Anonymous 2008-10-06 19:36

>>11
C's syntax was designed to be as easy to parse as possible.  I have no idea how they got from that goal to the sheer amount of ambiguity C syntax contains.

Name: Anonymous 2008-10-06 21:23

>>19
My guess is that it was actually B that was meant to be as easy to parse as possible, but the extra features that turned it into C (mainly the type system) also brought ambiguity into the language.

Name: Anonymous 2008-10-06 21:35

>>2
SIC'EM BEARS!

but sage for mentioning Baylor on /prog/

please don't sully our name again.

Name: Anonymous 2008-10-06 22:28

>>11
One small mistake and it wont compile.
Tell me again why you want broken programs to compile without complaint?

Name: Anonymous 2008-10-07 0:20

>>22
Because he's an expert PHP developer.

Name: Anonymous 2008-10-07 0:36

Get a dog, name it Haskell.

Name: Anonymous 2008-10-07 1:30

>>11
it's just not logical whatsoever
try Prolog

Name: Anonymous 2008-10-07 2:03

>>24
Feed it chocolate. Seriously, I bet that's what Haskell's owner did, but he's not man enough to admit so he blames it on a fictional old lady who dislikes dogs.

Name: Anonymous 2008-10-07 4:11

>>25
lets be logic

Name: Anonymous 2008-10-07 6:53

use M-x vip-mode

Name: Anonymous 2008-10-07 6:58

>>26
He fed her uranium.

Name: Anonymous 2008-10-07 12:22

>>22
I think you should read the subject of the thread one more time.

Name: Anonymous 2008-10-07 13:24

Awful advice for beginers:

-Start with C. You will learn how to program "right."

-If you want to learn Object Oriented Programming learn C++. (too many of you don't understand that C++ isn't an object oriented language. It is a language provides object oriented extensions that let you implement object oriented concepts yourself. There is an important distinction there.)

-Learn Java.

-If you want to do web development learn PHP.

>>7

Faggot, 0 and 1 are not magic numbers. But 10 (despite having both 0 and 1) is in case you are unclear about that. But in all honesty, if you did put yourself in a place where it seems like using a magic number is needed, then you did something terrible wrong and you need to stop programing.

Name: Anonymous 2008-10-07 13:28

0 and 1 are magic numbers in perl because they don't produce warning when used in void context.

Name: Anonymous 2008-10-07 14:52

>>32

Different kind of magic number.

In this context it means some non-obvious constant whose value is significant to the operation of a program and that is inserted inconspicuously in-line (hard-coded).

1 and 0 aren't as their use is usually very obvious. True/False, an increementor and so on.

In your context it is a magic number for perl, because perl lacks a no-op operator. Their use in perl should be obvious for people who know shit about perl.

Name: Anonymous 2008-10-07 15:08

>>33
I know Perl is shit, and their use is not obvious to me.

Name: Anonymous 2008-10-07 17:36

>>33
perl lacks a no-op operator
;  # VALID PERL CODE

Name: Anonymous 2008-10-07 18:46

Learn Visual Basic

Name: Anonymous 2008-10-07 18:56

int x;;;;;;;;;;;;     // VALID JAVA CODE

Name: Anonymous 2008-10-07 18:59

>>34
That's because you're a moron, on both counts.

Name: Anonymous 2008-10-08 12:32

start your programming career by learning VB.

Name: Anonymous 2008-10-08 14:08

>>35
  if 1; # invalid perl code
1 if 1; # valid perl code

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List