Slashdot Mirror


User: zigamorph

zigamorph's activity in the archive.

Stories
0
Comments
22
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 22

  1. cvs annotate on How Do You Prove Software Testing Saves Money? · · Score: 1

    Most version control systems have a function to keep track of who did what. Use it to find the idiot and educate it in the error of its ways. If repeated education fails, terminate the idiot or promote it to a non-coding position, depending on corporate culture.

  2. Re:Design from the beginning is important too. on How Do You Prove Software Testing Saves Money? · · Score: 1

    What is "initial design documentation"? I have heard of it but have never seen it in the wild.

  3. Re:Brilliant coders can be terrible writers on Does Typing Speed Really Matter For Programmers? · · Score: 1

    Within reason of course. It is hard for the code to be much simpler than the problem it solves or the algorithm it implements. Some code will require a bit of study to understand, no matter how cleanly you write it. Sometimes it makes sense to use a less optimal algorithm to simplify the code but sometimes you actually need the performance.

  4. Re:Gee, Microsoft didn't whip IBM because of this on Chrome OS Doesn't Trust Apps Or Users · · Score: 1

    So what you are saying is that IT departments would prefer not to exist?

  5. Re:Should have used PHP. on Twitter On Scala · · Score: 1

    the way gcc compiles the big delegator switch in MRI's core, with a large sparse stack that causes ridiculous memory consumption (and sometimes even leaks).

    Couldn't the code be written in a way that gcc can compile efficiently then? Seems like a simpler solution. For a large static switch a perfect hash might be an option.

  6. Re:awesome on Solving the Knight's Tour Puzzle In 60 Lines of Python · · Score: 1

    Oh yes, they have fixed them with new mistakes. For example: the next version vill use \ as a separator in module names allowing you to write great looking code like: $foo = new test\foo\bar()

  7. I don't get Hibernate et al. on Reuse Code Or Code It Yourself? · · Score: 1

    I prefer to code JDBC directly. Then I at least know what it is doing and can track down and resolve bottle-necks. Plus: there's less xml. For simple, low load applications it's probably ok but even then I find that it is better to get your hands dirty. You're going to need the experience when you tackle a not so simple application.

  8. Re:Trash on The Ruby Programming Language · · Score: 1

    I dunno, I find it pretty easy to discuss Ruby without Rails. Rails is certainly the framework that made Ruby really visible in the US (though I gather it was fairly popular in Japan even before Rails), but I think that as it is getting exposed, the size of the non-Rails Ruby community compared to the Rails segment is probably growing. Possibly because it's the Rails part of RoR that doesn't scale? Without rails it's a capable scripting language. Not as fast as python or perl perhaps but fast enough for a lot of applications. Rails OTOH, like a lot of web frameworks, falls into the framework trap. It makes simple things (getting some data from a DB) easier and difficult things (scaling) more difficult.
  9. Re:Syntactic whitespace on Guido and Bruce Eckel Discuss Python 3000 · · Score: 1

    I don't think this fits particularly well into Python's philosophy. {} are largely redundant, and whilst whitespace seems to cause you some issue, I've never had a problem with it. Lamdba's might benefit from this, but any multi-line lambda should be indented anyway, so you might as well use whitespace for that, too.

    Well I guess it comes down to what tools you usually use. Some coders that move a block of code will manually adjust it to the correct indentation depth, some coders will use the equivalent of M-x reindent-region. If you're the former you're probably happier with python where you wont have to worry about the {}-delimeters. It's not a big problem.

    Thanks for the tip about ternary-statements. The syntax will take some getting used to but it will come in handy sometimes.

  10. Re:Significant whitespace on Guido and Bruce Eckel Discuss Python 3000 · · Score: 1

    I've never understood the "whitespace" thing... don't you guys indent your code anyway?

    Yes, I indent my code. Mostly automatically by hitting tab in emacs or doing the equivalent of M-x reindent-region. This does not work in python as there's no explicit end-of-block marker for the editor to use as a cue. Thus, refactoring code is a pain and it's easy to accidentally break code.

    Oh, and doing a diff ignoring whitespace-changes is no longer a way to see what's really changed in the code and what's noise left by someone cleaning up the code-style.

    I still like and use python but the whitespace thing is no bonus.

  11. Re:Syntactic whitespace on Guido and Bruce Eckel Discuss Python 3000 · · Score: 4, Interesting

    Nope... I like python and use it every day. Losing the syntactic whitespace for a more traditional whitespace-neutral {}-block style would to me only feel as an improvement. Syntactic whitespace makes it harder to automatically reindent code, makes it easier to accidentally break the code structure and generally makes refactoring a pain. Furthermore I suspect the syntactic-whitespace to be the reason pythons lambda-statements are severely limited.

    If anyone is interested, my top candidates for improvement or python would be:
    * regular {} blocks instead of semantic whitespace
    * non-trivial lambda-statements
    * explicit scoping of variables like with the "var"-keyword in Javascript

    Nice to have but not essential would be:
    * ++ and its friends
    * ternary statements
    * switch statements, preferably supporting strings. I know that you can simulate this with a dict and a try-catch but honestly, why keep a feature out of the language for "simplicity" and then encourage people to use horribly unreadable workarounds?

  12. Java: "more than 1000" on The Future of C++ As Seen By Its Creator · · Score: 1
  13. Re:Amazing people out there on Hiring Programmers and The High Cost of Low Quality · · Score: 1

    and those with great experience who just want too much

    In other words, you're looking for great programmers but are only willing to pay for mediocre?

  14. Re:At the risk of being flamed... on Netcraft Says IIS Gaining on Apache · · Score: 1

    Most cars ARE full of compromises made to increase safety. Strip out seat-belts, indicator lights, air-bags and all structural reinforcements not needed for performance and you'll have a faster car that will kill you if you crash.

  15. Re:At the risk of being flamed... on Netcraft Says IIS Gaining on Apache · · Score: 2, Insightful

    IIS6+ deals with HTTP requests at a kernel level. That is core functionality such as responses, caching, etc are all dealt with at ring0. Performance is unbeatable. Oh and security? IIS6 has never been rooted, ever. Add-ons have been (asp.net for instance), but IIS6 has never been.

    Of course, when it is, the attacker will be in ring-0.

    In contrast: if my web-server is rooted, the attacker is in a limited SE-linux contexts locked down to only have access appropriate for a web-server. It can't even access remote ports (like smtp, ftp, irc, ...).

  16. Re:And why not? on Netcraft Says IIS Gaining on Apache · · Score: 1

    Well, most car accidents are caused by driver error but people still want cars that protect them better.

  17. Are you kidding? on Any "Pretty" Code Out There? · · Score: 1

    If you prefer ALGOL to C, then please code in ALGOL. #defining your own syntax absolutely kills readability and makes small stuff like bad indentation and erroneous comments pale in comparison.

  18. Re:I don't get it on Practical Ruby Gems · · Score: 1

    After all, you can always just deploy another copy of your app on another box, point it at your database (or database cluster, depending on your needs), and you're good to go.
    With a large site your database is probably the limiting factor; adding more frontends doesn't help. Instead you have to care deeply about what kind of SQL-queries are used, how you can optimize the structure of your database, what data you can cache/pre-fetch, etc... at that point you may come to regret that the whole database interface, or even the database structure itself, is automatically generated and difficult to fiddle with.
  19. Legal == permission from copyright holder? on Pirate Bay Launches Uncensored Image Hosting · · Score: 4, Interesting

    "As long as your pictures are legal they will be hosted here"

    To be perfectly legal you have to have permisson from copyright holders. If you have a quick look around the site it seems improbable that this is the case for most of the pictures.

  20. Sort of looks like a Samsung X820 on Do Patents Stop Companies From Creating 'Perfect' Products? · · Score: 1

    SGH-X820 Except of course that the "perfect" phone is 10mm thick and the samsung 6.9mm ;)

  21. I don't get it on Practical Ruby Gems · · Score: 1

    "Although it may take a bit more ingenuity, many feel that the substantial productivity boost is worth it."

    If it takes more ingenuity to get it to work/scale, just how are you getting any substantial productivity boost?

  22. Nothing about Caching? on Building Scalable Web Sites · · Score: 3, Insightful

    Without any caching the M in LAMP quickly becomes a bottleneck.