Slashdot Mirror


How Much Python Do You Need To Know To Be Useful?

Nerval's Lobster writes: Since Python is a general-purpose language, it finds its way into a whole lot of different uses and industries. That means the industry in which you work has a way of determining what you actually need to know in terms of the language, as developer Jeff Cogswell explains in a new Dice piece. For example, if you're hired to write apps that interact with operating systems and monitor devices, you might not need to know how to use the Python modules for scientific and numerical programming. In a similar fashion, if you're hired to write Python code that interacts with a MySQL database, then you won't need to master how it works with CouchDB. The question is, how much do you need to know about Python's basics? Cogswell suggests there are three basic levels to learning Python: Learn the core language itself, such as the syntax and basic types (and the difference between Python 2 and Python 3); learn the commonly used modules, and familiarize yourself with other modules; learn the bigger picture of software development with Python, such as including Python in a build process, using the pip package manager, and so on. But is that enough?

166 of 263 comments (clear)

  1. trick question by hypergreatthing · · Score: 4, Funny

    The answer has to be 0 right?

    1. Re:trick question by Anonymous Coward · · Score: 5, Interesting

      I know 0 hours worth of python and still was the only person to present an all python solution at a job interview asking people to solve a problem in python.

      I think zero is close to the amount needed to be competitive with those that *only* know python.

    2. Re:trick question by TechyImmigrant · · Score: 4, Funny

      The answer has to be 0 right?

      No. The answer would be : None

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    3. Re:trick question by sinrakin · · Score: 4, Funny

      If you need to know it, you need to know it. If I hired someone who didn't know some piece of Python that was needed, I'd totally sit his ass down and make him spend the 5 minutes it would take to learn it. No excuses.

    4. Re:trick question by theendlessnow · · Score: 2, Funny

      IndentationError: unexpected indent

    5. Re:trick question by TechyImmigrant · · Score: 1

      IndentationError: unexpected indent

      :retab

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    6. Re:trick question by ArcadeMan · · Score: 2, Funny

      Someone should make a whitespace language comprised of only spaces and tabs.

    7. Re:trick question by RoccamOccam · · Score: 4, Insightful

      No, you're missing the point. It's not acting as a nanny, it's merely removing the redundancy of having both reasonably-indented code and start/stop tokens. That's it.

      One of the interesting things about Python is that very few new programming languages use required-indentation, probably due to fear of backlash by the narrow-minded. I suspect that this tends to help keep the Python community (for whom this is a great feature) from dribbling away to the "new hotness" and may be why Python keeps getting stronger and stronger (in contrast to old competitors like Ruby and Perl).

    8. Re:trick question by richpoore · · Score: 5, Informative
    9. Re:trick question by NotDrWho · · Score: 1

      I'm thinking this is one of those Google brain-teaser questions. The one of us that comes up with the most creative answer to this impossible question may get a job offer!

      I'm going to go with "As much as you need to build an app that teaches you any other computer language."

      --
      SJW's don't eliminate discrimination. They just expropriate it for themselves.
    10. Re:trick question by naris · · Score: 1

      I would prefer a reasonable language where space/tab confusions don't turn into weird, hard to debug issues. Has a compiler that confirms the code is used correctly before using it and doesn't automatically assume things that might or might not be correct -- should "10" + "15" == "1015" or should it be 25?

    11. Re:trick question by Anonymous Coward · · Score: 1

      If errors in consistent coding practices are hard to debug issues for you, then your code is a hard to debug issue for everyone else.

    12. Re:trick question by PopeRatzo · · Score: 1

      The answer has to be 0 right?

      Not if you're going to program in Python. But "less than you think" would be a pretty good answer. You're better off knowing Math, because you can always learn Python as you need it. And someone who knows Python and a lot of Math has a much better career path than someone who knows a lot of Python and a little Math. I'm shocked at how much money an entry level Python programmer who's done a masters in say, linear algebra will have thrown at him.

      --
      You are welcome on my lawn.
    13. Re:trick question by RoccamOccam · · Score: 2

      Well, I can certainly understand a preference, but you're going too far to imply that Python is not a "reasonable" language.

      Avoiding hard tabs in your code is all that you need to do and that's quite a simple thing for anyone able to actually write useful code. I've been coding in Python for years and years and have only run across that problem a handful of times, many years ago. Once the official guideline became "no hard tabs", the problem went away even for newbies.

      Python doesn't make you guess 'should "10" + "15" == "1015" or should it be 25'. It is a strongly-typed language.

      If you absolutely need a compiler, then Python is not a fit for you. You missed on all of your other complaints, however.

    14. Re:trick question by telchine · · Score: 5, Funny

      I find that knowing the majority of the Dead Parrot sketch and the main chorus of the Lumberjack song gets me through fine :)

    15. Re:trick question by rduke15 · · Score: 1

      should "10" + "15" == "1015" or should it be 25?

      What a strange question. Obviously, 25 since you are using an arithmetic operator. So surely, you wanted to do arithmetic, right?
      If you had wanted "1015", you would obviously have used a string operator instead ( "10" . "15" ).

      Are there languages so stupid that they can't tell the difference and you have to spell it out for them in every boring detail?

      PS: And if you had wanted to get 327680, you would have used the binary shift operator: "10""15"

    16. Re:trick question by __aaclcg7560 · · Score: 2

      What a strange question. Obviously, 25 since you are using an arithmetic operator. So surely, you wanted to do arithmetic, right?

      Wrong. Quoted numbers are a string operation ("10" + "15" == "1015" is correct). Unquoted numbers are an arithmetic operation (i.e., 10 + 15 == 25). You can cast a string to an integer (i.e., int("10") + int("15") == 25) or cast an integer to a string (i.e., str(10) + str(15) == "1015").

      If you had wanted "1015", you would obviously have used a string operator instead ( "10" . "15" ).

      The dot string operator works in PHP.

    17. Re:trick question by sconeu · · Score: 1

      I'd go with the Argument Clinic, and the Bridge of Death, myself...

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    18. Re:trick question by rduke15 · · Score: 1

      Maybe in one of these weird languages where it's not the operator which determines the operation to be done. Or one of these annoying languages in which you need silly stuff like str(10)... :-)

      I feel for the poor poor programmer who didn't get the chance to understand Perl.

      And BTW, /. ate my binary operator in the post above. It was meant to be:

      to get 327680, you would have used the binary shift operator: "10"<<"15"

    19. Re:trick question by __aaclcg7560 · · Score: 1

      I feel for the poor poor programmer who didn't get the chance to understand Perl.

      The last time I saw Perl was in the classroom ten years ago. Alas, the class got cancelled due to a lack of students and never learned the language. I'm somewhat surprised to recently learn that Perl was still around.

    20. Re:trick question by reboot246 · · Score: 1

      If you don't know the "Sit On My Face" song, you're missing a lot of fun.

    21. Re:trick question by ArcadeMan · · Score: 1

      Alright...

      Someone should send me a few hundred thousand bitcoins at D9scjyKETYZesSmhjCR4vye4bc6iDqXPd6.

    22. Re:trick question by ArcadeMan · · Score: 1

      I meant DogeCoins, sorry!

    23. Re:trick question by ArcadeMan · · Score: 1

      Still, if someone does want to send me a few hundred thousand bitcoins, the address is 18LQHMjKSCSU3g4f29TfmtfxHXUfnh7juB.

    24. Re:trick question by goose-incarnated · · Score: 2

      No, you're missing the point. It's not acting as a nanny, it's merely removing the redundancy of having both reasonably-indented code and start/stop tokens. That's it.

      Sorry, it keeps the start tokens and only does away with the end tokens[1]. Logically, this does not make sense. Logical people hate python.

      [1]Some may even argue that it keeps the end tokens too, only it makes them invisible using whitespace rules.

      --
      I'm a minority race. Save your vitriol for white people.
    25. Re:trick question by serviscope_minor · · Score: 1

      No, you're missing the point. It's not acting as a nanny, it's merely removing the redundancy of having both reasonably-indented code and start/stop tokens. That's it.

      Unfortunately, from the point of view of parts of my brain (visal cortex?) it not redundancy that's being removed. You see, my brain likes having stuff indented correctly because it is easier to read. My brain also likes having end of block markers since it's easier to visually scan for the end of a block.

      With either one but not the other, one can infer indentatation level or end of blocks, because they are indeed redundant. But not to part of my brain: so in order to read the code I have to expend more effort because low level parts of my brain can't do the job.

      One of the interesting things about Python is that very few new programming languages use required-indentation, probably due to fear of backlash by the narrow-minded.

      It is you who is narrow minded. Apparently you can't conceive people like me who find Python much, much harder to read as a result of that decision.

      --
      SJW n. One who posts facts.
    26. Re:trick question by Pseudonym · · Score: 1

      So. How is life in a bubble?

      Actually, I live outside California.

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
    27. Re:trick question by __aaclcg7560 · · Score: 1

      People are always surprised when I exceed their low expectations and raise the bar for them.

    28. Re:trick question by david_thornley · · Score: 1

      The "+" operator has been overloaded in most of the languages I've used. The code for doing a floating-point addition is not the same as for integer addition, and neither are the results (in bit patterns particularly). I've used languages without floating-point numbers and languages without integers (never missing both, although there are languages without either), but not many.

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
    29. Re:trick question by Half-pint+HAL · · Score: 1

      I never could understand how so many people don't recognise that colon is a start-block token. "It's the end of a command that takes a block" is semantic wriggling.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    30. Re:trick question by Half-pint+HAL · · Score: 1

      No, I'm pretty sure you're the only one with that particular brain issue.

      The entire history of human semiotics is one of multiple redundancy. Look at numbers: one, two, three, four, five, six, seven, eight ... we still haven't repeated any vowel sounds, and we've had a fair mix of consonants too. The differences are bigger than necessary for conveying unique information, even taking into account every single part of information theory. why? Because the brain isn't pure maths, and redundant information can often speed things up as two inputs can reinforce each other.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
  2. I'm already useful by plover · · Score: 5, Funny

    I know C++. To me, anyone who knows python but not C++ is half useless. If you only know Java, you're 25% useless. And if you know only Visual Basic, you're 125% useless.

    --
    John
    1. Re:I'm already useful by ADRA · · Score: 4, Insightful

      Spoken by a true pragmatist. I'm glad you're not my hiring manager (though sadly there are many who work under the same broken assumptions). I hate programming languages as much as the next zealot, sure. To assume a systemic bias against those with a specific set of language skills (disregarding experience/domain knowledge/people management/customer interaction/raw productivity/hipster hat collections) may be a little short-sided to the extreme.

      --
      Bye!
    2. Re:I'm already useful by ShanghaiBill · · Score: 2

      Did you see "Ex Machina"? They show code on the computer screen, and it is obviously python. So, apparently, python can be used to program hot android chicks. Of course, there were some flaws in the program, but they were fundamental design flaws rather than due to any limitation in the language.

    3. Re:I'm already useful by tomhath · · Score: 4, Interesting

      Yea, reminds me of the time a co-worker wrote a little utility in C++. It was only a few dozen lines and took him less than an hour to get it working; I did the same thing in one line of awk in less than a minute.

    4. Re:I'm already useful by ArcadeMan · · Score: 1

      Yeah, stupid morans!

    5. Re:I'm already useful by Anonymous Coward · · Score: 3, Interesting
    6. Re:I'm already useful by schlachter · · Score: 2

      Yeah, I hate it when jobs advertise for X experience in Y language, rather than just asking for a creative, analytical thinker with development experience.

      Ok, I'm being partly sarcastic, but in an ideal world, I'd be serious.

      --
      My God can beat up your God. Just kidding...don't take offense. I know there's no God.
    7. Re:I'm already useful by Anonymous Coward · · Score: 2, Insightful

      But the assumptions aren't necessarily broken.

      There are some very important concepts that are handled "under the covers" by languages such as Java and VB. (Garbage collection is one such concept.) I strongly believe that thoroughly understanding those concepts helps promote more disciplined code.

      If you "only" know VB and cannot write competent C++ code without significant (re)education, then I will not be confident that the VB code you write is worth much in the first place. (Sure, maybe it is quite good code, but it's not unreasonable of me to assume otherwise.)

      However, if you can write thoroughly competent C++ code, then I'm willing to bet that only a minimal amount of additional education will be necessary for you to write competent Java or VB code.

      I do believe that a programmer should use the "right tool for the job" and I don't believe in language zealotry, but I do believe that competence in certain languages is a good measure of overall programming competency. VB alone does not carry that weight. Don't pretend otherwise.

    8. Re:I'm already useful by Livius · · Score: 1

      systemic bias against those with a specific set of... skills

      That's every job interview.

    9. Re:I'm already useful by ArcadeMan · · Score: 1

      Not so much whoosh as doing a follow-up on the VB reference. VB = Microsoft = USA.

    10. Re:I'm already useful by schlachter · · Score: 1

      Oh, that sounds great. Pointers please. I've bluffed my way in, but have yet to achieve the god-like position and huge sums of money.

      --
      My God can beat up your God. Just kidding...don't take offense. I know there's no God.
  3. You can get by with: by xaosflux · · Score: 4, Funny

    Holy Grail;
    Dead Parrot;
    Spam;
    Ministry of Silly Walks;
    and of course Spanish Inquisition.

    1. Re:You can get by with: by Anonymous Coward · · Score: 5, Funny

      I didn't expect the Spanish Inquisition to be on that list...

    2. Re:You can get by with: by Anonymous Coward · · Score: 1

      You needn't bother to remember the name of Johann Gambolputty davon ausfern schpledenschlitt crasscren bonfreidigger dingledangledongledungle burstein von knackerthrasher appelbanger horowitz ticolensic granderknottty spelltinkle grandlich grumpelmeyer spelterwasser kurstlichhimble eisenbahnwagen guten abend bitte ein nurnberger bratwurstle geschpurtenmitz weimachelube hundsfut gumberaber schonendanker kalbsfleich mittleraucher von Hauptkopf of Ulm.

      It's not very useful at all.

    3. Re:You can get by with: by ArcadeMan · · Score: 3, Funny

      Well I got everyone beat. I did expect five items on his list:

      Holy Grail
      Dead Parrot;
      Spam;
      Ministry of Silly Walks;
      Spanish Inquisition;
      and Argument Clinic

      No you didn't.

    4. Re:You can get by with: by R3d+M3rcury · · Score: 1

      Holy Grail is an absolute requirement. I'll ask about that in interviews. If you can't come up with at least one line from the film, you're definitely not getting the job. I'm not sure Ministry of Silly Walks is necessary, though. It's more of a sight gag and actually requires skill to perform, so it might be a bit much to expect from someone. I might add in "Cheese Shop" and "Bruce"--especially The Philosophers Song.

    5. Re:You can get by with: by msk · · Score: 2

      Since the parent story appears to be yet another Dice plant, this subthread of responses is by far the most appropriate.

      and . . . "you're supposed to 'aggle."

    6. Re:You can get by with: by TeknoHog · · Score: 1

      Candid photography. In case you are aware of its existence.

      --
      Escher was the first MC and Giger invented the HR department.
    7. Re:You can get by with: by Anonymous Coward · · Score: 1

      Yes I did

    8. Re:You can get by with: by reboot246 · · Score: 1

      I don't dare go there. I want to live a few more years.

      But speaking of jokes, why is American beer like having sex in a canoe?
      It's fucking close to water!

    9. Re:You can get by with: by ArcadeMan · · Score: 2

      No you didn't!

    10. Re:You can get by with: by plover · · Score: 1

      This is Slashdot. You only get abuse.

      --
      John
    11. Re:You can get by with: by plover · · Score: 1

      If you know Idle (Eric, not the IDE), you get the job automatically. If you can get me tickets to Spamalot.

      --
      John
    12. Re:You can get by with: by plover · · Score: 1

      Well, back in my day there were only three episodes of Monty Python's Flying Circus, which we quoted every day at lunch, and we liked it that way.

      --
      John
    13. Re:You can get by with: by fyngyrz · · Score: 1

      What hump?

      --
      I've fallen off your lawn, and I can't get up.
    14. Re:You can get by with: by q4Fry · · Score: 1

      Back in my day, there weren't any episodes yet: We had a single copy of the unproofed screenplays from a mimeograph that didn't have any vowels.

    15. Re:You can get by with: by plover · · Score: 1

      A mimeograph? You had it easy. We didn't have a mimeograph, so we had to listen to a bunch of Welshmen sitting around a table telling jokes that had no vowels, and then type them up ourselves.

      --
      John
  4. Oh look, more dice.com crap ... by Anonymous Coward · · Score: 4, Interesting

    So here's the link with the campaign tracking removed.

    It looks like Dice is going to run a series of non-articles detailing what we should know, and have started to embed shit like "?CMPID=AF_SD_UP_JS_AV_OG_DNA_" this in their self-promoting URLs.

    Click bait is click bait. Especially when done by sleazy assholes like Dice.

    Fuck you, dicebags.

    1. Re:Oh look, more dice.com crap ... by iONiUM · · Score: 1

      Almost all of the submitter's posts are articles which have the first link as dice.com with a campaign ad, and then other links to non-news sites (such as in this one with 3 links to python.org).

      How is this okay?

    2. Re:Oh look, more dice.com crap ... by LessThanObvious · · Score: 1

      The millennials doing recruiting now days don't even know Dice ever existed, they must be hurting. Then again their shitty clickbait articles force my sympathy filter to off.

    3. Re:Oh look, more dice.com crap ... by geminidomino · · Score: 1

      Fuck you, dicebags

      Please don't slander the noble dicebag by associating it with the scum who ruined Slashdot and Sourceforge.

    4. Re:Oh look, more dice.com crap ... by plover · · Score: 1

      I intended to be snarky here, but the more I thought about it, it really is Dice's website. They post stuff, and we keep coming back and reading it, even though we're not paid to. What part of that do you consider "not OK"?

      --
      John
    5. Re:Oh look, more dice.com crap ... by fyngyrz · · Score: 1

      I didn't come here to read what Dice wrote. I came here to read what you wrote.

      For better or worse, slashdot attracts a collection of some very smart, and well-informed, and funny, people. And trolls, but hell, trolls are everywhere. Many places seem to only have trolls.

      --
      I've fallen off your lawn, and I can't get up.
    6. Re:Oh look, more dice.com crap ... by KGIII · · Score: 1

      Or you can use this URL:

      http://developers.slashdot.org...

      --
      "So long and thanks for all the fish."
  5. How Much? by MagickalMyst · · Score: 5, Insightful

    None, if you use Perl :) I write code to monitor hardware devices, interact with SQL, and output to HTML pages. Perl does it all!

    That said, I think learning the basics of any language is important no matter what type of software you will be coding.

    Programming languages are like tools; use the best tool to get the job done.

    Assembly is a wonderful language if you are writing low level system software; not too useful for SQL databases. C++ is great for system interaction and fast apps - but I probably wouldn't use it for front end UI. Javascript is great for web pages but not for device drivers.

    Visual Basic is good for.. um.. nothing.

    --
    Political correctness is really just herd psychology pushed by insecure people who desperately seek social conformity.
    1. Re:How Much? by nephilimsd · · Score: 1

      In all fairness, I've worked for several large companies (started in telecommunications and now in education) and so far, all of them have used Microsoft Office as a general productivity suite for day-to-day business. I work in data analytics (mostly report writing, actually), but the number of times that a project is best completed using VBA in Excel, Access, PowerPoint or even Outlook makes understanding VB well enough to automate monthly or quarterly reports in a format that executives find comfortable to work with has kept me employed far more than the ability to write complex queries in SQL or full applications in C++.

  6. Re:...useful for a pub quiz? by Dunbal · · Score: 1

    We are the knights who say...

    --
    Seven puppies were harmed during the making of this post.
  7. A Similar Question by raftpeople · · Score: 5, Insightful

    How much of a summary do you need to read to know you should skip that one?

    1. Re:A Similar Question by CanadianMacFan · · Score: 1

      Or: How much of the title do you need to read in order to guess it's an article from dice?

    2. Re:A Similar Question by ArcadeMan · · Score: 3, Funny

      Question: How much of the title do you need to read in order to guess it's an article from dice?

      Answer: None at all. If you're on Slashdot, it's a given.

      By a strange coincidence, "None at all" is exactly how much suspicion the ape descendant Arthur Dent had that one of his closest friends was not descended from an ape, but was in fact from a small planet somewhere in the vicinity of Betelgeuse. Arthur Dent's failure to suspect this reflects the care with which his friend blended himself into human society, after a fairly shaky start. When he first arrived 15 years ago, the minimal research he had done suggested to him that the name Ford Prefect would be nicely inconspicuous. He will enter our story in 30 seconds and say, "Hello, Arthur."

      The ape descendant will greet him in return but, in deference to a million years of human evolution, he will not attempt to pick fleas off him. Earthmen are not proud of their ancestors and never invite them round to dinner.

    3. Re:A Similar Question by rubycodez · · Score: 1

      Those three points would be steps in learning any language too; next week they can s/Python/Objective C/g then s/Python/Go/g .....

    4. Re:A Similar Question by __aaclcg7560 · · Score: 1

      If the title is obviously confusing and/or misleading, read the summary before commenting.

    5. Re:A Similar Question by Anonymous Coward · · Score: 1

      How much of a summary do you need to read to know you should skip that one?

      Nerval's Lobster writes:

  8. Well, what is minimum usefulness required? by Gestahl · · Score: 2

    Tier 2 support might get by with being able to read and diagnose problems, them pass them on to dev. Junior programmers might need bare minimum of syntax and structure, the heavy lifting being taken care of by the architecture team: anything they can't handle goes to the senior developers. Architects and thought leaders may need to at least be familiar with every major library, and experts or even contributors to the ones critical to their systems in order to be useful in their roles. Improperly scoped questions are guaranteed to generate non-productive discussion as people are arguing from their own positions.

    1. Re:Well, what is minimum usefulness required? by Darinbob · · Score: 1

      It's like shell programming. If you know how to use "&&" or "||" you can make use of that without knowing anything else. It's all incremental. Python is not used only for major software development, so you need to know nothing at all about "pip" or the extra modules to make use of it. Just like perl, you can be a highly experienced Perl user and never once look at the CPAN stuff.

      Like any scripting language, they're initially designed to be helper languages that let you get the job done on some side projects. Only later do they morph into something bigger (and monstrous) for full blown applications, and maybe even develop a community group think vastly removed from the original style.

  9. How much crap before Slashdot becomes useless? by Anonymous Coward · · Score: 5, Insightful

    We've seen this same thing over and over with a different language. Does anyone care by now?

    Next week:

    How much Swift ... useful?

    1. Re:How much crap before Slashdot becomes useless? by dcollins117 · · Score: 1

      OK, you beat me to it. There have been a number of "What's the minimum amount of $LANGUAGE do you think I can get away in order to land my dream job? Preferably something that earns 6 figures...

      Ok folks, I like answering questions but that's something I can't help you with :)

    2. Re:How much crap before Slashdot becomes useless? by Darinbob · · Score: 1

      How much Slashdot do we need to know in order to be called a geek?

    3. Re:How much crap before Slashdot becomes useless? by XxtraLarGe · · Score: 1

      How much Slashdot do we need to know in order to be called a geek?

      I was at Hope College this week, where it all began. What does that get me? [bracing for rude replies]

      --
      Taking guns away from the 99% gives the 1% 100% of the power.
    4. Re:How much crap before Slashdot becomes useless? by narcc · · Score: 1

      About 3 quarts.

    5. Re:How much crap before Slashdot becomes useless? by Thing+1 · · Score: 1

      How much Slashdot do we need to know in order to be called a geek?

      Natalie Portman and grits.

      Jon Katz.

      You insensitive clod.

      In soviet Russia, ...

      The eponymous effect.

      Libraries of Congress (per second).

      Wesley Crusher.

      --
      I feel fantastic, and I'm still alive.
  10. COBOL by Anonymous Coward · · Score: 2, Funny

    COBOL WAS LIKE THAT UP TO THE 1977 REVISION. FORTUNATELY I LEARNED COBOL-80.

    Blah, blah, blah, COBOL is yelling.

  11. The Article Asks, "Is it enough?" by Anonymous Coward · · Score: 1, Insightful

    The answer is no.

    Guido van Rossum himself isn't qualified for an entry-level Python position.

    That's why we need more H1-Bs!

    1. Re:The Article Asks, "Is it enough?" by phsdv · · Score: 1

      Probably Guido van Rossum himself came to the USA on a H1-B visa, before he got his green card.

  12. Bare minimum by bobdehnhardt · · Score: 5, Funny

    I'd say the Parrot Sketch, Argument Clinic, and Silly Walks. Maybe add in Bruces and Spanish Inquisition, although no one expects that last one.

    Um, what? No, I didn't read the article before responding. Why do you ask?

    1. Re:Bare minimum by Yaztromo · · Score: 1

      I'd say the Parrot Sketch, Argument Clinic, and Silly Walks. Maybe add in Bruces and Spanish Inquisition, although no one expects that last one.

      If you haven't spent an afternoon saying "Ni!" to your colleagues, you may turn in your geek/nerd card on your way out.

      By way of penance, you must return here with a shrubbery, or else you will never pass through this wood alive. One that looks nice. And not too expensive.

      Now go!

  13. The answer is by fluffernutter · · Score: 1

    42

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
  14. Silly question by MikeRT · · Score: 1

    The answer is that you need to know enough that you can hit the ground walking, if not running, unless you are entry level.

  15. Re:Simple by Darinbob · · Score: 1

    Start with 0s and 1s, and everything else derives from that. (except for functional languages, where you start with S and K)

  16. a basic working Python currency? by tchdab1 · · Score: 1

    I'd say "not dead yet", "the lumberjack song", "spam", "Torremolinos!", and a couple movies.

  17. Scope of question by lq_x_pl · · Score: 4, Insightful

    It is difficult to identify how much of [anything] one needs to know without knowing what the [job] responsibilities are.
    I use Python for day-to-day automation of things I'd rather not do by hand. I'm not master, and most of what I write looks like c++ (not very pythonesque) - so someone who is exceptionally proficient with Python would cringe at what I produce.
    However, what Python I do know allows me to be more productive throughout my day.
    Just spend time with the language trying to do things that [job] requires, and you will discover how much Python you need to know to do [job].

    --
    An internal system operation returned the error "The operation completed successfully.".
    1. Re:Scope of question by msobkow · · Score: 1

      I do my automation with ksh/bash scripts. They work on pretty much any *nix platform without requiring an additional language stack be installed.

      --
      I do not fail; I succeed at finding out what does not work.
    2. Re:Scope of question by shutdown+-p+now · · Score: 1

      Pretty much all mainstream Linux distros (which, let's be honest, is 90+% of *nix platform these days) have Python out of the box. On others, installing it is a single command along the lines of "pkg add python" away. It sounds like an excuse.

    3. Re:Scope of question by msobkow · · Score: 1

      The only dependency a software package should have is on the things it actually needs and uses. Adding a dependency just for the sake of scripting given the number of tools out there that can achieve the task is foolish.

      See "systemd"...

      --
      I do not fail; I succeed at finding out what does not work.
    4. Re:Scope of question by Anonymous Coward · · Score: 1

      The number of times I've seen shell scripts fail upon migration to a different *nix platform is far and away larger than the number of times I've had a difficult time getting python installed.

      Nevermind the fact that python works on far more than just *nix systems.

      So I guess some people like more flexibility and portability than you do.

    5. Re:Scope of question by lq_x_pl · · Score: 2

      Oh sure. Bash is plenty useful for many tasks. However, if my boss asks me to harvest a 50k line xml doc for a certain kind of information, I can get there a lot faster with Python. That may just be due to a deficiency in my ability to regex - however, the number of modules I can import into Python extend my usefulness on many of the random tasks I get assigned sometimes. :-)

      --
      An internal system operation returned the error "The operation completed successfully.".
    6. Re:Scope of question by umghhh · · Score: 1

      Stripping things to the absolute core has some advantages. Yet because shells are different and the one you consider basic, is not always available (due to corporate policy or some other force of nature), this makes this absolute minimum a set of absolute minimums. If so you can just say - chose the tool available and best fitting your approach to the problem
      Besides simplification is good but you should not simplify beyond certain point. I'd say python belongs to the set of common tools as are grep, awk, sed, all shells and other tools. I am divided myself on whether that is good or bad but I accept it as it is.

    7. Re:Scope of question by shutdown+-p+now · · Score: 1

      OP said that he uses Python for "day-to-day automation of things". What software package are we talking about?

  18. really helpful by binarstu · · Score: 1
    From TFA:

    Python is a general-purpose language, which means it isn’t used for just one purpose such as Web development.

    Oh, so that is what "general-purpose" means! I'm still not sure I understand, though. Can you give me some examples?

    For example, if you’re hired to write apps that interact with operating systems and monitor devices, you might not need to know how to use the Python modules for scientific and numerical programming. In a similar fashion, if you’re hired to write Python code that interacts with a MySQL database, then you won’t need to master how it works with CouchDB.

    Got it. So with Python, I don't need to spend time learning things that I don't need to know. Python does sound like quite a useful language!

    In all seriousness, the article doesn't even have its facts straight. Consider:

    Any Python newbie needs to know which types are immutable, which means an object of that type can’t be changed (answer: tuples and strings).

    No, that's not the correct answer. Numeric types are also immutable, and that includes integers, floats, complex numbers, and Booleans. Frozen sets are immutable. (To be fair, frozen sets are a relatively obscure type unlikely to be used by beginners.) There are probably others I'm not thinking of off the top of my head.

  19. come on dice... really? by evilrip · · Score: 1

    this has to be some sort of bad joke, nobody is laughing at the horrendous quality of articles and the repeat nature of them.. christ.

    --
    "To err is human, to forgive, beyond the scope of the Operating System"
  20. Aptitude instead of existing knowledge by Rigel47 · · Score: 1

    Unless you're hiring someone for a specific development role (in which case you know exactly what you need) there's really no right answer to this question. But evaluating someone's ability to learn and do on their own is paramount in my experience. I'm a sysadmin and don't code much but I have written my own python scripts that interact with databases including scripts with classes and modules as well as multi-threaded scripts. It was what was necessary to fix the problem at hand. Just don't ask me to sit down and write it during the interview, I will likely need a day or two to buff the rust off my knowledge.

  21. Re:Almost by Marginal+Coward · · Score: 4, Funny

    It always amazes me that so many folks reject something entirely because they don't like one aspect of it. Good luck finding a wife...

  22. Did I call it or did I call it? by Verloc · · Score: 5, Insightful

    Comment: Ahh Dice (Score 4, Funny)
    by Verloc on Thursday June 04, 2015 @10:08PM (#49844935) Attached to: How Much JavaScript Do You Need To Know For an Entry-Level Job?

    Last week it was "How much C++ do you need to know for an entry level job"

    next week it'll be "How much Python do you need for an entry level job"

    Must be nice crowd sourcing your job requirements from Slashdot.
    ---

    It was even Python. Amazing. I predict next week: Ruby.

    1. Re:Did I call it or did I call it? by Dogtanian · · Score: 5, Insightful

      Er.... yeah. Indeed you did. I missed those, but this is utterly, utterly blatant now that it's been pointed out; this should have been posted higher- it's one of the few cases I'd forgive posting as an offtopic "reply" to an early comment in order to increase its prominence.

      Here are the stories in question:-

      How Much C++ Should You Know For an Entry-Level C++ Job? (May 27 2015)

      How Much JavaScript Do You Need To Know For an Entry-Level Job? (4 June 2015)

      Note the a gap of eight days between the stories in both cases. Note that the three stories were submitted respectively by Nerval's Lobster, Nerval's Lobster and, er... Nerval's Lobster. Who happens to work for Slashdot.

      Not that I'm suggesting that the fact Slashdot is now owned by the IT and engineering careers website Dice has anything to do with it being used to push out formulaic and self-serving "submissions" like this. *cough*

      Seriously, this makes even the old Slashdot "whoops, a stupid editor 'accidentally' posted the same good-for-attracting-pageviews-and-discussion story twice just as it fell off the front page" cynicism look good.

      --
      "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
    2. Re:Did I call it or did I call it? by Dogtanian · · Score: 2

      Addendum; Just checked- they're all links to Dice stories, not even cherry-picked third-party ones. Enough said.

      --
      "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
    3. Re:Did I call it or did I call it? by sootman · · Score: 1

      Next week, when this story appears on Slashdice, let's all just link to this post.

      --
      Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  23. Bruces. by jpellino · · Score: 1

    And Cheese Shop.

    --
    "Win treats sysadmins better than users. Mac treats users better than sysadmins. Linux treats everyone like sysadmins."
  24. I think you would need to know the Holy Grail... by Fallen+Kell · · Score: 4, Funny

    I mean seriously, you need to at least know the Holy Grail to say that you know Python...

    --
    We were all warned a long time ago that MS products sucked, remember the Magic 8 Ball said, "Outlook not so good"
  25. Re:Almost by h4ck7h3p14n37 · · Score: 4, Insightful

    Have you actually written code in Python and found the whitespace handling to be an issue? When I first heard about whitespace being significant I didn't like it, but I've never had a problem in practice.

  26. Re:Almost by rubycodez · · Score: 4, Funny

    My wife doesn't have a white space, she's asian.

  27. that's right, nice man, I AM dangerous by mix_left_and_right · · Score: 1

    brushes AC's shoulders....

  28. Competition by Livius · · Score: 1

    It does not take much of any skill to be useful. There's always a certain amount of entry-level work that has value.

    It takes god-like powers, however, to be competitive in today's job market, which I suspect might be the question actually intended.

  29. I love Python! by danthemanvsqz · · Score: 2

    I know C, C++, C#, Java, Javascript and Python. By far Python is my favorite language. Reading the comments I see many haters here bitching about the tabs. That is a very weak argument. Python's beauty comes in the elegant and readable code. Also there are three programming styles to solve any problem, OOP, procedural and functional. This allows a programmer to be creative and have a ton of fun programming. Those other verbose languages are tedious and boring, everyone's code looks the same because the IDE writes most of it for you.

    1. Re:I love Python! by TeknoHog · · Score: 1

      If you love Python, like I do, consider having an affair with Julia. http://iki.fi/teknohog/rants/p...

      --
      Escher was the first MC and Giger invented the HR department.
  30. Data mining by msobkow · · Score: 1

    That's what happens when a website's owner decides to use it for data mining instead of publishing actual articles anyone cares about.

    --
    I do not fail; I succeed at finding out what does not work.
  31. Re:Almost by rwa2 · · Score: 1

    You have to know enough to know that it makes whitespace significant. That's useful, because it should lead you to choose another scripting language, one which is less retarded.

    As a python guy, I lol'd the first time I had to maintain some ruby and found that the rubocop linter makes it more persnickety about whitespace than python is.

  32. Obligatory xkcd by rwa2 · · Score: 1

    C'mon people, I waited all day and I still have to post this for you?

    https://xkcd.com/353/
    which all of course ends in:
    https://xkcd.com/521/ (mouseover text)

  33. Re:Almost by danthemanvsqz · · Score: 2

    Set your editor to 4 hard spaces on tabs just like the PEP8 standard suggests. Problem solved.

  34. TIL by bobmajdakjr · · Score: 1

    Today I learned you need to know the primitives and syntax, but only the modules you actually plan to use. I've been doing programming wrong all this time.

  35. Re:Almost by Marginal+Coward · · Score: 4, Funny

    I heard a similar rationale regarding a baby and its bathwater. At first, the bathwater was blamed for the unfortunate zealous disposal of the baby. But when that explanation didn't fly, the purported ugliness of the baby was offered as justification. However, after hearing both explanations, the jury remained unconvinced.

  36. The language isn't important by Chalnoth · · Score: 1

    It's not the language nearly as much as it's more general software development skills such as algorithms, data structures, algorithmic complexity, and design patterns. It's really easy to transition between languages and shore up your own holes in knowledge by keeping links to reference resources (or books).

    The general practice of knowing how to translate an idea into a workable piece of code is far, far more important. The individual language is just the medium through which you're working. Different languages have somewhat different toolboxes (with a lot of overlap), but overall the general concepts are the same. Focus on the software design fundamentals. You can pick up a new computer language within a few weeks whenever you need to.

  37. Common Sense by Art3x · · Score: 1

    I didn't read the article, but the summary makes it sound like it would have been a waste of time anyway:

    How Much Python Do You Need To Know To Be Useful?
    ...
    Cogswell suggests there are three basic levels to learning Python: Learn the core language itself, such as the syntax and basic types (and the difference between Python 2 and Python 3); learn the commonly used modules, and familiarize yourself with other modules; learn the bigger picture of software development with Python, such as including Python in a build process, using the pip package manager, and so on.

    Isn't that the case with any language? Dice could have attracted even more people with this:

    How Much of a Programming Language Do You Need To Know To Be Useful?
    ...
    Cogswell suggests there are three basic levels to learning your next programming language: Learn the core language itself, such as the syntax and basic types (and the difference between the current and last major versions); learn the commonly used modules, and familiarize yourself with other modules; learn the bigger picture of software development with the language, such as including it in a build process, using the package manager, and so on.

  38. Re:Almost by Anonymous Coward · · Score: 4, Interesting

    Tables use white space to convey structure. Do you think they are retarded?

    Paragraphs usually have a first line with extra white space. Is this retarded?

    Centering titles implies using lots of white space. Is this retarded?

    Operas have white spaces between arias. Supposedly this is also retarded, isn't it?

    > You have to know enough to know that it makes whitespace significant. That's useful, because it should lead you to choose another scripting language, one which is less retarded.

    You used white spaces in your post. Why? Are they significant or is your post retarded?

    [Meta: Can we filter out registered posts -- obviously without being registered?]

  39. Re:Almost by Anonymous Coward · · Score: 1

    Nothing is a better giveaway of a terrible programmer than strong opinions for or against a particular language.

    My hatred of JavaScript is one of my biggest weaknesses. But Python? What'd she ever do to you?

  40. Useful? by Culture20 · · Score: 1

    I can't think of much of a practical use for most of python, but "always look on the bright side of life" was a song with a wise undertone.

  41. Re:Almost by bunratty · · Score: 2

    I've written Python for years and have never used any special editor. The one problem I've had is when commenting out several lines of Python code -- you need to add a # character to the beginning of each line. It's a minor inconvenience. But Python could use a good multiline comment mechanism. I had the same problem in Perl, which uses curly braces, so it isn't really an indentation issue at all.

    --
    What a fool believes, he sees, no wise man has the power to reason away.
  42. greasemonkey/tampermonkey script? by Fnord666 · · Score: 1

    Does anyone have a greasemonkey/tampermonkey script that hides dice spam authored by this twat?

    --
    'The tyrant will always find pretext for his tyranny.' - Aesop's Fables
  43. Re:Almost by Dogtanian · · Score: 5, Insightful

    Please excuse this off-topic queue-jumping reply to your comment, but there are times when someone makes a very insightful observation that really, really should have gone in a more prominent position.

    Sneak preview; three virtually identical questions of the form "How Much [language x] Should You Know For an Entry-Level [language x] Job?" going to the Dice website and "submitted" by the same Slashdot employee in just over two weeks.

    Bonus; OP linked above correctly predicted this week's story and even got the language right.

    That's almost funny, except that it isn't. Admittedly, Slashdot has been "going down the tubes" almost since it launched, but this is particularly crap.

    --
    "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
  44. Re:Almost by Zero__Kelvin · · Score: 2, Insightful

    To write python, you cannot do without a python-aware editor.

    What kind of idiot writes code in an environment that isn't language / syntax aware in 2015?

    " It's such a weird design decision, when we've getting by with curly braces for so many decades in so many languages, that to just decide to do things differently to *everything* seems .. Well.. Kind of pig-headed."

    Seriously? You are arguing against change adamantly, and citing pig-headedness on the Python developers part? Now that is hilarious.

    'Fact is, python would be less irritating if they hadn't gone for the whitespace thing. Therefore it was a bad call.

    Since it isn't even remotely irritating to myself and (likely) hundreds of thousand of others it wasn't a bad call for us. If it was a "bad call" for you, I suggest you can chalk that up to your pig-headedness combined with your lack of understanding the important of using decent code development tools.

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  45. Re:Almost by mvdw · · Score: 3, Informative

    I've written Python for years and have never used any special editor. The one problem I've had is when commenting out several lines of Python code -- you need to add a # character to the beginning of each line. It's a minor inconvenience.

    What about using the """ triple-quote format? That works for multi-line comments, but may be "special" in that it's interpreted by other tools.

  46. Re: Almost by danthemanvsqz · · Score: 2

    How would it destroy your code? If you don't have access to the .vimrc or other config, then simply use the space bar instead of tab.

  47. Re: Almost by danthemanvsqz · · Score: 1

    Use triple quotes to temporarily comment out code.

  48. Re:Almost by narcc · · Score: 3, Insightful

    Would you rather I complain about the compatibility problems between minor versions? It's abysmal performance? Or do I need to expound on the original point and poke fun at how anonymous functions are crippled because of the absurd whitespace rules, point out how they often hurt readability, explain how they lead to bugs that are literally invisible, or about how they make refactoring code difficult?

    The whitespace rules are reason enough to avoid learning it, just as it's serious compatibility issues are reason enough to avoid using it in any professional context. Why bother with further explanation? It's far more economical to move on to any one of countless alternatives far more suitable for any given application.

  49. Re:Almost by xvan · · Score: 1

    Esc
    Ctrl + v
    Down Arrow (Repeat N times)
    Shift + I
    Shift + 3 <- Depends on keyboard Layout
    Esc
    (wait 2 seconds)

  50. Re:Almost by ultranova · · Score: 1

    Admittedly, Slashdot has been "going down the tubes" almost since it launched, but this is particularly crap.

    13,000,000,000 BC. Spacetime comes to existence and expands rapidly, setting into motion the chain of events that'll eventually lead to the formation of Earth, rise of life and the existence of Slashdot, thus ruining it forever.

    --

    Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

  51. Re:Almost by ArmoredDragon · · Score: 2, Insightful

    I actually think that's kind of genius. It makes everybody's code more legible. I'm not that much of a programmer, mostly dealing with interpreted scripting languages like TCL, Bash, and Powershell, and I can't tell you how many times I've hated reading somebody else's script because they didn't indent for shit, and they put their curly braces in such weird places that it was hard to tell what was encapsulated inside of what. And then they somehow expect somebody else to be able to debug it later.

  52. Re:Almost by Anonymous Coward · · Score: 1

    Netcraft confirms it: Slashdot is dead.

  53. That depends by Joolz50 · · Score: 1

    Define useful

  54. Re:Almost by Zontar+The+Mindless · · Score: 1

    I've been reading Slashdot since it was published on stone tablets, and... OK, it sucked then, too.

    --
    Il n'y a pas de Planet B.
  55. Re: Almost by warren.marco7781 · · Score: 1

    I believe that quality is called cognitive dissonance. Just because you don't understand the nature of something doesn't mean you should a knee jerk reaction to it.

  56. Re: Almost by warren.marco7781 · · Score: 1

    *should have had* - sorry. Also, I am not completely sure if "knee jerk" should be hyphenated.

  57. Re:...useful for a pub quiz? by goose-incarnated · · Score: 1

    We are the knights who say...

    "PING!"

    :-)

    --
    I'm a minority race. Save your vitriol for white people.
  58. Re:...useful for a pub quiz? by fyngyrz · · Score: 1

    Knights. Huh. Not for me. I'm just a

    shrubber

    --
    I've fallen off your lawn, and I can't get up.
  59. Wrong Question by 3LP · · Score: 1

    I would turn the question around. Lots of people end up in programming environments, but not all of them are temperamentally suited to be a software engineer. So, say you are interviewing someone and they have 'Python experience'. Ask how long they have been exposed to Python. One day? Then they ought to be able to talk for 10 minutes about the syntax. Six months? They ought to be familiar with the core modules. Someone of any level of experience ought to be interested in the development of the language they are using. People can be exposed to a language for a long time without absorbing the lessons it has to teach.

  60. Re:Almost by MadKeithV · · Score: 1

    I have written significant Python code used and maintained in a cross-platform environment by multiple people. I was absolutely fine with the whitespace requirement until that point, but tabs and spaces became mixed and line endings became confused and perfectly valid-looking Python suddenly stopped working correctly.

    Now, those are all solvable problems, and we did actually solve them in various ways, but Python's the only language where the usually invisible difference between tabs and spaces can actually make your code do different things. Python requires a non-Python safety net to get you to write predictable code in a heterogeneous text editing environment. That's not a good thing, even if it can be mitigated.

  61. Re:None by umghhh · · Score: 1

    That is odd. Over 20y in development and QA and I have not seen a language that has not been abused by morons to the point one had to agree with you. Sometimes there is a significant amount of skill required to show that one cannot code (C++ is known for that). Sometimes it is easy - java is like that.
    At the same time I have seen amazingly well written code in all of the languages I have worked with.
    Even this annoying indentation can be argued to be a good thing especially because there is whole bunch of idiots out there that think that putting a code into readable structures is evil and against nature.

  62. None by Skapare · · Score: 1

    None ... still compatible with Python3.

    --
    now we need to go OSS in diesel cars
  63. It suggests there is no such thing... by Sqreater · · Score: 1

    ...as knowing a language, just knowing a particular task of programming. You can be very knowledgeable and experienced in a language and still not be qualified for the job. And it is all an indication of the coming complexity collapse, not just in software, but in all things.

    --
    E Proelio Veritas.
  64. Re:Almost by locofungus · · Score: 1

    Have you actually written code in Python and found the whitespace handling to be an issue?

    I only use python out of necessity, never out of choice, so I'm probably not a representative voice but:

    You cannot comment out an if statement so that the code that was conditional is always executed while debugging. You are forced to either comment out the if and re-indent the conditional code or add brackets and or true. Both lead to higher potential risks when undoing the change later.

    Python requires indenting but does not require a consistent level or style of indenting. Every time you start a new indent it can be indented a different number of spaces and/or tabs provided only that it's more than the previous line. It is, however, EXTREMELY dangerous to try to reindent such files because the only requirement is that the indent matches a "valid" line above the current line. If there is a mixture of tabs and spaces in the file then this doesn't have to be the line that it visually matches up with.

    Automatically reindenting a C++ program is likely to uncover places where the indenting was misleading. It will never[1] lead to a non compiling program being able to compile or a change in semantics. Automatically reindenting a python program is, at best, going to leave the code unchanged. It can render a non-syntatically correct program valid or change the meaning of a program.

    [1] there are some obscure corner cases with line continuation characters that are sensitive to there being no or some whitespace at the start of the continuation line.

    --
    God said, "div D = rho, div B = 0, curl E = -@B/@t, curl H = J + @D/@t," and there was light.
  65. Re:Almost by Dr_Barnowl · · Score: 1

    Indeed. It's been shown by tracking eye movements, that while beginners laboriously pore over code to determine what it does, the eyes of the experienced coder mostly flick over the indent structure of the code, and only dip into the lines when they need to refer to detail.

    This is why experienced coders feel so strongly about consistent indenting - not because they are all neat-freaks, but because it directly impacts their ability to comprehend the code. Bad indenting is like scratching the needle on a beautiful piece of music, or shouting random words, or *shudder* listening to sales people describe requirements.

    Python forces you to indent consistently. If only Guido / PEP-8 hadn't chosen the wrong indent sequence as the preferred standard (4 spaces instead of a tab) ;-)

  66. Re: Almost by KGIII · · Score: 1

    Real programming is done in actual binary with a small magnet to manual flip the bits into ones and zeros on the disk itself. If you do not or can not do that then you should be restricted to the markup languages.

    --
    "So long and thanks for all the fish."
  67. Re: Almost by KGIII · · Score: 1

    It should have been hyphenated. However, we would have just joked about how you put the hyphen in the wrong spot and that it should be in between jerk and reaction.

    --
    "So long and thanks for all the fish."
  68. Re:Almost by KGIII · · Score: 1

    How many of those are a programming language (or scripting language or non-compiled language if you prefer)?

    --
    "So long and thanks for all the fish."
  69. Re:Almost by brantondaveperson · · Score: 1

    Of course indenting is important. But it should have remained an orthogonal issue to the choice of block delimiters. By not using curly braces, unlike everything else (ok, matlab is different, and lua is different etc etc... but curly braces are the majority), I have additional unnecessary cognitive load when running around the C->Python->Javascript->Go racetrack like I do at work.

    I hate cognitive load. It makes me irritable.

    If I only wrote code in python, or like a prior poster, had only experience of badly written shell scripts, I might not mind so much. But as it is, it drives me up the wall.

    And since I'm on slashdot moaning about weird language choices, what's with Go's 'Capital letters means public' thing. Grrrrr.

  70. Re:Almost by Your.Master · · Score: 1

    Yes, I would rather you complain about those. They sound legitimate.

    If I were making a language, I would strongly consider making whitespace work the way Python does (to enforce readable indenting standards), with the addition that mixing tabs and spaces is a syntax error, so you don't get those literally invisible bugs. I might even consider having both curly braces and meaningful whitespace: the level of indentation would act as a checksum on the correct number of open curly braces.

    This is because bad indenting (aka bad use of whitespace) is also a common source of hard-to-find bugs. The famous "goto fail" bug is an example of a bug that is fairly common, and is actually resolved by meaningful whitespace. I imagine it was probably introduced from a merge conflict resolution, and then overlooked because it doesn't jump out at you unless you're looking for it. And also because the indentation in that file is a mess that only looks right if you set tabs to equal exactly four spaces, eliminating the one legitimate minor advantage of tabs over spaces. I mean, look at this: http://opensource.apple.com/so...

    I'd also genuinely like to learn more about how anonymous functions are crippled by whitespace.

  71. Re:Almost by brantondaveperson · · Score: 1

    Now that is hilarious.

    I'm happy to have entertained you.

    Of course I normally use a syntax-aware editor, but the fact is that you don't always have one to hand, and it seems that Python goes out of its way to make this a problem for you. If this makes me an idiot, then so be it.

  72. Re:Almost by Marginal+Coward · · Score: 1

    Please complain about as many things as possible. In my experience, people universally enjoy hearing complaints. :-)

    But seriously, I literally have not had any of the problems you complain about. I don't remember the whitespace thing (which I happen to like) to have ever caused me a problem. If anything, it prevented problems compared to the common alternative.

    Regarding compatibility among minor versions, Python has always been famously committed to a very high level of compatibility between minor versions, which I have always used interchangeably. (Think about it: you don't get and retain the status of being one of just a very few primary scripting languages without that.)

    That said, you're right, though about "it's" [sic] slowness. So, what part of "scripting language" don't you understand...? Specifically, it really isn't possible to gain the advantages of dynamic typing without losing the advantage of speed. That's why those of us who use Python for part of our work use a compiled language for the other part of our work. (I use both C and C++ regularly.) You might as well complain that a screwdriver doesn't pound in nails very well. True enough, but a hammer really isn't that useful for turning screws, either...

  73. Re:Almost by ArmoredDragon · · Score: 1

    what's with Go's 'Capital letters means public' thing. Grrrrr.

    So you don't have to type the word public and can just Go straight to coding the function.

  74. Re:Almost by narcc · · Score: 1

    I'd also genuinely like to learn more about how anonymous functions are crippled by whitespace.

    I'll let Guido answer that.

    Of course, he sees nothing wrong with the absurd constraints imposed on lambdas by his ridiculous white space rules:

    In my mind, the inability of lambda to contain a print statement or a while-loop etc. is only a minor flaw;

  75. Re:Almost by narcc · · Score: 1

    So, what part of "scripting language" don't you understand...?

    Nothing, or everything, depending on who you ask. There's no real definition. Today, anything with dynamic typing gets called a "scripting language". Years ago, it just meant any language used in some host environment (a word processor, web browser, game, etc.) In a few years, I'm sure it'll be something different. Some people already use it as a pejorative for languages they don't personally like.

    , Python has always been famously committed to a very high level of compatibility between minor versions,

    A google search will confirm a host of issues with compatibility between 2.3, 2.4, 2.5, and 2.6. That last one is interesting, as it was hailed as a version that was capable of running "most" python 2 code.

    You'll also find popular projects that require a specific version of python as newer versions are incompatible. It's not uncommon to find multiple versions of python on a single system to address this. I can pass along specific examples if you'd like.

    It's more than 20 years old at this point. You'd think that we'd see some stability.

  76. Re:Almost by Zero__Kelvin · · Score: 1

    "Of course I normally use a syntax-aware editor, but the fact is that you don't always have one to hand,"

    It is impossible for me to take you seriously after a comment like that. If you can't figure out a way to guarantee that you have the editor of your choice at your disposal you are hopeless. Seriously.

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  77. Re:Almost by brantondaveperson · · Score: 1

    Look - I know this is the internet and everything - and being intolerably rude is apparently the norm. But you should really consider the way in which you speak to people about whom you know nothing but a few sentences written in an online form.

    Seriously.

    It's great that you have control over every computer that you ever do work on - including installing whatever your editor-of-choice is - but not everyone has that luxury. The fact remains that Python's choice of whitespace instead of delimiting characters causes a problem for me. That this fact makes it impossible for you to take me seriously is ok - you just don't need to be a dick about it.

  78. It's not like it was Forth by Mister+Null · · Score: 1

    It's not like it was Forth or something else that takes a mindset change.

  79. Nope by gladius17 · · Score: 1

    Give it up, chump.

  80. Error by gladius17 · · Score: 1

    Unable to import symbol hotchick: insufficient funds

    Unable to import symbol hotchick: private member violation

    Unable to import symbol hotchick: class boundary exceeded

    Unable to import symbol hotchick: out of memory

    Unable to import symbol hotchick: no operating system

    Unable to import symbol hotchick: indentation error

    Unable to import symbol hotchick: general failure

    Unable to spawn child process: failure