Slashdot Mirror


Ask Slashdot: What Do You Wish You'd Known Starting Out As a Programmer?

snydeq writes: Most of us gave little thought to the "career" aspect of programming when starting out, but here we are, battle-hardened by hard-learned lessons, slouching our way through decades at the console, wishing perhaps that we had recognized the long road ahead when we started. What advice might we give to our younger self, or to younger selves coming to programming just now? Andrew C. Oliver offers several insights he gave little thought to when first coding: "Back then, I simply loved to code and could have cared less about my 'career' or about playing well with others. I could have saved myself a ton of trouble if I'd just followed a few simple practices." What are yours?

27 of 548 comments (clear)

  1. get more involved in open source contributing by jjn1056 · · Score: 4, Insightful

    I think the main thing I'd change is I wish I had started becoming active in the open source community around the tools I commonly use. I spent the first 10 years of my career mostly working on my own, or with a few people on the job and was not connected at all with the greater community. I think if I had done so earlier I'd be a better programmer today

    --
    Peace, or Not?
  2. C++ is not the language you start with by Anonymous Coward · · Score: 4, Insightful

    On my CS track, you start with C++, learn data structures and algorithms, and then learn assembly on a 68k.

    I can't think of a better way to discourage someone from learning how to code.

    1. Re:C++ is not the language you start with by Actually,+I+do+RTFA · · Score: 4, Insightful

      Pascal was a good choice of learning language. Now that OOP has proven out, Java is a good choice. Stay away from the rest until you're competent in one of those two.

      If you don't start out dealing with hand-managed memory, you don't learn how memory works. Which means you do stupid shit later.

      --
      Your ad here. Ask me how!
  3. Pick a different job. by Lilith's+Heart-shape · · Score: 5, Insightful

    I wish I had known to pick a different trade instead of programming. Programming isn't a profession like law or medicine. It's a skilled trade like plumbing, masonry, or electrical work. But unlike plumbers and electricians, programmers aren't smart enough to unionize, and so they get fucked in the ass by management. If you have to live in the United States, don't become a programmer. There are better ways to earn a living.

    1. Re:Pick a different job. by sinij · · Score: 5, Insightful

      If you mean the quality of code that gets churned by your average coder, then yes, it is just like plumbing.

    2. Re:Pick a different job. by Rinikusu · · Score: 4, Insightful

      One of the most difficult things I've had to come to accept as a developer is: If you see a 'clever' way to solve something, STOP. The sad fact is most programmers work on programming teams and you need to absolutely view yourself as expendable. Embrace mediocrity and find another outlet for your creativity. This could be personal projects outside of the workplace, or other hobbies altogether.

      --
      If you were me, you'd be good lookin'. - six string samurai
    3. Re:Pick a different job. by Khashishi · · Score: 4, Insightful

      It's not unionized because conditions aren't bad enough to warrant it, as much as programmers like to complain.

    4. Re:Pick a different job. by Matheus · · Score: 4, Insightful

      Sorry it sucks where y'all live.

      Minneapolis here. Getting 40 hours or keeping to 40 hours (whichever is your issue) is not a problem. Wages easily put you in a high standard of living. Of course cost of living is much lower here than any of the cities mentioned but that's part of the appeal of living here... more bang for your buck. Well that and everything else.

      If you really think it sucks everywhere that is not NYC/SF/Austin/Boston then you need to pay more attention.

    5. Re:Pick a different job. by Stormy+Dragon · · Score: 4, Insightful

      Unions are themselves corporations. Private sector unionization has stagnated because being in a union to often just means you end up with two corporations screwing you over.

    6. Re:Pick a different job. by Matheus · · Score: 5, Insightful

      Oh and PS: To a few layers up poster...

      "programmers aren't smart enough to unionize" are you kidding me? To be clear I am not anti-union by any means but for my job not on your life. I'm sure life is different in the valley or big code farms elsewhere but honestly I am better equipped to negotiate as an individual than within a group. The world changes and as development becomes more commoditized this situation may change as well but I don't see that anywhere in the near future. (read my employment lifetime) when my threat as an individual to walk away carries as much weight as a union making the same threat there is no perk to the tradeoffs.

    7. Re:Pick a different job. by Lilith's+Heart-shape · · Score: 4, Insightful

      Last time I checked, the USA isn't the rest of the world, and in most Western countries the Democrats would be a right-wing party.

  4. History by TechNeilogy · · Score: 5, Insightful

    I would have studied more about the history of computers and computer science. It would have kept me from re-making so many mistakes and re-inventing so many wheels.

    --
    "The wisdom of the Patriarchs was that they *knew* they were fools." --Master Foo
  5. How to write code by DudeTheMath · · Score: 4, Insightful

    Write like someone smarter than you will have to fix it ("Who wrote this crap? At least I can tell why he or she did that."), and like someone dumber than you will be adding features ("Bless him or her for making this easy."). You'll be both eventually.

    --
    You save only 59 seconds over 8 miles by going 75 instead of 65. Do you really have to pass that guy? Do the Math!
    1. Re:How to write code by Jason+Levine · · Score: 4, Insightful

      The worst is when you handle old code and think "Who programmed this garbage", only to realize you did years ago.

      That's the bad part of growing as a programmer, you look back at your old code and see it as awful since you now know better. (It can also wind up making you think you're a horrible programmer because your old code looks so bad. It doesn't mean you ARE a horrible programmer, though, just that you are growing.)

      --
      My sci-fi novel, Ghost Thief, is now available from Amazon.com.
  6. Hindsight is 20/20 by MagickalMyst · · Score: 5, Insightful

    I wish I had known how uninteresting and boring coding could be when working for a corporation. It was the ability to be creative and imaginative that made me fall in love with coding in the early eighties. Although I still work in IT, I generally don't code for companies anymore. And somehow coding has miraculously become very interesting once again!

    --
    Political correctness is really just herd psychology pushed by insecure people who desperately seek social conformity.
  7. That an assembler was way easier than hex opcodes by mark-t · · Score: 4, Insightful

    When I first started programming the 6502, back in 1981, I was still in school, and I was manually entering hex opcodes for every machine language program I wanted to create... I was doing this for about 6 months before somebody pointed out that I could use an assembler. I honestly didn't understand what they were talking about until I used one to type in a program that I saw in Nibble magazine. I never looked back. An assembler would have saved me *loads* of time if I had known about it at the beginning.

  8. Re:Where to begin by preaction · · Score: 5, Insightful

    • How to design a solution on my own time before I code a solution on company time.

    Though I inevitably unconsciously think about work code during non-work time, I will never consciously spend time thinking about or working on work code during non-work time.

    They are paying for my brain, they can pay me to sit and think for a while. The actual typing of code is not what programming is.

  9. Grit by jones_supa · · Score: 4, Insightful

    I would have teached him grit. Oh god, how many unfinished little projects I had. Learn to concentrate on one thing and finish it properly. Just keep grinding on it.

  10. I wish I had read Dale Carnegie by pscottdv · · Score: 4, Insightful

    How to Win Friends and Influence People

    --

    this signature has been removed due to a DMCA takedown notice

  11. Simple by geekoid · · Score: 4, Insightful

    put every god damn penny you can into a 401k.
    Oh, you mean programming wise?

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  12. Two things.... by bobbied · · Score: 4, Insightful

    1. A copy of the "Mythical Man Month" by Fredrick Brooks and being told to read it.

    2. A set of closing prices for every stock on the NY exchange for the next 20 years with the advice to become an investment banker..

    If #2 isn't possible, then sitting down with somebody who could explain that you get what you negotiate, not what you deserve, so don't settle for what you get.

    --
    "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
  13. In a large organization, politics matter by idontgno · · Score: 4, Insightful

    You can ignore them, in which case you've volunteered for the role of "victim".

    You can make them your full-time job, in which case you're no longer a developer.

    You should find a good defensive middle ground. At least, some situational awareness. Put your head up and look around. And listen.

    --
    Welcome to the Panopticon. Used to be a prison, now it's your home.
  14. The benefits of specialization by edawstwin · · Score: 4, Insightful

    I learned C++ first and just kind of learned various languages and technologies as the need arose, and now I know several languages and my projects have been widely varied. But I noticed that most of my peers who specialized were much more in demand, and therefore pretty much had their pick of jobs, made more money, and had better working conditions. The kind of specialization I'm referring to is learning something that less than ~5% of programmers know, but is still in some demand, and likely to be in demand in ten or twenty years. Or if you pick something that many programmers already know, learn the shit out of that one thing so that there aren't many others that have your level of knowledge in that one thing. In an interview, impressive knowledge of something specific is always better than just adequate knowledge of many things.

    Also, learn how to be interviewed. It is a very valuable skill.

    --
    I don't want to achieve immortality through my work. I want to achieve it by not dying. - Woody Allen
  15. Code less, get out more by twdorris · · Score: 5, Insightful

    I wish I had learned to balance real life with coding life sooner. I used to do the same zillion hour marathons everyone else did at one point or another in their coding careers. I loved the challenge and being the one producing the results. But then, eventually, I realized there's really a LOT more out there than that tiny little challenge/reward cycle. Biking, hiking, sports with friends, whatever. You can easily burn through 10-15 years of your YOUNG life living the code only to realize later when you're not so young any more that there were TONS of things you would have enjoyed doing more. You can make up some of that, but not nearly all.

  16. Re:A Programmer Competency Matrix by Nemyst · · Score: 4, Insightful

    I'd argue that while it's a nice table, there's one critical flaw with it: it doesn't matter this much if you don't know everything listed, provided that you can learn it on the spot in a fairly short period of time. For instance, I remember having read about red-black trees or how to treat hashmap collisions and I've already programmed in prolog and so on, but do I remember all those things so well that I could immediately, without looking at a reference, know how to implement/work with them? Hell no. There's way too much to learn in computer science to ever hope knowing everything at once, and claiming that this should be the case (or even, that it is achievable) only serves to demoralize and misguide people.

    In my mind, there are two core qualities in computer science (and really, in science in general): being adept at solving problems, and being able to learn new things all the time. The former lets you break down any specific problem in a set of more generic problems for which solutions can be found or designed. The latter means you're able to learn new solutions to problems you may be unfamiliar with.

  17. Re:Quite simply... by Wraithlyn · · Score: 5, Insightful

    OK, I'll bite. :)

    In a Perfect World, tabs would indeed be superior to spaces. No question.

    But in the Real World, tabs and spaces inevitably get mixed together as multiple people touch a project, and then indentation gets messed up.

    Standardizing on spaces helps mitigate this, as everyone sees the exact same thing regardless of editor (whereas tab spacing typically depends on local editor settings). And any editor should be able to "use spaces for tabs" so there is no actual impact on developer effort.

    --
    "Mind, as manifested by the capacity to make choices, is to some extent present in every electron." -Freeman Dyson
  18. Re:What to know by ObsessiveMathsFreak · · Score: 4, Insightful

    Your outdated "value-adding" "service provding" skills are so 20th century. 21st century careerism is about networking. Networking. Networking. Netowrking.

    Look at item number one on TFAs list.

    1. Take names. ...

    In five to 10 years, that will all be different and the person who you ignored because they were boring and couldn't help you will be the person who could have won you an important opportunity.

    Network! Impress people! Dress right! Booze people up! This is how successful companies are made. You will not attract the rright venture capital with your simple abilities. Most companies won't even use those anyway.

    2. Problem solving. .....

    Problem solving is essentially the same thing you learned in abstract in seventh or eighth grade or whenever you learned simple algebra.

    See! Look at this! The people this guy is writing for don't even know how to solve problems. They just code stuff nobody really needs -- and they're still successful! You think your ability to analyse and abstract is something all the cool kids will pay for? Think again. Your geek/nerd/hipster/bro-grammer cred wil matter far more.

    6. Work more than 40 hours per week.

    Profession? You think programming is a profession. Get back on that hamster wheel and like it code monkey. And get some hair dye. First sign of a grey hair or stress line from yellow packs like you and we sack you and hire a fresh young grad to suck into a husk.

    5. Think in terms of a career, not a series of jobs.

    Translation: "You can either join the fed-money, app-cloud bullshit wagon, or you can learn to love foodstamp lines. Either way, it'll still be a superior outcome to any science-fiction fantasy you imagined programmers were capable of making in a rational universe. The Market wants fart-buttons, not robots, so drink the kool-aid or join the lowest caste of contract workers you, you, you..... Loser."

    No wonder so many programmers go into management.

    --
    May the Maths Be with you!