Slashdot Mirror


User: Tassach

Tassach's activity in the archive.

Stories
0
Comments
2,400
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2,400

  1. C is a perfect language to cut teeth on if the goal is to become the best programmer one can be.

    Then explain to me why the best engineering schools on the planet (MIT, Stanford, CalTech) now use Python as their instruction language. Prior to that they used Lisp. At no point did they ever use C.

  2. Nonsense. C is a general purpose language and you can do everything in it.

    Just because you *can* do something doesn't mean you *should* do it. A good engineer uses the best tool for the job, period. If you worked for me and spent hours writing a C program that could have been done in minutes in a dynamic language, you'd get a reprimand (at the very least).

    Providing you have the time to design, code and test everything properly in C it will give you the most efficient and reliable programmes.

    2 problems with that statement:

    1 - in the real world, there's never enough time to design, code and test everything properly. I've been programming professionally for 23 years, and I can count the number of times I've had enough time to do something on one hand.

    2 - Efficient, yes. Reliable, not necessarily. Even highly experienced C programmers write code with buffer overruns, memory leaks, etc. Those kinds of bugs are basically impossible to create in a memory-managed language. Using libPCRE in C it takes a dozen lines of code (if not more) to duplicate what you can do in a single line of Perl. How much additional code would you have to write in a C program to duplicate the behavior of turning on Taint mode in Perl?

    The reason you don't use C is that other languages are easier and faster to program for a lot of things.

    Exactly. When you are writing code for a living, time is money. The tool that lets you do the most work with the least effort maximizes your RoI. Time to market is a competitive advantage. Programmer efficiency is almost always more important than execution efficiency.

  3. Re:Perl rocks! on Ask Slashdot: Best Book For 11-Year-Old Who Wants To Teach Himself To Program? · · Score: 1

    On a decent Linux distro, virtually all of the Perl modules you need are installable through the package system.

    That said, I'd rather wrestle with CPAN than JVM classpath issues.

  4. Re:Python on Ask Slashdot: Best Book For 11-Year-Old Who Wants To Teach Himself To Program? · · Score: 5, Insightful

    Also being a 'seasoned' developer I'm wondering why not a 'real' language like C as opposed to scripting languages.

    Dynamic (scripting) languages are no less "real" than compiled languages. Both have their place, their strengths, and their weaknesses, which is something a "seasoned developer" should know.

    An instruction language should just get out of your way and let you concentrate on doing stuff and understanding the CONCEPTS, instead of concentrating on making the compiler/interpreter understand you or doing routine housekeeping (eg: memory management). This is true for real-world development, but is especially relevant when teaching someone how to program. For this reason, Python is an excellent choice as a first language -- even MIT uses Python as a teaching language. (I can't think of a better endorsement than that)

    The advantage that Python has over other dynamic languages (Perl, Ruby) is that it is designed for readability and clarity. Even as a die-hard Perl programmer, even I can admit that Python is an easier language to learn and explain, and is probably the first language I'll teach my children. Whether it's (IMHO) dumbed-down syntax is an advantage or a disadvantage for doing serious work is a subject of debate (if not holy wars).

    C is a wonderful language for a specific class of problem, but it has lots of problems that make it suboptimal (if not completely unsuitable) for other tasks. Knowing *when* to use C (and, more importantly, when *not* to use it) is as important as knowing *how* to use it, if not more so. It is not a good teaching language for a beginning programmer, any more than it is a good language for general application development. Someone who doesn't understand this has no business calling themselves a "seasoned developer".

  5. Re:Ron Paul on Santorum Suspends Presidential Campaign · · Score: 1

    beyond that he believes that the states should have the right to decide things for themselves.

    The States Rights argument was killed on April 9th, 1865, and it's tombstone was erected on July 9th, 1868.

  6. Re:No on ICANN's Brand-Named Internet Suffix Application Deadline Looms · · Score: 4, Interesting

    I see a need for .xxx

    If the objective is to keep kids from seeing Pr0n, the better approach is a .kids TLD. This way you can have contractual requirements (and penalties) that the content there must be kid-safe. Of course that opens the debate as to what is "kid safe"... I don't want my kids exposed to evangelical Christian propaganda anymore than the religious retards want their kids to find out about birth control and evolution.

    It's never going to be safe to let your kids out on the wild, wooly .com internet without supervision. It's a pipe dream by lazy parents, a textbook example of the low-effort thinking that promotes conservatism.

  7. Re:Ron Paul on Santorum Suspends Presidential Campaign · · Score: 5, Insightful

    Ron Paul's strength is that he accurately identifies a lot of problems.

    Ron Paul's weakness is that his "solutions" to those problems are dangerously naive, based on long-discredited theories, or are just downright crazy (or all of the above).

    Any enthusiasm about RP has to be tempered with the realization that even a broken clock tells the right time twice a day.

  8. Goodbye and good riddance on Santorum Suspends Presidential Campaign · · Score: 0

    Don't let the door hit you in the ass on the way out, Frothy.

    Now all we need is a promise from Romney that you won't hold any position of authority in his administration if he's elected. You're unfit to hold any public office.

  9. Re:Filtering != Stopping on Good News: A Sustained Drop In Spam Levels · · Score: 1

    Spam has two levels of cost - the victimization of the people who receive the spam, and the bandwidth and processing costs borne by ISPs and network operators. I know from firsthand experience working at a large ISP that anti-spam alone was a multi-million dollar cost center and accounted for around 85% of our bandwidth costs.

    Based on what I've seen, improving filter efficiency at the backbone/ISP level has the paradoxical effect of increasing spam traffic - if enough of their messages aren't getting through, the spammers will just keep throwing more spam at you until enough leaks through for them to get a sucker. If you improve your filter efficiency by an order of magnitude, they'll just throw an order of magnitude more spam at you, and since they are typically using stolen resources to do their spamming, it's not costing them much (if any) more to do so. The cost remains near-zero and even a single successful scam can potentially net hundreds if not thousands of dollars.

    The core problem is that SMTP is fundamentally broken with regards to spam (among many other problems). It's a problem the authors just didn't (and probably couldn't) envision. The problem won't go away as long as sending millions of emails is effectively free (in terms of time, computation, and money)

    The rate at which a bot or rogue server can send email is entirely network-bound. Email has to be redesigned from the top down so that it is inherently rate-limited by some irreducible factor. Increasing the computational cost to send email using a memory-bound function seems to be the best way to do this (the rationale being that memory bandwidth has historically only increased at a fraction of CPU speed).

    The tl;dr version is that crime pays... and unfortunately that will never change. What can do is change is the economics of sending email by increasing the computational cost by several orders of magnitude. This may not solve the problem of individuals getting scammed, but it will dramatically reduce network congestion and infrastructure costs.

  10. Re:Isn't that just nitpicking??? on Spaceman-Turned-Politician Can Call Himself 'Astronaut' On Ballot · · Score: 2

    This is in no way a predetermined part of politics.

    Politics is about getting and retaining power. Anything that helps achieve this goal is by definition part of politics. Attacking your opponent is definitely a core element of the political process.

    Sure, we can think about a utopian fantasy world where all politicians act for the public good, base policy on factual information and rational thought, eschew fallacious reasoning, Unfortunately, we live in the real world where fallacious arguments, propaganda, and outright lies are an indelible part of politics because they are highly effective tools for persuading/controlling people.

  11. Re:You're looking in the wrong place on TSA Shuts Down Airport, Detains 11 After "Science Project" Found · · Score: 1

    On a typical day TSA finds 4 guns and various assorted weapons that would have made it onto a plane if people weren't being screened.

    Which are almost entirely law-abiding citizens who forgot to put their legally-owned and -carried knife/gun/screwdriver/whatever in their checked baggage.

    Not to mention the fact that the TSA's failure rate is 70%. So if 4 weapons are getting found daily, they're missing at least 9 or 10 a day. That's 3,650 weapons on airplanes a year, with ZERO incidents resulting therefrom.

  12. Re:When it comes to security on TSA Shuts Down Airport, Detains 11 After "Science Project" Found · · Score: 1

    there are actually very few people with the knowledge, motivation and lack of morals to want to hurt innocent people to make a point.

    This is America. The knowledgeable and motivated sociopaths are too busy making MONEY to bother about making a POINT.

  13. Re:Filtering != Stopping on Good News: A Sustained Drop In Spam Levels · · Score: 2

    If no one receives your spam because their filters are effective, there will be no profitability left

    No filter is 100% effective. It costs effectively nothing to spam a 10 million addresses, but for sake of argument say it costs $100. If 1% of those get through the defenses, and 1% of the non-filtered recipients falls for your scam, you've got your hooks into 1,000 suckers. Even if you only take each sucker for $1 your ROI is 1000%.

  14. VM to the rescue on Ask Slashdot: Recommendations For Linux Telecommuting Tools? · · Score: 1

    Either windows in a VM running on Linux or vice-versa. For real work (coding) you have Linux; for everything else you use Windows. It works especially well if you have a multi-monitor setup.

  15. Re:$60 is ridiculous on Dysfunctional Console Industry Struggles For New Profit Centers · · Score: 1

    Actually, I was mistaken. SMB3 was $50 when it was released, which would be over $100 today.

    And the median salary in the US has gone up over 30% over the past 20 years.

    So, by your own numbers, median salary has gone up by 30%, but prices have more than doubled, and you can't see the problem? Are you really that math-impaired?

  16. Re:If they kill the used game market, on Dysfunctional Console Industry Struggles For New Profit Centers · · Score: 1

    People will bleed only as much money as they have and it's human nature to get good value for that money.

    Bullshit. The entire fashion industry exists solely because people will buy status symbols at insanely inflated prices. People will line up around the block to spend money they don't have (borrowed at usurious rates) so they can latest greatest status symbol.

  17. Re:Slashvertisment on Viewfinity CEO Says Many Computer Users Are Overprivileged (Video) · · Score: 1

    It's trivial to jailbreak an iOS device or Playstation. It's even more trivial to root an Android device.

    If you make it, someone will figure out how to root/jailbreak it and put the crack on the internet.

    The only reason there hasn't been a bigger backlash against locked platforms is that unlocked platforms are readily available to anyone who cares.

  18. Re:I'll Save You Some Time on Competition To Identify Sexual Predators In Chat Logs · · Score: 1

    There's a difference between being a sexual predator and just someone trying to get laid.

    It's pretty simple: If you're good-looking and/or rich, you're just trying to get laid. If you're not, you're a sexual predator.

    Don't even pretend it's not true.

  19. Re:Obvious? on Competition To Identify Sexual Predators In Chat Logs · · Score: 1

    Criminal profiling has been debunked as a form of cold reading, specifically relying on the rainbow ruse and Barnum statements.

  20. Re:Obvious? on Competition To Identify Sexual Predators In Chat Logs · · Score: 2

    Some people are very, very good at reading people - can take one look at someone, see a relatively small number of factors but put them together into a framework that suggests lots of other probabilities about the person that turns out to be startlingly accurate. I could see them trying this to see if it's possible for algorithms to pull off this same kind of feat.

    It's called cold reading, and it's a parlor trick / con game / pseudoscience. The reason it appears to work is primarily due to confirmation bias - you want to believe, so you focus on the successes and ignore the misses, even when the latter far outnumber the former.

  21. Re:Now think in American. on Why Are Fantasy World Accents British? · · Score: 1

    The Black Speech is in a completely different linguistic group than the others, and has a preponderance of gutteral consonants.

    German or Arabic wouldn't be a bad substitute, Russian might work too; and any of those would work as the language of the enemy to an American movie-goer.

  22. Re:Now think in American. on Why Are Fantasy World Accents British? · · Score: 1

    Not necessarily... given her extraordinary talents and thousands of years of practice, her accent would be whatever she wanted it to be. We're talking about someone who defied the Valar (gods, basically), led a rebellion, and reigned for thousands of years as a beloved and respected monarch; as such one would assume she was an extremely gifted public speaker and politician, one of the best in Arda's history. Tolkien described her as "greatest of elven women" as well as "the mightiest and fairest of all the Elves that remained in Middle-earth".

  23. Re:Now think in American. on Why Are Fantasy World Accents British? · · Score: 1

    I don't know if a Non-Frankophone would be familiar enough with French accents to distinguish them that much... and there's a definite old-world / new-world split between the Galadhrim and the Imladhrim (to suppose a name for the people of Imladris); the Galadhrim would rightly have regarded the folk of Imladris as colonials.

    To extend the analogy, you could think of the Wood-elves of Mirkwood as being Cajuns... an even more remote and rural/unrefined offshoot of their culture. Playing Legolas as a Antebellum New Orleans aristocrat works (and would be pretty bad-ass). He's royalty... but the people of kingdom are, basically, a bunch of hillbillies (to judge from how they act in The Hobbit).

  24. Re:Now think in American. on Why Are Fantasy World Accents British? · · Score: 1

    No, Dwarvish (Khuzdul) would be Hebrew -- it was their secret language that they only spoke among themselves, pretty much how most American/European Jews use Hebrew.

    Everyday at home, as well as when speaking with "Gentiles" (Humans,Elves, and Hobbits) they'd speak the local dialect with an accent appropriate to their social class. Yiddish is a lower-class German dialect; the Brooklyn accent has some Yiddish influence due to the large number of Jews living there, but is still distinctively English, not Germanic. Brooklyn (and it's accent) would be a good model for Lake-Town and Erebor before Smaug - a dwarf trader in Lake-Town would be in the same position as a Jewish shopkeeper in New York. I can totally imagine Bard sounding like a Brooklyn cop.

  25. Re:Dwarves on Why Are Fantasy World Accents British? · · Score: 1

    And, to reply to myself, Pratchett takes the Dwarf = Jew analogy even further than Tolkien did. Diskworld Dwarfs are undeniably analogs for roundworld Jews.