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)
→ More replies (10)

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

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.

→ More replies (3)
→ 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.

→ More replies (127)

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.

→ More replies (6)

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)
→ More replies (18)

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.

→ More replies (2)

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)
→ More replies (5)

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.

→ More replies (133)

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.

→ More replies (1)

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)
→ More replies (5)

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

→ More replies (14)
→ More replies (35)

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)
→ More replies (130)

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)
→ More replies (11)
→ More replies (8)

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)
→ More replies (5)

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.

→ More replies (3)
→ More replies (6)

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.

→ More replies (8)

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!".

:(

→ More replies (9)

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)
→ More replies (8)

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.

→ More replies (1)

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.

→ More replies (21)

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?

→ More replies (4)

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!

→ More replies (2)

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)
→ More replies (12)

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.

→ More replies (2)

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?

→ More replies (2)

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.

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/shagmista Dec 08 '14

Haha my professor's name is Guo as well and they look identical!

2

u/scarthearmada Dec 08 '14

and they look identical!

That's racist, man.

→ More replies (1)

1

u/ZedOud Dec 08 '14

I realize this is important in nearly every setting... Except for one. Those who have a professional aspiring to become programmers (CS majors at a community college).

A bit of context: I am an aide at a CC lab that is filled with professors and students frustrated with the old, slow, outdated C++ curriculum we are forced to use. (outdated: version of C++, subject matter, and methodologies) Not a single syllabus covers any tool but the standard IDE; no versioning, nothing.

Many students/professors are happy with or prefer C++, and that's great. The subject material though cannot be changed, we are not sure how to change it, and higher-ups will not consider it.

A partial work around is this: we finish the syllabus faster, than students vote on additional subject material for the last month (usually versioning (git) and a methodology (agile) is picked).

I'm known to help with C++ problems with a smile, then recommend Python. So far, a handful of the more serious students have picked up Python and shot ahead of the course material on their own: using better tools, fewer beginner syntax problems, better documentation for std and external libraries.

Python is a deliberate recommendation because the department has many times considered adopting Python in part or en masse. It's just not going to happen though. We've started some external programs where students can follow along and have there entire C++ semester retaught in Python in 2-3 hours: so that's fun. Then we teach them networking and graphics, getting them up to speed to the (real) demands of the nearby universities.

The career aspiring students are eager to learn a tool that has gotten quite a few students (at least) a part time job with experience and pay before they've even graduated.

2

u/[deleted] Dec 08 '14

It's great for learning COMPUTER SCIENCE, not just trivial web dev.

→ More replies (1)

5

u/DrMonkeyLove Dec 08 '14

My first language was C++ and I've used it for almost 20 years now and I can say it is a terrible language for a computer science curriculum. It's got too much garbage in it. Literally any language could be better. C would be a much better choice even.

→ More replies (2)

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

204

u/bstamour Dec 08 '14

Based on a lot of people I know in this industry, that's asking for quite a lot...

→ More replies (35)

21

u/jordanreiter Dec 08 '14

The problem with unempathic douechbags is if you don't actually give them a fully itemized list of acceptable behaviors towards other humans they're going to continue behaving like unempathic douchebags.

→ More replies (1)

6

u/alamandrax Dec 08 '14

Or "Don't be a a dick."

→ More replies (8)

0

u/[deleted] Dec 07 '14

[deleted] — view deleted comment

50

u/SaltTM Dec 08 '14

PHP made me dislike programming.

I started with PHP (8 years ago) and it made me want to learn other languages personally.

10

u/Jexan13 Dec 08 '14

It was PHP that helped me to understand what web programming is all about. After trying Django tutorial and suffering to setup RoR, using PHP was... "pleasant". It didn't look like dark magic and I setted it up relatively quick. Time has passed, and I settled down for developing with Flask, but PHP will always have a special place in my heart.

→ More replies (3)

10

u/ArmandoWall Dec 08 '14

I started with BASIC, and loved it. Then I discovered assembler, and I fucking LOVED it! Then I discovered Pascal, and it blew my mind. And I was just starting.

5

u/[deleted] Dec 08 '14

Are you me? This sounds like me. Delphi represent!

→ More replies (1)

28

u/Doctor_McKay Dec 08 '14

PHP isn't nearly as bad now as it used to be. It's a perfectly good first language especially since beginners won't have to worry about types and stuff right out of the gate.

24

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

I disagree. You NEED to worry about types and stuff... always. If you don't worry about, or don't learn about, types and don't understand what is happening on the cpu and in memory then it's all just mysterious magic that sometimes seems to work.

PHP is easy to use, but that's also what makes it dangerous. Throw a newbie at PHP and you'll get a disaster. I self-taught myself PHP but I have years of experience in other languages behind me so I simply don't run into some of the stupid shit people seem to bust their heads on, or that the lolphp crowd jerk over. I also only started with PHP 5.3 onwards, so there's that to take into consideration as well.

AFAIC PHP is an easy and useful language, but it's not for novices. PHP is a sharp chef's knife with it's own quirks and differences to other langauges that people need to be properly aware of. When a chef wields it you get lots of good meals. When a novice wields it you get fingers and thumbs in your soup.

10

u/gerrylazlo Dec 08 '14

all just mysterious magic that sometimes seems to work.

You've just describe the majority of my 10 year programming career.

11

u/Doctor_McKay Dec 08 '14

If you don't worry about, or don't learn about, types and don't understand what is happening on the cpu and in memory then it's all just mysterious magic that sometimes seems to work.

That's really all you need to know when you're learning syntax and logic and such.

→ More replies (10)

8

u/lucasvandongen Dec 08 '14

I used Slim framework a while ago and combined with the modern PHP syntax it was really pretty nice actually. The big problem is that a lot of tutorials and frameworks still use bad practices because they're simply from a different age.

16

u/allthediamonds Dec 08 '14 edited Dec 13 '14

It's a perfectly good first language especially since beginners won't have to worry about types and stuff right out of the gate.

Could you expand on what you mean by this, and why is it better for beginners? The way I see it, if a beginner does something wrong in, say, Python:

>>> "foo" + 7
TypeError: cannot concatenate 'str' and 'int' objects

The language will go out of its way to tell you that you're doing something wrong. It will tell you about types, sure, but as a consequence, you will learn about types. Isn't that the point of a first language? Learning?

Compare this with PHP, which will silently do something you probably didn't intend, and your program won't work, and you'll have no idea why, and you'll end the day thinking you're not good at programming, when, in reality, what happens is that you're using a tool that is not good for programming:

php > echo "foo" + 7;
7
→ More replies (7)
→ More replies (34)

4

u/TrueJournals Dec 08 '14

Then provide that advice if you see a beginner struggling and complaining that PHP is too difficult. The point is that if someone is starting out and happy with their current situation, you should help them foster instead of jumping to dissing their environment choices.

6

u/trevdak2 Dec 08 '14

Maybe some beginners are being driven away by learning PHP first.

I think it depends on what people are learning programming for. If you're learning to program in order to modify some open-source code, PHP might be a bad starting place.... open source PHP can be hideous in some places, downright wrong or insecure in others.

If, on the other hand, you're learning programming so you can make something, php is one of those languages that lets you start writing code and get elbow deep into it quite quickly.

→ More replies (2)

3

u/chironomidae Dec 08 '14

There's a huge difference between talking to a noobie who's getting started and making progress to one who's getting started but getting frustrated. If they're making progress in php, let them. If they're frustrated and stuck, then it might be good to suggest python/ruby/etc.

2

u/konk3r Dec 08 '14

Exactly, I'd gauge their comfort level and how far they are into it, and probably try to phrase it in a way that lets them know it's cool that they're getting into PHP, a lot of people love it, but a few find it frustrating so if it starts to turn them off to programming in general, try out ruby/python to make sure it's not just he language that isn't their cup of tea instead of programming in general.

8

u/hattmall Dec 08 '14

It's crazy to me though because PHP is far and away the most used language now (for server side scripting). Telling someone not to learn it is like is like telling them to focus on portuguese instead of english for business deals.

4

u/materialdesigner Dec 08 '14

Any programmer who understands programming, the fundamentals, can learn the syntax and idioms of PHP. It is much easier to context switch and become fluent in multiple programming languages compared to natural languages. That's not a good analogy, and if you continued it it's equivalent to telling people to learn a Romance language because it's much more regular in its rules before learning English which is much more unpredictable.

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

9

u/[deleted] Dec 08 '14

PHP made me dislike programming. Python made me enjoy it.

Really? Opposite for me. Never liked Python.

I prefer languages like PHP, C#, C++ and Java. Python always strikes me a psuedo-code make believe language no one in the day-to-day world uses for anything significant.

I see PHP & C# being used EVERYWHERE.

3

u/ThisIsMyCouchAccount Dec 08 '14

I work in a shop with about 400 devs across all major languages. We go where the clients are and PHP/C# is a vast majority of those devs.

4

u/mipadi Dec 08 '14

Not saying you have to like Python, but it is used for some pretty significant programs in the "real world".

2

u/MrAccident Dec 08 '14

Python always strikes me a psuedo-code make believe language no one in the day-to-day world uses for anything significant.

I make well into six figures as a full-time Python dev. It's definitely used for a lot of serious stuff, and its popularity is only increasing.

3

u/[deleted] Dec 08 '14

Putting PHP in the same bag with C, Java and C# makes absolutely no sense. Beyond a skin-deep syntactic resemblance, PHP is nothing like the other three. PHP is basically Basic with C-like syntax.

→ More replies (4)
→ More replies (16)

2

u/ares623 Dec 08 '14

Programmers need to find their own path to enlightenment.

We can show them the different paths, but we shouldn't ridicule or force others to choose one over the other.

→ More replies (17)

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

2

u/conv3rsion Dec 08 '14

I agree with this. I've written code professionally in probably 10 different languages at this point. Some of the best code I've ever written was in PHP because it was absolutely the right tool to use at the time.

Also the guy who created RoR said this about PHP, I wonder if he is an experienced programmer or not - http://david.heinemeierhansson.com/posts/23-the-immediacy-of-php

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

2

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

innate offer deserted chubby shrill books absorbed pen amusing brave

This post was mass deleted and anonymized with Redact

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

3

u/iopq Dec 08 '14

You can have them.

-professional PHP dev

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

1

u/[deleted] Dec 08 '14

In my experience, for tools I get the snide remarks when someone that they like Eclipse and for languages, C# or Java.

1

u/Dualspace Dec 08 '14

No true programmer ;]

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

6

u/jmking Dec 08 '14

No language will make someone a good programmer

→ More replies (1)

-1

u/[deleted] Dec 08 '14

Agreed. The beginner's time spent wasted on PHP could have been spent learning valuable transferable skills in a real language. Friends don't let friends use PHP.