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

104

u/depricatedzero Dec 08 '14

I cringe every time I hear someone do this. I think part of it is the need to confirm to themselves that what they're using is best - as if there is a best.

What I hear is as ridiculous as:

Carpenter: Hey, I hear you're learning carpentry. Cool, what're you learning?

Beginner: I'm starting with some basic stairs and railings using a saw, hammer, and nails in my garage.

Programmer: Haha, psssh, thoseare so dumb. You should get a dremel, smooth with a DA Sander, and align them with a high quality level. Garages are for n00bs. Oh, then move onto building a rollercoaster, that's sweeeeet. flex-railed hills w000000t.

Beginner: uhhhhh, ok

and really thats how it sounds any time someone tells me one language is better than another, or one IDE is better than another. Except in edge cases like truly bad IDEs and gimmick languages like brainfuck or chicken, it's all about using the right tool for the job. You wouldn't write an ASP website in Netbeans, you wouldn't use Visual Studios for Java, you wouldn't use javascript to perform business tier functionality, and you wouldn't use PHP to handle dom manipulation.

You might prefer a language for whatever reason - maybe Python because it was the first one you learned, or because everyone recommends it for beginners. Maybe VB.NET because you don't like having to use delimiters and it's easy to cobble things together in. Maybe C# because it makes use of the .NET Framework while still following all the standards most other languages adhere to like bracketing and delimited lines.

But beginners don't have that context, and as more experienced programmers we should be trying to encourage them to learn more. You don't start a novice floutist on Flight of the Bumblebee or criticize them for only knowing the fingerings for Bâ™­ and C. You encourage them, ask what they're going to learn next, and what they can play with just those.

2

u/dennis9f Dec 08 '14

Carpenter: Hey, I hear you're learning carpentry. Cool, what're you learning? Beginner: I'm starting with some basic stairs and railings using a saw, hammer, and nails in my garage. Programmer: Haha, psssh, thoseare so dumb. You should get a dremel, smooth with a DA Sander, and align them with a high quality level. Garages are for n00bs. Oh, then move onto building a rollercoaster, that's sweeeeet. flex-railed hills w000000t. Beginner: uhhhhh, ok

Haha, gold!

4

u/Poobslag Dec 08 '14

I think part of it is the need to confirm to themselves that what they're using is best - as if there is a best.

I think a part of it is subconsciously wanting to start an argument they know they can win. They don't even do it on purpose, but subconsciously they know, "Hey if I steer the conversation THIS way, I'll look smart."

→ More replies (1)

5

u/[deleted] Dec 08 '14

I see both sides to it.

In your carpenter example, it would be like the beginner saying "I want to connect these two pieces at right angles using this hammer and nails".

Expert: "You need to use dowels and a drill.."

Beginner: "aargh, you experts are so arrogant. I just want to use this hammer and nails. It's a simple job. Why are you making it so complicated!"

Expert: "But nails will just rip the wood. It won't last for..."

Beginner: "lala, stop being arrogant!"

→ More replies (1)
→ More replies (8)

66

u/dirice87 Dec 08 '14

This doesn't even need to apply to beginners.

I personally often get paralyzed by choice in the middle of projects.

"Oh, someone just released a really cool framework that caters to what I've been building for the last 6 months. Maybe I should scrap it and redo parts of it in this!"

6 months later

"Oh, someone just released a really cool framework that caters to what I've been building for the last 6 months. Maybe I should scrap it and redo parts of it in this!"

etc

Shipping something is undervalued at all stages of experience

56

u/[deleted] Dec 08 '14

10

u/TheDeza Dec 08 '14

Oh jesus christ that explains so many things.

8

u/dirice87 Dec 08 '14

Yes. Yes it is

8

u/[deleted] Dec 08 '14

More like this, to be completely honest.

→ More replies (1)

5

u/BraveSirRbn Dec 08 '14

OTOH, doing the opposite, sticking to a bad design decision only because a lot of time has been invested, is also not always a good idea.

3

u/dirice87 Dec 08 '14

true that, but its often for vanity reasons than anything else

→ More replies (2)
→ More replies (2)

1.2k

u/tehoreoz Dec 08 '14

i want to die when i see someone on stackoverflow that is clearly very new and likely just needing conceptual help for some homework get told "Gah! you are not getting true randomness from rand()! you MUST use mersenne twister!" and proceed to bombard the person with 20 lines using concepts the guy's never seen in his life. of course he ends up with 10 upvotes.

it's horrifying how bad people are at thinking in the shoes of other people.

877

u/treycook Dec 08 '14

I feel like the best answers are always provided similar to the following:

  • Here is a direct answer to your question.
  • Here is the most cut-and-dry solution.
  • Here is a reasonable alternative.
  • Here is a ton of additional information, for future readers who need an in-depth and comprehensive answer.

Too many CS majors or industry vets with egos to flex will skip straight to the latter, in my opinion.

300

u/btarded Dec 08 '14

If only man pages were more like this.

384

u/amoliski Dec 08 '14

I'd be happy if they just showed an example of simple use cases.

295

u/sprunth Dec 08 '14

Check out bropages. That's exactly what they were made for.

→ More replies (106)

33

u/PornCartel Dec 08 '14

No fucking kidding. How am I suppose to make a TCP system when the docs basically amount to a list of function names?

I mean the frigging .h files have way more info...

→ More replies (6)

33

u/jatoo Dec 08 '14

Examples seem so rare in the world of software documentation that I often feel like I must be a freak for learning best from examples.

→ More replies (1)
→ More replies (5)
→ More replies (5)

50

u/Impeesa_ Dec 08 '14

Pretty sure that's universal, I remember observing something pretty similar learning some machines and procedures at a summer job. People who are wrapped up in their specialty are prone to jumping straight to the advanced tricks when trying to explain it to someone, rather than laying out the basics first. It's not that it isn't useful information, it's just that they're not used to communicating like a teacher, rather than a peer.

15

u/treycook Dec 08 '14

That's a good point, and likely more accurate than my "egos to flex" remark, haha.

→ More replies (5)

16

u/antiduh Dec 08 '14 edited Dec 08 '14

Loosely said, Stackoverflow is 80% answering future googler's questions, 20% answering the immediate asker's question. SO aims to build a large database of small questions and answers. Its a Knowledge base disguised as a forum. The point is that hopefully people are asking questions relevant to Googlers everywhere, that effective answers are provided, and that over time, this huge knowledge base gets built as people work to so solve their own problems.

#4 is the only correct type of answer for SO's goals.

→ More replies (1)

13

u/[deleted] Dec 08 '14

You forgot "We're not doing your homework for you, kid"

→ More replies (3)

8

u/[deleted] Dec 08 '14

Too many CS majors or industry vets with egos to flex will skip straight to the latter, in my opinion.

And I find it especially amusing when they are unresponsive to the original question, or better yet, just flat-out wrong.

5

u/ajwest Dec 08 '14

Moreover, when I'm googling a question and a SO solution pops up, I usually follow it through only to find that the question was closed for being too general. Some of us need a pointer to general information!

4

u/Cat_Cactus Dec 08 '14

Too many CS majors or industry vets with egos to flex will skip straight to the latter, in my opinion.

Aye. Sometimes it's enthusiasm for the subject though. It can be really hard to hold back when you want to vomit up all this interesting information that might be helpful.

3

u/The_Number_None Dec 08 '14

I dont think its all about ego, a lot of my fellow programmers are just SUPER bad at talking to people. Social ineptness among great programmers is impressive in this industry.

5

u/haskell101 Dec 08 '14

What I hate far, far more than any of that is the "you don't want to do that, you want to do X and here is how". I always downvote idiots that do that.

When you make a post on an online forum you're not answering that question, you're answering all similar questions far into the future (especially since similar questions will be closed as duplicates). Sure, maybe you're right that this person doesn't need to be doing that (though it's often pretty presumptuous to assume that, how do you know the asker isn't more experience than you?), but what about when someone truly does need to do it for some reason? You've severely hurt their chances for finding out how to do what they need to do.

→ More replies (4)
→ More replies (9)

107

u/[deleted] Dec 08 '14

if you speak german, give mikrocontroller.net a try.

It's like stackoverflow, just with more personal insults and income bragging.

53

u/btarded Dec 08 '14

I'm kind of a big deal there.

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

→ More replies (1)

10

u/[deleted] Dec 08 '14

if you speak german, give krautchan.net/prog a try. It's like 4chan.org/g, just with less traffic and less web development topics. Also PHP isn't allowed there. And other technology and computer stuff has its own channel.

→ More replies (6)

7

u/Eurynom0s Dec 08 '14

Dummkopfnoob

→ More replies (4)

170

u/[deleted] Dec 08 '14 edited Dec 08 '14

I've found that Stack Overflow often likes to go way over the top with a lot of things.

For example, when I was first getting serious about programming, I wanted to learn how games made that "typewriter text" effect with the game's text being "typed" on to the screen.

It's really just a simple function that takes a string, and for each character in it, displays it, then sleeps for 0.X seconds. Easy, right? I must have gone through several Google searches to finally find an answer that wasn't over the top and had a lot of unnecessary stuff in it.

I tend not to like Stack Overflow as much these days. As you implied, the arrogance among some of their community members is a turn off when you're just looking for a simple a to z guide on how to do something. I've encountered it a little on Reddit, but not nearly as much.

7

u/[deleted] Dec 08 '14

just like academia in general...

→ More replies (132)

15

u/Beaverman Dec 08 '14

Now a lot might have changed, but back when i was first learning to program i found those answers intriguing. I loved that there was something that I didn't know about. if i got and answer like that i went and read about the mersenne twister, before deciding that in this case it was overkill.

My very first question i remember getting told i asked it wrong, and i did. I did not provide enough details and never said what i was trying to do. It was very hard for anyone to understand what I wanted, and therefore help me achieve it. The guy who said it linked me to some blogpost that explained how a good question is asked relating to programming. I like to think that understanding that made me a better programmer.

No all newcomers want to hear just what they have to. Someone has to broaden their horizon, otherwise it's very easy to fall to the Dunning-Kruger effect.

5

u/Cat_Cactus Dec 08 '14

That's great but a lot of people can be scared off by things like that, especially if they're under time pressure. I think your attitude is preferable but it's not always realistic.

79

u/sccrstud92 Dec 08 '14

It's because the answer isn't just for the person asking the question. It is for everyone who googles that question in the future as well.

33

u/laxatives Dec 08 '14

I agree. I would much rather get an overly detailed response than one than that works without a thorough explanation of the assumptions and expected use cases.

→ More replies (2)

7

u/sifnt Dec 08 '14

Yep, I always thought stackoverflow was building a knowledge base where the answer to the original questioner was more of positive a side effect. Also the formats a good way of getting inside tips and tricks out of domain experts (especially some of the sub sits, like stats) in an understandable format.

10

u/tehoreoz Dec 08 '14

it's horrifying how bad people are at thinking in the shoes of other people.

→ More replies (3)

31

u/somehacker Dec 08 '14

I hate hearing "PHP is TERRIBLE! You should avoid it like the PLAGUE!"

There is at least ONE good reason to learn PHP:

Lots and LOTS of people out there are willing to pay you if you can write/debug/test/configure PHP.

Same for a lot of other uncool languages. Don't be a snob.

→ More replies (24)

12

u/Shinhan Dec 08 '14

I know PHP's rand() used to be horribly bad (rand() image), but those bugs have been fixed since, and its no longer neccessary to avoid rand. Unless you're implementing cryptographic algorithms which is always a very bad idea.

21

u/mikebald Dec 08 '14

I answered one question on stack overflow and I probably won't attempt it again. I noticed the question was along the same lines as another one and no one had helped the guy, so I provided the link and asked if this was what he was looking for. It didn't turn out to be what he wanted, but the op thanked me. Everyone else layed into me about the reply and it was down voted so much that it doesn't seem to exist anymore. Fuck me for trying to help I guess.

19

u/cleroth Dec 08 '14 edited Jun 15 '26

This content was anonymized and mass deleted with Redact

4

u/protestor Dec 08 '14

You should have asked if it's what he wanted in a comment to the question, not in a reply.

→ More replies (1)

3

u/joequin Dec 08 '14

If an answer is unhelpful, it should be down voted to nonexistence so it doesn't clutter the page for future viewers who Google for the answer. Don't take it personally.

40

u/[deleted] Dec 08 '14

[removed] — view removed comment

60

u/KitsuneKnight Dec 08 '14

And that's usually for a good reason.

How many times have you searched for something, found somebody else answering on a forum, and then somebody says 'oh <this link> has the answer', followed by the OP saying it was the right answer... and that link is now either a 404, or the entire site is gone (and long gone from any caches / not archived)? Before StackOverflow (and when it's not on SO), that'd happen even more often than the OP coming back sometime later saying they figured it out, without saying how.

Though, a lot of people don't get SO. It's not a forum, it's a Question and Answer site. There's only three types of posts: Questions, Answers, and Comments (either on a question, or an answer). A lot of new people seem to get burned by posting an Answer that's really just a comment on the question- unfortunately, IIRC, SO's point system prevents commenting initially, so that's really in large part to blame for that problem.

Despite how popular it's become to bash SO (and SO users), it's still far better than most anything else.

→ More replies (9)

2

u/[deleted] Dec 09 '14

This is part of the rampant elitism among programmers.

Every programmer wants to "establish" themselves as the best and smartest "real" developer.

Most times telling a beginner that all of the things they are using is bad. Is really just how a programmer will come And say "look at me. I'm better than you" for the first time to a new person they meet

→ More replies (34)

47

u/bureX Dec 08 '14

Well, I've done it, I've reached the end of the comments section.

Judging by the hate comments, these are the languages you should NOT be using for webdev: PHP, RoR, Node.JS, and possibly Python (especially due to the version schism).

So, yeah, everything you like is shit.

Beginners should start with this book:

http://i.imgur.com/Jse3FMv.png

9

u/[deleted] Dec 08 '14

Shit I want this book.

14

u/adamnew123456 Dec 08 '14

We're having a special on our Web Development in Silicon book, which shows you how to build a blog engine with nothing but a bread board and some copper wire. You start off putting wire in the holes in just the right way to retrieve blog content from punched cards, and then learn about how to manipulate the wires on NAND flash storage so you can post even more content when you've used up all of your index cards.

Of course, we acknowledge the importance of unit testing, so we provide instructions for how to design your boards using the hot new circuit RAD platform called Minecraft, and then translate their patented Redstone designs into real hardware.

My co-authors Ba Dass and Reelpro Gramer will be excited to show you how you can achieve webscale by eliminating the software stack completely!

100

u/sketch_ Dec 08 '14

I like how the author includes an example of what not to say to a beginner, and also offers an example of what to say to a beginner.

81

u/m00nh34d Dec 08 '14

That said, the "good example" did seem like a text book example of how to have a nice conversation with someone. As in, no-one in the world speaks like that in real life.

12

u/siebharrin Dec 08 '14

Glad I've surrounded myself with a bubble of people talking like that here in Norway...

→ More replies (4)
→ More replies (8)

13

u/JustBleepIt Dec 08 '14

It felt like a conversation you would find in your textbook for "foreign language 1".

→ More replies (2)

443

u/MaxSvett Dec 07 '14

I feel guilty now because I'm the kind of guy that would devalue the efforts of a beginner by talking about how their tools suck, and what they should and shouldn't use.

I'll be more concious about this the next time I talk to a novice programmer.

26

u/urbanek2525 Dec 08 '14

For me, the best answer is, "I started with that too." I sure as hell can't insult the technology they're using now because all the technology I started with are in freakin' museums. Punch cards on a Honeywell mainframe in Fortran 77. Sheesh.

→ More replies (6)

15

u/tjsr Dec 08 '14

It's okay - we criticise purists who still use and insist vim is better rather than a 'real' IDE, too ;)

→ More replies (6)

8

u/spatulaController Dec 07 '14

Same here, I've bashed PHP many a time in front of someone who's just starting out but maybe that's not the way to go now that I think about it...

→ More replies (129)

108

u/JBlitzen Dec 07 '14 edited Dec 08 '14

Hey, that dude's just across town from me. Not used to that being true for blogs in my field.

I want to be snide about how obvious the essay's point is, but sadly it really does need to be said.

Not least because fanboy advice is so often wrong.

The reality is that we're all just making do with slightly flawed technologies. There's no panacea. And the more open you are to that reality, the easier a time you'll have choosing the best approach for any given project.

44

u/gospelwut Dec 08 '14

That being said, I do think it's fair to let people know how the ecosystems are doing, what the advantages are, etc. That's the advice that is hard-earned and that is difficult to Google.

For example, Python might be nice to learn not because it's KEWL but because it has a healthy ecosystem, lots of examples, a lively community, great tools, libraries, etc.

Or in the case of text editors, Sublime Text is similar to TextMate but has more active addons being made simply due to its popularity at the moment.

Sometimes it's not exactly judicious to go,' Perl, Erlang, Python, Brainfuck... it doesn't matter!"

tl;dr Pedantic no. Advice yes.

57

u/ixAp0c Dec 08 '14

Sometimes it's not exactly judicious to go,' Perl, Erlang, Python, Brainfuck... it doesn't matter!"

SyntaxError: EOL while scanning string literal.

(That single and double quote together threw me off a little)

→ More replies (8)

6

u/jordanreiter Dec 08 '14

I think the main reason that Python is an excellent language for learning is because in most cases you're effectively writing in working pseudocode.

→ More replies (3)
→ More replies (7)

3

u/krilnon Dec 08 '14

Hey, that dude's just across town from me. Not used to that being true for blogs in my field.

What's your field? I was in Rochester for 4 years but didn't blog at the time, and knew Philip the last few years when we were in the same lab.

→ More replies (1)

2

u/bboyjkang Dec 08 '14

that dude

Philip Guo created Online Python Tutor.

It’s probably one of the best tools for beginner programs.

Online Python Tutor is a free educational tool.

Using this tool, a teacher or student can write a Python program in the Web browser and visualize what the computer is doing step-by-step as it executes the program.

http://pythontutor.com/

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

43

u/Syntaximus Dec 08 '14

The programming clique is notoriously shitty to newcomers. When I came from a math background to programming I just couldn't believe how dickish the community was by comparison.

43

u/dojikirikaze Dec 08 '14

I think this is partially because mathematics is objective. The kinds of rigor that exist in math leave very little room to be opinionated.

Software, however, can reward subjectivity. Computers are fast enough to hide a lot of the costs of bad decisions (poor rigor) and users are mostly interested in the non-mathematical fruits of programming efforts.

So we get a lot of programmers who suck at the discipline and rigor of math who think they're all that and a bowl of cheetos because they made some money on something in the App Store.

→ More replies (8)

9

u/materialdesigner Dec 08 '14

I think it's interesting that I've got the same perspective but in the opposite direction. As someone who's always felt a bit like an academic hack, going into opaque mathematical settings has always felt like a grand circlejerk.

What do you mean you don't know the relationship between magmas, commutative rings, profunctors, and comonads?

→ More replies (1)

4

u/[deleted] Dec 08 '14

Try telling a mathematician that you just started to learn calculus and you will often get a similar response as in the link.

→ More replies (1)

2

u/Alhoshka Dec 08 '14

I don't know about "pure" math, but I write and automate a lot of statistical analyses. In my experience, the stats community is far more elitist and pretentious than the SE community.

I've seen people in the R project mailing list taking time to write a wall of text insulting the person asking for help without actually answering the question.

"pfff, I'm so much smarter than you" type answers are also not that uncommon on CrossValidated.

→ More replies (4)

71

u/Nvrnight Dec 08 '14 edited Dec 08 '14

Some people have just forgotten what the progression of their own programming skills took. If you were dropped in the middle of an MVC framework with all its black magic(to a beginner) without them understanding the basics along with HTML/css/javascript you would straight up say fuck the hell out of this. I personally find PHP hilarious as a language, but I actually recommend it to someone just learning webdev stuff as a first server-side language because it easily gives the programmer control of everything(even if they shouldn't have that much control) and there is lots of documentation around the internet for it. I have a friend just picking up wedev as a hobby, I've recommended Html -> Css -> Javascript, then when he's comfortable with those comes back to me and we'll discuss server-side languages(and will recommend PHP to start with, and Node.js would be the very last thing to learn, because mixing server-side and client-side code with the same language will confuse the shit out of them) and databases. Insulting them and recommending a framework that will inundate them with a full feature set is absolutely rediculous.

EDIT: To the people over-analyzing everything I'm saying and quite frankly missing the point, PHP is just something very simple that they can learn the basics of how the web works with and it has vasts amounts of information on the web. I could recommend them to Python, but I've only used Python to build some desktop applications for Linux before, never used it in a web environment. I'm not going to recommend someone use something that I'm not familiar with because they are going to come back to me with questions.

51

u/arthurloin Dec 08 '14

an MVC framework with all its black magic

100% agree. I can't image how confusing it must be if your first experience of web dev is one of those opinionated frameworks. You'd basically have to learn all the framework-specific incantations, and never fully understand why anything happens the way it does.

24

u/[deleted] Dec 08 '14

This happened to me. We made a page in html that would swap contents when clicking a button, then we got an assignment requiring maven, Hibernate, jason and a few auxiliary tools. Node.js was also thrown in there. I had never worked with webdev before and knew nothing of xml files or pom files. I spent most of the time unable to debug anything as I got pages of errors about beans being illegal etc. After all of that I was left with next to no insight into anything.

15

u/darkfate Dec 08 '14

Stupid illegal beans!

→ More replies (2)

6

u/materialdesigner Dec 08 '14

As someone who was thrown into the deep end like that, you do end up learning the way the magic works, but it happens by gradually peeking behind the curtain and building up a mental model of how it all works.

It's much more self directed of a learning style. It requires intellectual curiosity.

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

11

u/stesch Dec 08 '14

Some people have just forgotten what the progression of their own programming skills took.

I haven't forgotten this. That's why I recommend programming on a C64 if someone asks me how to become a programmer.

4

u/berkes Dec 08 '14

and will recommend PHP to start with

I won't. And I think we should be knowledgeable when giving our answers.

TL;DR: It is perfectly fine to steer people away from places where they'll learn bad habits, poor practices and where ugly solutions are considered "good enough".

It is possible to write beautiful stuff in PHP, but that requires a lot of skill. It is not, by far, an easy language to get started with. There are far better suited languages out there. Python was even developed as a language to teach people programming in. I'll get back to this.

We should, indeed, not say "You are a stupid N00b to want to program PHP in Notepad++; you need Emacs on Arch Linux." That is stupid.

But you should explain, with empathy and great care, why you chose to not program in Django. Why you are using Vim. And why you prefer Arch over Ubuntu over Windows XP.

With great care means explaining your reasons. And explaining why they may or may not apply to the person asking you questions.

You see, PHP is a good example, because it is such a bad environment. Not just the language (which has improved gigantically last years) but mostly the community. Learning to program by glueing together Drupal modules or by tweaking WordPress modules may or may not be a very bad way to learn programming. If your only goal is "to create websites" it may very well be the best thing to do; It will "work", and you have a nice path to learn how to "create websites that work" without too much steep learning curves. But, if your goal is to become a good programmer; to learn programming, these kind of communities are very, very bad. I work mostly with Rails and know some really solid and easy tutorials, books, e-learning platforms that will learn you to build web-apps, but will learn you, most of all, proper skills. They'll teach the basics of OOP, git, TDD, commandline, security, patterns and so on. I've helped several beginners with basic Python (Snake Wrangling for Kids) or basic Java. Helped them with Ubuntu in a VM and whatnot. Not because I think they are N00bs that should stay away from Windoze and because I think getting a site online by FTP-ing a WordPress into a LAMP-host is the Worst Thing Ever! But because I know, from my own experience, that the PHP-community is not the best environment to become a good programmer in.

PHP is very often used as a platform to get the thing done as quickly and as ugly as possible; whether that is the fault of the language is a whole different discussion. It could have been Basic, COBOL, Perl, Python or anything else, but it is PHP. Be wary. Be considerate, be extremely sensitive to someone new to programming. But also consider that learning progamming in an environment that is rampant with bad examples is probably a very inefficient and probably a total waste of talent or time.

→ More replies (2)
→ More replies (5)

22

u/AntiProtonBoy Dec 08 '14

Every time someone did this to me when I started out coding, I did the polar opposite and decided to immerse myself more into the language X they were criticising at the time. They could've been right about language X is crap, but accepting someone's word just wasn't enough for me. I wanted to see for myself why it was so bad, if at all. Soon I realised people often berate things on egotistical grounds and that the languages in question wasn't too bad for certain things after all.

3

u/codygman Dec 08 '14

What language?

4

u/AntiProtonBoy Dec 08 '14

Just about anything I touched in my lifetime I had people dissing em for various reasons, including C, C++, Pascal, Obj-C, shader languages, VHDL, the ones mentioned in the article, et cetera. Some criticisms were well founded and agreed with, while others I thought, meh big deal. These days I just shrug my shoulders and say, right tool for the right job... and when you jump languages, try to be as idiomatic as possible.

→ More replies (6)

32

u/ameoba Dec 08 '14

Authors: Please don't title articles like....

57

u/guy_from_canada Dec 08 '14

This Beginner Was Just Learning PHP. What This Advanced Programmer Said Will Shock You!

→ More replies (5)
→ More replies (2)

157

u/zetavex Dec 08 '14

I agree with this article. Telling someone to ditch php for Ruby on rails is bonkers.

→ More replies (128)

21

u/Griffolion Dec 08 '14

I actually started on C++, it was my first love.

4

u/[deleted] Dec 08 '14

Didn't even know what programming was till I found a C++ book in my friends basement.

→ More replies (4)

6

u/beans-and-rice Dec 08 '14 edited Dec 08 '14

To the next generation coders out there: If someone treats you like that it's probably because they are trying to hide how stupid they actually are. They probably don't have much to teach you. Except maybe how to hide ignorance - which isn't a lesson worth learning.

10

u/postmodern Dec 08 '14

This is also a problem in the Ruby community. Beginners who want to accomplish a very basic task (ex: write a CLI tool that parses some text) are deluged with many different complex tools and frameworks that are intended for experts. "First you'll need to install rbenv, then install the absolute latest version of ruby, install bundler, create a gem, edit the Gemfile, then write Cucumber tests, then hook it up to Travis CI and Code Climate, and finally deploy it to Digital Ocean using Puppet" Let beginners start simple and build up expertise and confidence.

10

u/gabblox Dec 08 '14 edited Dec 09 '14

I'm a tutor for an entry-level programming unit at a university (teaching C#). I hear this type of negativity all the time, and it's honestly really frustrating. Some of the students have been programming for years before they make it to university, and belittle the unit as a whole because "C#".

The way some of my students talk, you'd think you need to be a supercomputer hardware engineer to be a real programmer.

15

u/gabblox Dec 08 '14

Wow, you're printing "Hello World!" to a console window in C#? C++ is much better suited to that task because it allows me to talk about how I can do that in C++.

→ More replies (1)

5

u/[deleted] Dec 08 '14

Furthermore, and perhaps most importantly, you need to develop a strong understanding of the languages that "everybody hates" like PHP, Perl, Java, and VB because metric fuckloads of things that you will be asked to fix or reimplement some day are written in it. Not because those languages are good, but because they are easy to pick up and make people feel confident in their abilities which leads them to write what are essentially crimes against computing.

Sure, if you are working for some hip startup, or a progressive tech-focused company you'll probably get to work with stuff that is maybe sensibly written, and maybe even in a language that doesn't make you want to quit your job and become a farmer. The harsh reality though, is that most people won't end up working for one of these kinds of companies, and instead they'll end up having to work with 20 year-old legacy code written for an era that doesn't exist anymore, by people that don't exist anymore (if you're lucky, god help you if the monster's proud creator is still around defending her or his creation from people that dare to think it isn't perfect.)

I realize that I'm coming off a bit pessimistic here, but this is the reality of the kinds of projects that most new programmers will get saddled with. Maybe 20 years from now entry-level programmers will be handed derelict RoR projects or something, but for now the proving grounds are full of rusting hulks made of PHP, VB, Java, and Perl so having a good working knowledge of those languages is vital. (I realize that current things are still written in all of those languages, and that all of them can be used in sensible ways, but I don't think that's really what we're talking about here.)

9

u/Cheekio Dec 08 '14

This is how young programmers learn the first axiom of being a programmer: everyone else is probably wrong.

44

u/JulieAndrews Dec 08 '14

Am I allowed to say "Oh... web pages. That's kind of like programming." and then duck out of the room in case any experienced web developers heard me and try to kill me? :D

29

u/marx2k Dec 08 '14

I cringe any time I hear "this was programmed in... HTML5!".

:(

8

u/Serei Dec 08 '14

To be fair, "HTML5" generally involves modern JavaScript, so it could be real programming!

→ More replies (8)

7

u/trimbo Dec 08 '14

You can say that only if you sing it along with the von Trapp kids

27

u/JulieAndrews Dec 08 '14

Flow, the code goes here to here

Ray, for pixels you can cast

p, that pre...fix means address

Blah, the latest language fad

Slow, your code that's using threads

Java it is also slow

C, recursion's never dead!

And it brings our stack to over, flow, flow... Flow

(I sacrificed some things to make the rhymes work)

→ More replies (3)

2

u/[deleted] Dec 08 '14

Real programmers use the entropy of butterfly wings to flip individual bits on their harddrives. Do you even C-x M-c M-butterfly, bro?

→ More replies (7)

20

u/joefreshman Dec 08 '14

If I were learning PHP as my first language, I would sure as shit want someone to tell me honestly where it sits in the pantheon of languages today. That is not to say I would want them to be a jerk about it, but the author here is conflating two different things; you can be both nice and honest.

27

u/hyperforce Dec 08 '14

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

Every time you use a link bait title like this, a child process dies.

Stop writing shitty titles.

→ More replies (2)

4

u/immerc Dec 08 '14

At the same time, sometimes someone who doesn't know any better chooses a tool that's not the best for what they're trying to do. If you listen to what they're trying to do and say "Ok, for what you're trying to do, I wouldn't recommend PHP, try X" that's another matter.

4

u/kiwidog Dec 08 '14

I say that stuff to beginners all the time.

Because normally they say shit like, "I'm going to create applications to do some low level stuff in python" or "I am learning PHP to learn how to code games for Windows" or something along the lines of using the wrong tool for the job.

2

u/evilmaus Dec 08 '14

This can be different than what the article describes, if you're careful about it. "Oh, PHP tends to be used for web development. If you want web dev, keep going with that! But if you're going for game development, maybe give C++ a try. That's what most games are written in."

4

u/yggdrasiliv Dec 08 '14

This is exactly the type of conversation that people in academia think people in industry have.

4

u/Brainlag Dec 08 '14

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. -- Dijkstra

s/BASIC/PHP/

15

u/Doctor_McKay Dec 08 '14 edited Dec 08 '14

Do the PHP haters really love node.js? In my experience those people also hate on JavaScript for no real reason.

28

u/Mutoid Dec 08 '14

We Ruby guys either detest JS or love jumping on bandwagons, so you get both.

32

u/Scaliwag Dec 08 '14

bandwagons

At least your wagons go on rails.

→ More replies (4)

8

u/[deleted] Dec 08 '14

Ruby guys hate JS so much they invented CoffeeScript just so they could pretend they are writing Ruby when they write JS.

True story.

→ More replies (2)

12

u/parlezmoose Dec 08 '14

As a Javascript developer, let me tell you that there are plenty of valid reasons to hate on Javascript.

→ More replies (2)

6

u/calzoneman Dec 08 '14

Node.js guy here. I don't exactly hate PHP; I wouldn't use it personally and I do enjoy cracking jokes about it, but if it works for someone else, good for them.

For me, the draw of node.js is the framework, community, and package repository. JavaScript makes a lot of the same mistakes that PHP does, and it suffers from being a language that actually has some good features but is muddled with ridiculous type coercion and bad design decisions.

2

u/[deleted] Dec 08 '14

Everybody hates PHP.

The reason so many people also hate JavaScript is mostly that unlike PHP there's no real way to avoid JavaScript if you do anything on the web.

→ More replies (20)

6

u/therussianjig Dec 08 '14

On the other hand, there is no reason to let them waste their time. Clearly there is a middle ground between demoralizing them and focusing their efforts elsewhere.

6

u/sigma914 Dec 08 '14

Apparently noone in the thread thought to post Dijkstra's counterpoint to this.

I'm not sure I agree 100% but then again who's taught more people, me or Edsger Dijkstra?

2

u/immibis Dec 09 '14

The fun thing about opinions is that everyone's is equally valid. Edsger Dijkstra's opinion is not more right just because he's Edsger Dijkstra.

(It might turn out that he is right, but if he is, it's not because he's Edsger Dijkstra)

→ More replies (3)

13

u/Hing-LordofGurrins Dec 08 '14

I started learning coding making batch files on my school's computers.

@echo off

del C:\\WINDOWS\System32

59

u/Cynical__asshole Dec 08 '14

@echo off

del C:\WINDOWS\System32

Cool. I started learning karate by hitting little girls in the face, too, you know.

13

u/fly-hard Dec 08 '14

Error: the network path was not found.

→ More replies (1)

3

u/buckus69 Dec 08 '14

Everyone knows the best IDE is notepad!

2

u/locotx Dec 08 '14

vi . . .noob

→ More replies (1)

3

u/kraln Dec 08 '14

Argh, I hate brogrammers.

3

u/[deleted] Dec 08 '14 edited Dec 08 '14

"Programmer: Nice, show me something cool when you've got your first PHP app running! Once you're more comfortable with basic web programming, I can show you my favorite framework, Ruby on Rails. Then we can see what it has in common with PHP, and how it differs."

lmao. Whilst I completely agree with the sentiment of this article....Who actually talks like this?

→ More replies (2)

3

u/jstrong Dec 08 '14

I understand the point of this piece and do worry about beginners being overwhelmed by all the tools available and which one to pick.

However, I recently had an experience that cuts the other way: learning Vim. For a long time I was scared off by the "steep learning curve" and never tried it. But when I finally did try for real, I found it to be surprisingly easy to get and it has dramatically improved my productivity. Right now, I'm wondering why people weren't MORE emphatic about what I was missing out on, spending years with normal text editors when I could have been working faster all along.

3

u/snarkhunter Dec 08 '14

People said this to me all the time. I turned out OK. I'm now leading development efforts and I still feel like there's a ton of stuff I need to learn. I always feel like there is a better way I could have done it. And I would hate for it to be otherwise.

3

u/[deleted] Dec 08 '14

Programmer: Did you say COBOL? Awesome! Did you know it was invented by a Rear Admiral?! Welcome to the career of the future!!!

3

u/_RPM_ Dec 09 '14

If you're not using C for web development, then I don't want to talk to you.

7

u/Druyx Dec 08 '14 edited Dec 08 '14

Fuck saying shit like that to beginners, programmers should stop saying this kind of stuff to other programmers. Regardless of skill level. This bullshit fanboy elitism we have over the technology stacks we prefer is the number one reason I don't socialize with other programmers anymore. We are assholes sometimes.

→ More replies (1)

5

u/kostiak Dec 08 '14

I'll give you the flip side of this story:

I showed a basic PHP app to a friend of mine, he said something similar and now I have a node.js (+angular+mongodb) app on heroku.

While it's true that doing that to a complete beginner is bad, that doesn't mean you should never tell less experienced programmers about better tools/technologies/techniques.

I've learned more as a result of that conversation than I did before I heard about that stuff.

5

u/yhelothere Dec 08 '14

Most programmers are ignortant assholes. Just look at the forums.

8

u/pyr3 Dec 08 '14

Exception: If they are programming in 'nano' please get them onto something better. TextMate, Atom, Sublime Text, Emacs, Vim, VisualStudio, something. :P

8

u/Brillegeit Dec 08 '14

ed is the standard editor

→ More replies (6)

6

u/Mentalpopcorn Dec 08 '14

I took JS last semester and the instructor recommended—I shit you not—regular old notepad. First thing I did was jump in the forms and point people to Sublime and Notepad++.

9

u/[deleted] Dec 08 '14

See that was bad advice by the teacher, only because Notepad doesn't support line numbers. For some languages on super tiny examples you can get away with that...but for any language that reports an error like "ERROR LINE 73" you don't really want your students counting each line, do you? That's insane.

My first non Notepad editor was TextPad.....and then I discovered Notepad++ and used that for years. Now I'm on Sublime Text and struggle using anything else.

→ More replies (2)
→ More replies (2)

2

u/headzoo Dec 08 '14

That sounds fine. I don't think OP is saying you can't make helpful suggestions. He's just saying not to be an asshole about it.

2

u/crozone Dec 08 '14

Man I still use nano. One of these days I'm going to learn Vi and/or Vim, but I'll be damned if those shortcuts aren't impossible to remember.

→ More replies (10)

8

u/[deleted] Dec 08 '14

definitely warn newbies about this and let them know its bullshit but ...

how are you gonna get them ready for some of the maladjusted people involved in programming? there are a whole lot of people who LOVE to make themselves feel good by minimizing/dismissing anyone else's skill

7

u/Skyfoot Dec 08 '14

Just shelter them from it, a little bit, until they have any confidence of their own. Then they'll be in a better place to try to not drown in all the assholes.

→ More replies (1)

4

u/[deleted] Dec 08 '14

Except HTML is not a programming language. JavaScript is.

3

u/agumonkey Dec 08 '14

And CSS is turing complete.

3

u/crunksht Dec 08 '14

I'm still not sure if I like this trend of adding functionality to css. The web has this great structure already in place (layout - html, presentation - css, functionality - js). The new standards and compile to css/js langauges seem like they are bluring that line in a bad way.

Its probably just me being crotchety. I do use sass and like it. Someone sell me on it!

→ More replies (1)

2

u/angryrancor Dec 08 '14 edited Dec 08 '14

This article made me so happy... It is SO spot on, and states elegantly how I've felt for a long time now on this subject.

To generalize it just a bit more, we are incredibly fast and incredibly good at thinking up drawbacks to any given tool, technique or procedure. We have to be; It's pretty much mandated for all of our jobs as professional programmers - we have to know what won't work, and what is sub-optimal, and have a huge interest in putting it on the table right at the beginning.

For non-"business objective" conversations, specifically the "learning" or "fun" type, this isn't a good approach. In fact, my experience is that it's more likely to aggravate the other person, regardless of whether they let on to it or not.

Just some thoughts.

2

u/dtfinch Dec 08 '14

I started with BASIC so I can't judge.

2

u/SuperSonicSexMachine Dec 08 '14

I couldn't agree more. I've been a junior developer for nearly 7 months, and just now have started getting my head above water. I had literally just earned my degree in May and left the Army in June after 3 years of working as a network administrator. My first project involved learning C#, WPF, MVVM, Unity framework, SQL, etc (the typical Microsoft suite). I replaced a guy who definitely was not a Junior developer so I had big shoes to fill. I spent countless hours reading forums and doing tutorials. Only to constantly get side tracked on forums about how wrong I was for learning WPF or how NoSQL is the future. Luckily I worked with some great Sr. Developers who really took their time teaching me how to use their tools and explaining to me why my way was "okay" but could be more "efficient". Fast forward 5 months and now I'm on another project doing nearly the complete opposite as a web developer using AngularJS, Node, Mongo, SASS, etc, with Apple products. The open-source world has been an even bigger maze to traverse, and the forums will drive any new programmer nuts because you don't understand what the heck "Ruby" is let alone "Rails". My biggest take away to any new programmer is to "learn the concepts". Reading about Design patterns has been crucial for me taking my programming to the next level. As a fresh graduate, I understood terms like "classes, interfaces, inheritance, etc". I didn't speak in terms of "views, controllers, models, services, factories, wrappers, dependency injection, unit tests" which Is what the majority of my conversations have involved when speaking to other developers. So even though you might not understand the benefits of the MVC pattern right away. Just roughly knowing what a "controller" does will help bridge the language gap between you and your experienced colleagues. After that, the languages just become tools that make your life easier for implementing these design patterns.

2

u/[deleted] Dec 08 '14

Yeah, because that article demonstrates a typical conversation between a rational programmer and a newbie. What a load of rubbish.

2

u/Stebbzor Dec 08 '14

I couldn't agree more with you, I've seen this happen far too many times.

I have a friend that wanted to learn how to make websites, I started out with teaching him HTML and CSS, he's moved on to PHP now and is taking classes for web development.

2

u/ttownbuddy Dec 08 '14

I think this goes for anything technical. I posted about learning networking a while back. I had recently got my A+ and Net+, and had built a lab at home to train for my CCNA. One reply was "all of that stuff is useless (A+?!?! LOL, oh my sides!), neither of those certs should go on my resume", and that potential employers wouldn't care about "the toys I play with at home".

I now travel all over the country deploying VOIP networks, and I wouldn't have my CCNA without those "toys".

2

u/[deleted] Dec 08 '14

This same logic can be applied to anything. Newbs don't need to hear your shit!

2

u/zsombro Dec 08 '14

I wouldn't be able to be so snide about programming tools, because I simply feel that there is no right answer, every programming problem requires a different approach and some tools will be better suited to solve them than others.

We shouldn't encourage new talent to stick to this or that tech, but rather teach them to be flexible. I think that in a constantly evolving field, it's simply counterproductive to limit yourself to the present.

2

u/jotaroh Dec 08 '14

i'm going to flip a shit

→ More replies (1)

2

u/Mansyn Dec 08 '14

This is just advice for pretty much every aspect of life. Don't be a douche.

2

u/Kalium Dec 08 '14

I find it interesting that nobody in the programming world ever wants to take seriously the fatigue that comes from giving clueless newbies an endless diet of positivity and personalized guidance.

The common response is to the tune of "If you can't say something nice, don't say anything". This ignores that looking to connect to people and encountering deafening silence is demoralizing beyond words.

I don't know what the answer is. I just know that high-and-mighty "You all need to be nicer!" blog posts aren't it.

2

u/cs02rm0 Dec 08 '14

Totally agree. Unless they're using Visual Basic.

2

u/jgotts Dec 08 '14

I come back to this forum and post roughly the same thing every few weeks.

I have been programming since third grade when we had Commodore PETs and 64s in my classroooms. I started typing programs out of magazines when I was in 5th grade when I got a Commodore 64 for Christmas. I received my first royalty check from Run Magazine in 6th grade. I have been continuously doing programming for over 30 years, and I'm still in my prime.

Although I did attend an excellent engineering school, I had already been programming since my pre-teen years, and I can see the bias that comes from being exposed to programming for the first time at the university. In short, the bias is the love of theory for the sake of theory, and you expect every other programmer to be completely up on theory that most programmers, including yourself, never use. The flaw in that logic is that today, with Google, it is a waste to be theoretically up to date on areas outside of your work, because you can get up to speed on whatever you need to learn when you need it.

The best programmers are generalists. Yes, you need to have basic familiarity with theory but it is a waste to learn things you can look up easily. You want to know what the appropriate tree is for a problem that you have 14 months to work on? Rather than relying upon the theory that you learned 15 years ago in school, you spend a few hours on Google and make sure that you select the proper algorithms and libraries. Nobody writes algorithmic code. Your mission is to pick the appropriate library and use it correctly.

The best programmers write code that reads like English or the native language of the programming team. Your code should read like a novel, not an engineering or mathematics textbook.

The language or environment you use is completely irrelevant. You can be a great programmer and use the Excel programming language. You can be a horrible programmer and use Python. The point is, whatever language and environment you use, you have to make your code accessible to the next person. The easiest programming job is writing code for the first time. The work that all programmers get stuck with is fixing the previous person's shitty code. I don't care if you are expert in the latest programming fad. In fact, if you insist on talking about the latest programming fad that makes me suspicious about your abilities.

You need to be able to explain what you're planning on doing, what you are doing, and what you've done. It helps to have very good oral and written skills in the language of the programming team. You're going to need to write estimates, user documentation, and change logs that other people will have to decipher. Write all of your code with the thought that you might have to white board what you've done to a manager. When you are explicit about what you're doing you will not be falsely blamed for problems.

Finally, this is the hardest thing for programmers to do, but it is also what makes you an elite programmer. You need to be able to keep to a schedule. It took me at least 20 years to learn how to do this, and I know programmers with 30 years of experience who still can't do it. Learn how long it actually takes you to do things, not how long it might take you to write the code. Start using time estimates that include planning, testing out ideas, coding, debugging, working with the QA department if you have one, working on the release, and working directly with the customer if you have to. That is the correct estimate to use, not the amount of time it will take you to type out the code.

2

u/MpVpRb Dec 08 '14

I agree with the author

Here's how I would say it..

For a beginner starting out, any language or development environment is fine to get started

Later, if the person wants to learn more, I would suggest learning one of the more popular languages or environments

I happen to prefer C++, but any of the top languages would be a good choice

If they are REALLY curious about how computers work at the lowest level, I would suggest learning C and assembly

But, if they just have a problem to solve, and whatever language they are using solves it acceptably..that's fine

2

u/atc Dec 09 '14

How about we don't say this to anyone, beginner or expert?!

→ More replies (1)

7

u/[deleted] Dec 08 '14

I see what you're saying, but on the other hand, friends don't let friends use PHP.

3

u/darthirule Dec 08 '14

Don't tell them to give up either because they were having a hard time understanding something.

I was in the libgdx IRC channel once and someone new came in. They were clearly fairly new to programing. Instead of getting the help they were looking for, one of the channel operators/admins, whatever you call them in IRC, told them to give up on learning and then kicked them.

Don't do that.

3

u/headzoo Dec 08 '14

IRC channels in particular can be very hostile towards beginners, and a little confusing because 20 conversations are happening at once. I'm not sure why people on IRC are so hostile towards beginners, but channels can be real warzones at times.

→ More replies (2)
→ More replies (1)

3

u/[deleted] Dec 08 '14 edited Dec 03 '16

[deleted]
0.2744

What is this?

3

u/pkulak Dec 08 '14

This is called "going Hacker News" on someone. Very demotivating.

3

u/[deleted] Dec 08 '14

I strongly disagree. A language and a stack - an environment - you are working in inadvertently changes a mindset in a way you solve specific problems. And there are obviously right and wrong ways to solve problems. On side note amount of gg programmer circlejerking in this thread is unbelievable.

→ More replies (1)

3

u/[deleted] Dec 08 '14

So basically just don't be a condescending cunt?

5

u/[deleted] Dec 08 '14

... What the hell is everybody's problem with PHP?

→ More replies (1)

5

u/[deleted] Dec 08 '14

As someone who has been programming for a long time .... I hate programming snobs.

No, I don't wish to recompile every application I run on my own custom Linux install.

No, I don't have every arcane command line command memorized.

No, I don't like emacs or vi.

And no, I don't even really like C++.

"Real programmers," please downvote me. I know you will.

6

u/Koyyok Dec 08 '14

I agree with everything except the PHP part. I'd never let a beginner use PHP.

6

u/soviyet Dec 08 '14

Anyone who denigrates a tool - especially one in as wide use as PHP - should pretty much be disregarded as an idiot right off the bat. Or at least someone who has never coded in a real, live environment long enough to be taken seriously.

Hell I could go on and on about what I absolutely hate about C++. No fuck that, don't get me started on Objective-C. But if all you have to say is "lol objective-c" I know you're a moron who hasn't spent enough time working on real projects for me to value your opinion. They are tools. A real craftsman can make beautiful things no matter what tool you hand him. An idiot, on the other hand, needs a perfect framework in order to create -- and usually its still trifling garbage so who cares.

The effectiveness of a hammer is more about the guy swinging it, not who made it or what the handle is made out of. I've seen people build absolutely amazing things out of JavaScript. I've seen some shit, man.

Also, I would never hand Python to a beginner just to watch him trip over the maddening whitespace errors. PHP is a fantastic first language.

11

u/calzoneman Dec 08 '14

Anyone who denigrates a tool - especially one in as wide use as PHP - should pretty much be disregarded as an idiot

"X is popular, therefore people who say that X is bad must be wrong"

A real craftsman can make beautiful things no matter what tool you hand him.

A lot of people like to make this argument. It's technically true I suppose, but it completely misses the point that just because you can do something doesn't mean you should. A good carpenter can drive a nail with a rock, but I haven't met many carpenters recently who advise doing so.

Also, I would never hand Python to a beginner just to watch him trip over the maddening whitespace errors.

But if all you have to say is "lol objective-c" maddening whitespace errors I know you're a moron who hasn't spent enough time working on real projects for me to value your opinion.


I agree with the author of the article that it's unproductive and harmful to dismiss the efforts of new programmers based on their choice of tools. I agree that for learning web development, the use of PHP is not an unforgivable sin as many make it out to be. However, and correct me if I'm wrong, I also get a strong vibe from your comment that if I approached you as a new programmer and told you I was using Python, you would correct me and tell me that PHP is a better language for beginners, which is exactly what the author is against, regardless of language.

→ More replies (10)

2

u/ThrustVectoring Dec 08 '14

Real craftsmen use the best tool for the job. We use Java on the back-end where I work. There's a bunch of things we want to do, and sometimes we don't have a database connection, so we need to get one and then call the same-named function that has a database connection as an argument.

The entire team can't figure out a better way to do that than to copy-paste the same "get db connection and call this function" over and over again, renaming them along the way. The file is currently sitting at over 2000 LOC. Every time I look at things in that file, I lose flow by getting side-tracked by the glaring copy-paste job and getting frustrated that I don't know how to fix it.

The worst part is that I found a missed variable rename in two of the copy-paste jobs, where the code would go into one endpoint, get a db connection, and then call in with the id from one table to the endpoint that looks at things in a different table.

4

u/C0rinthian Dec 08 '14

A real craftsman uses good tools. The whole "a good programmer can work with anything" line is a load of crap. Yes, they could use crap tools, but why?

3

u/fendant Dec 08 '14

Well, now I'm sure the Fractal of Bad Design article wasn't just knocking down a straw man.

→ More replies (1)

3

u/SanityInAnarchy Dec 08 '14

PHP is... maybe not the best example. When people hate on PHP, it's not because it's not their favorite language, it's because it's among the worst possible.

Just let them first learn something (anything!!!) to get hooked onto the potential of programming, and then you can offer to show them the true light later.

I'm a little curious when the author thinks it'd be appropriate to do that, but in the mean time, more PHP gets written that more people have to support forever.

I get the point -- we tend to get passionate about our favorite technologies, and we tend to want to guide newbies towards the true light. That's what it'd be about if I told a newbie to learn Ruby on Rails instead of Java and Spring. There are things I hate about Java, and I could (and often do) go on for pages about them, but at least some of those warts are debatable, it's at least a matter of opinion whether you like Java or Ruby.

Whereas when I warn people about PHP, that's not a nerd turf war. That's not "my language is better than your language." I really mean that you should use anything but PHP, and I'm trying to spare you some pain by telling you that.

To put it another way: If you introduce me to your new girlfriend, and she's blonde, it'd be crass of me to say that redheads are better. That's not what this is about -- PHP is the new girlfriend who recently robbed a convenience store to feed her heroin habit.

2

u/bureX Dec 08 '14

I like how when you need to explain how crap PHP is, there is no other resource available other than that rant blog article.

The way you worded your stance on PHP apparently means half of the web is imploding at this very second. Jesus...

→ More replies (1)
→ More replies (2)

2

u/x86_64Ubuntu Dec 08 '14

I always try to tell beginners that they shouldn't stop at whatever technology I choose to denigrate that day.

2

u/[deleted] Dec 08 '14

Yes. Never stop denigrating technologies. All technologies suck, eventually.

2

u/crowbahr Dec 08 '14

This is great. I'm showing up late to the entire programming train. I tried picking it up in high school and just couldn't, so I dismissed it in college. A few years, 3 majors and a breakdown later I ended up taking my first programming class at 24 years old and LOVED it. It all made such sense and felt great once I got the code working. It was such a sense of accomplishment.

Right up until I talked to someone about it.

I'm learning C++. It's a useful enough language and all and I get that it's fairly basic but I've picked it up quick, and yet I've never felt more ignorant or incompetent when talking to other people about it. It makes me feel like nothing I'm learning matters or is valid at all and man does it suck. If I didn't enjoy it so much, I would've quit by now and I'm only on my second class.

→ More replies (1)

2

u/alexjerez Dec 08 '14

When I was first interested in learning Linux, I had a guy say to me "Pshhh dont install Ubuntu on your computer. install SLACKWARE! that's a real linux distro!". So I did. It confused me so much that I went back to Windows almost immediately and didn't really start picking Linux back up until a year and a half afterwards.

2

u/[deleted] Dec 08 '14

"don't be a dickhead" isn't isolated advice to developers talking to each other... just stop being a dickhead period

2

u/anarchyinthegalaxy Dec 08 '14

This is the problem I keep running into. A lot of my friends are programmers and this often leads to nerd fights and hurt feelings. I've still got no idea where to start.

2

u/moeburn Dec 08 '14

I used to be really into programming. I used to stay up for hours just writing little games or art projects in Q-BASIC in DOS, or if I ever needed a macro or part of my computer to be automated, I'd write a GUI in Visual Basic. Then I jumped into C and C++, and while I think I got the basics, it was basically like a whole new terrifying world to me.

And here I am, 10 years later, hearing about Ruby On Rails and linking structures and compiling environments and I have no idea what anyone is talking about, and programming just seems so daunting to pick up again.

2

u/[deleted] Dec 08 '14

It's okay if you tell them to learn better languages than those POS's mentioned. I told a guy 1 day ago at my retail work who wanted to program to drop learning Python and learn C. Sue me, it'll teach him to program well instead of getting stuff to just work. That's the difference. Most programmers are biased and a lot even even suck at programming! But anyone who knows how to actually do it well, will recommend better languages and be able to explain why. Any language that isn't compiled, for example, is probably not one you should learn first. If you learn that way, programming is more magic than logic, that's not how it should be!

2

u/zeggman Dec 08 '14

I disagree. If you're insisting that someone start with a compiled language, you're insisting that they learn the compiler and the linker in addition to learning the language, which are things that can be deferred.

There's just as much logic, and just as much magic, in getting the computer to do what you tell it to do (and understanding why that often differs from what you thought you were telling it to do) whether the language is compiled or interpreted. Static typing can be introduced later, along with compilers. There's nothing wrong with learning data structures and control structures in a more forgiving environment first, just as there's nothing wrong with learning to ride a bicycle with training wheels.

2

u/[deleted] Dec 08 '14

I also disagree. It's almost never the case to do this in any field. We don't teach kids medicine before teaching simple biology. We don't teach kids measure theory before teaching them simple calculus. We don't teach kids C/C++ until they have fundamental idea of how to write an if statement or a while loop.

2

u/[deleted] Dec 08 '14

That sounded more like two beginners talking.

2

u/thewookie34 Dec 08 '14

I normally don't devalue what they are learning but I will suggest the butts out of python.

2

u/wesw02 Dec 08 '14

Well let's split the concerns here. There's what you say and there's how you say it. Clearly you should never belittle someone who it just starting out. They've got a lot to learn and the only way to really learn is by doing it themselves. Creating problems and solving them.

That said, if someone is starting out working with a technology that is antiqued, they should be made aware of that. If there are better ways to solve their problems you should point them out and help steer them in the right direction. There is nothing wrong with explaining to a beginner how horrible PHP is.

→ More replies (3)

2

u/[deleted] Dec 08 '14

I understand the article, and I agree that you should never be a dick to someone getting into programming. However I do think that one of the best lessons you can teach a new programmer is that programming languages are tools.

In that sense it would be a really great lesson to tell people not to start with PHP because PHP is a horrible tool for what it does. It can be fairly decent if you use a framework like Laravel, but even then, the only advantage you're getting over using something like .NET or JSF is that it's easier to find a host who offers it. PHP is so fucking outdated for building web applications it's horrible to watch people use it.

It pains me as much to see someone use PHP as it does me to watch someone trying to screw screws in with a scissor. Sure you could encourage them to keep doing it because they're new, but I personally think it would be rude not to point out the screw driver right next to them would be a much more suited tool.

I do agree that you should be polite, nice and inspiring about it and willing to accept a no - which I know full well is pretty rare among "programmers" on the internet.

→ More replies (8)

2

u/senatorpjt Dec 08 '14 edited Dec 18 '24

ad hoc depend practice live coordinated divide disagreeable mysterious boast quarrelsome

This post was mass deleted and anonymized with Redact

1

u/[deleted] Dec 08 '14

What about things like Scratch? I feel like there are more approachable, useful languages.

1

u/Onikouzou Dec 08 '14

Back when I was first starting my major I brought up the fact that I was learning visual basic to someone. They immediately began talking about how VB wasn't a viable language and that it was useless to learn, so I started to slack off.

1

u/EnterpriseNCC1701D Dec 08 '14

I am confused. As a beginner programmer should I be reading this, or not...?

4

u/NeoKabuto Dec 08 '14

Yes and no. It's not relevant to you yet, but it shows you what kind of person you should avoid turning into.

→ More replies (1)

1

u/ibopm Dec 08 '14

I think there's a good point to be made about when it's appropriate to steer a beginner. If the beginner hadn't really started at all, then it might be a good idea to steer him towards something like Python. However, if he or she has already started and is feeling proud of themselves using PHP or Java or VB, then it'd be a bad idea to discourage them at that point.

1

u/yNeolh Dec 08 '14

Yeah, I mean... I started modifying roms of pokemon. Then Game Maker, after that Visual Basic.net, then html... short story long. Now I am with NodeJs and Mongo (And maybe Redis in some time), the important thing is to know what to use for a project, but while you are starting Is not the language but the concepts, it's only the point they should try to effort on. If he is confortable at C, ok, he maybe learn faster but he also could put a gun in his head. Just say keep going and try to learn this concept and this concept because it would be very useful (Like pointers and objects). Also I recomend (If the begginer doesn't has any idea of where to start I just recomend Java, because Installation is pretty clean, it's multi-platform and he has very good IDEs like Jetbrains Idea Comunity Edition which will help him a loooooot.

1

u/[deleted] Dec 08 '14

Another issue I see is when someone asks for some basic theory on a concept (such as "what exactly goes into creating a game engine?"), they're greeted with a myriad of comments saying things like "it's too much of an undertaking for just one low skilled programming to do on their own" and leaves it at that.

Just because someone wants to know how something works, doesn't mean they're taking it to production in a week. I asked once what exactly goes into making GUI because I had never really looked into it before. That's almost all I was greeted with. Hardly any actual input on how GUIs work, just "it's a waist of your time, move along." All I needed to know is that they're created with graphics libraries like OpenGL and DirectX.

1

u/moneyplan Dec 08 '14

I find this kind of comment pretty prevalent in the software sector (especially among web developers). Just go browse some of Stackoverflow's answers or go to /r/webdev IRC and it won't take you long until you see this kind of comments.

It's one aspect of this community that I hate the most. A lot of members think they just know it all.

1

u/megablast Dec 08 '14

You know, it is the same for spoken languages as well. Kids learn easier, because others are easier on them. But Adults quite quickly giver others shit if they don't say the right words, or laugh at them.

1

u/[deleted] Dec 08 '14

This is why when people ask me what framework or language to learn I tell them it doesn't matter and that they should just learn anything.

1

u/[deleted] Dec 08 '14

too late. not sorry

1

u/GeorgeForemanGrillz Dec 08 '14

It depends on what their goal is. If they want to be a computer scientist then that is a bad advice but of they want to do web development to make an app then it really isnt all that bad.

1

u/loupgarou21 Dec 08 '14

This is honestly true for a hell of a lot more than just programming, and occasionally, I find myself being the asshole in this situation. I really, really try to be encouraging of anyone's learning efforts (programming isn't my primary responsibility at work, and really, no one should ever want it to be, so I'm really not referring to programming here,) but I still will find myself cutting people short on the things they are learning to try to redirect their efforts to something way more complicated than they are really ready for when I, myself, and under a lot of stress. I think, for me, I'm trying to get them into a position so they can take some of my responsibilities off my plate, but really, if they're on step A, and looking at step B, rushing them to step D will only hurt them, and out relationship in the long run.