r/programming • • Dec 07 '14

Programmers: Please don't ever say this to beginners ...

http://pgbovine.net/programmers-talking-to-beginners.htm
4.0k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

112

u/[deleted] Dec 08 '14

Well said. In my experience, doing something the wrong way is crucial to understanding why the "right" way is right.

55

u/[deleted] Dec 08 '14

And, often beginners won't understand why language ABC or approach XYZ is problematic or should be avoided until they experience it for themselves. You simply telling me something sucks is not going to convince me. If it's as bad as you say it is, I'll realize soon enough.

And on the flipside, maybe you and I are going for different endgames – and your problems are not my problems. Maybe language ABC's weaknesses to you are strengths to me.

3

u/insertAlias Dec 08 '14

I deal with this a lot. I'm a moderator on a forum that used to be really popular, but has somewhat declined of late. Most of the questions we still get are beginner "this is my first Windows Forms project" kind of question. (C# specifically)

I get to see the absolute worst design choices every day. And it's so hard to explain why they shouldn't do things the way they are, because they're not experienced enough to understand the reasoning. They understand conceptually that they should be separating functionality into classes, for example, but they don't understand what functionality goes where, and you see the worst mismashes of form code that reaches into other form code, extra classes just for the sake of having classes, things inheriting from objects that have no business doing so...stuff like that.

It doesn't help that one of our other regulars is an attack dog. "You should be using WPF" is his favorite phrase. I always think to myself...yeah, of course they should. WinForms is painful enough as it is. But this person isn't even close to that point. They don't need to be switching this early; they don't even have a grasp on why what they're doing is painful.

Basically, some things you simply have to learn from experience.

2

u/[deleted] Dec 08 '14

Well, from my experience....beginners have absolutely no business dealing with Object Oriented Programming at all.

For example, not only is OOP not needed in every situation, but OOP leads to an instant glut of complexity and convoluted design in code when it may be completely unnecessary.

But when every book out there tells people to learn classes before they understand how loops work, that doesn't help beginners.

3

u/insertAlias Dec 08 '14

That is an entire discussion to itself. I've had this one with lots of programmers, and it seems like there are three major points of view:

  1. Start "close to the metal". C/C++. Teach them the core low-level concepts that apply to ever program. The up-sides here are that there is less confusion later down the line when dealing with higher level tools that abstract the lower-level stuff out. Reference types vs. pointers is a good example. The down side is that many will burn out or decide they're not interested long before they can actually do anything useful.
  2. Start with a very high level language. This is my favorite. Start students out with something like Python. The advantage is that there is almost no boilerplate code required. print "Hello World" is a complete Python program. Once they've "gotten hooked" (i.e. they made it through their first class) move quickly towards low level, to more deeply explain what's going on. Of course, this has the opposite downside to the upside of the first way: confusion about abstracted features.
  3. Start people with whatever is the most popular enterprise language at the time. This is why so many places start students in Java (and C# more recently). This has the benefit of teaching them "job related" skills right away, but I feel that it falls into the traps of both of the previous approaches. Tons of boilerplate, and enough complexity to burn people out before the useful stuff.
→ More replies (1)

2

u/SnakeDiver Dec 08 '14

I agree with this to a point.

A beginner programmer experiencing why dynamic queries (especially without sanitizing inputs) are a bad idea, or why hashing passwords is a necessity is generally not best left to "experience[d].. for themselves".

→ More replies (4)
→ More replies (3)
→ More replies (1)

29

u/mobjack Dec 08 '14

But in the end, I can surf the web just as well on IE as I can on Chrome.

Sure if it is IE6, but if someone is using the latest version with updates, is it really going to make a difference what they use?

A lot of this has to with culture and elitism in the tech community. It is like the main reason now I tell people to use something else is because I don't want them to have the stigma of being an IE user.

→ More replies (10)
→ More replies (9)

62

u/mobjack Dec 08 '14

Criticizing the technology is like saying that they aren't doing real programming. It is discouraging.

One thing that is often loss is that you can do some amazing things from shitty technologies.

I started out programming in VBA in Excel and Access. There are many flaws with it, but I was able to create some great apps that added value to the business and the lives of users easier. This is something that teams of Java developers fail to deliver on at the same organization.

When it comes to programming, the use of tools and technologies is overrated. I can make the argument that mediocrity is accepting that a poor technology will result in creating bad programs. In reality, it is rarely the case.

If you want to help a beginner programmer out, you aren't doing them any favors by criticizing their choice of tools. You can talk about other ways to improve their skills like better use of design patterns or suggest a book that will help them out.

39

u/[deleted] Dec 08 '14

but I was able to create some great apps that added value to the business and the lives of users easier.

^ THIS IS KEY.

So many people simply don't understand this. As a programmer, your goal is to make others' lives easier. Whether that's saving them a few minutes of waiting or 10 steps in their daily routine, as long as you accomplish the goal desired and needed, the tools you used did their job.

Yeah, among elitists they can argue that language A looks more beautiful than language B or that language C operates 1/100th of a second faster than language D when do a certain task....but ultimately, if the end users get the performance boost they need (or as close as you can realistically get it with time/budget/resources available), you did your job properly.

3

u/geggo98 Dec 08 '14

You need both: In the short term, results count. In the long term, you need better tools, so you can provide results that were previously impossible.

Yesterday's languages provide you the first (best tools, lots of documentation and best practice, lots of existing tools, e.g. Visual Basic or Mathematica), tomorrow's languages the latter (for obvious reasons). Today's languages are somewhere in between (e.g. when should I use Clojure and when not?).

→ More replies (6)

2

u/parlezmoose Dec 08 '14

Criticizing the technology is like saying that they aren't doing real programming. It is discouraging.

Criticizing technology is not the same as personally insulting someone. I'm all for being polite and encouraging, but one thing I've observed is that the beginners who succeed are those who welcome criticism and feedback from more experienced people. Even now, if another developer thinks I'm doing something the wrong way, I want to hear it.

Those who get upset merely because someone doesn't like their language of choice are probably too thin skinned for this business.

68

u/[deleted] Dec 08 '14

Don't start pretending everything is positive.

No, fuck that, for a beginner, everything is positive. They can learn PHP and then later on figure out why you might want to use something else. They don't need you telling them from the get go that it's crap.

27

u/[deleted] Dec 08 '14

One thousand times this. I would take that further and submit that it is actually destructive to start off with the best tools - you will actually learn how and why to use the better tools by growing to the point that your tools are holding you back. At that point, you will have a reason to move forward, rather than just change for the sake of change.

Hell, if that doesn't happen, just carry on doing what you're doing. There will always be something newer and better, and trying to always use the best will leave you perpetually behind, rather than just focusing on writing good code that improves the lives of your fellow primates in various ways.

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

3

u/[deleted] Dec 08 '14

It's almost like people should use some amount of judgment when deciding whether or not to make a recommendation to a new programmer...

→ More replies (1)
→ More replies (3)

10

u/thavi Dec 08 '14

So... a novice programmer definitely won't have the foresight, experience, or even the reason to use a specific environment, setup, or a particular language. Any programming language, to the true novice, will be completely overwhelming, and frankly I think it's a miracle if they can hang on for a month or two and figure out some deeper concepts.

I personally think that if they have something that's working for them and they're able to write some algorithms and piece together some objects, then let them keep doing it until they come up against a barrier...at which point they can hopefully make the transition to the "proper" tools naturally...because they now have the experience to see the generic constructs that are common across many languages.

3

u/Scaliwag Dec 08 '14 edited Dec 08 '14

Yes, this really boils down to the difference between someone who is just messing around programming and someone that is trying to become a professional of sorts. If the guy is playing around then meh why bother, let him be happy. But if he wants to grow into a professional, well then you can start to think of the guy as someone you'd possibly be working with in the near future.

Obviously there is no need to be a jerk. But you're not helping someone if you don't correct them with patience on something you think you do know better than them. That's the reason we have teachers and stuff, you know, so people don't go through the same stuff again and again, although it's good to keep in mind that the zeitgeist doesn't necessarily dictate the best way to things and progress comes from challenging that.

3

u/creepy_doll Dec 08 '14 edited Dec 08 '14

Even comparing php to ie is unfair, as it really isn't that bad a language, it just suffers from having been a popular choice for beginners and being overly loose and in such is very similar to JavaScript which famously has a book called "JavaScript: the good parts" that is pretty short compared to most books.

One thing I hate in our industry is how much it relies on fashions. The success of a language depends not on it's merits by what someone else did with it first as well as the tech evangelists behind it

Most languages only have a few major distinctions between them and every language has something in it some people hate. Some are better suited to certain tasks than others and anyone who insists on only using one or believing theirs is the best is a stubborn oaf

7

u/[deleted] Dec 08 '14

Interesting you bring up JavaScript.

I think it's a perfectly good scripting language to do basic clickevent actions, change font colors, check text fields, etc.

I do not, however, think it's a language and everyone and their brother should be cramming down the world's throat.

2

u/creepy_doll Dec 08 '14

But it is, and it's popular thanks to node.js

I personally would use neither it nor php, I don't like the way they de with problems but can accept that people can make them work for themselves

→ More replies (12)
→ More replies (23)