12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 17y ago · link · parent
comment 17y ago · link · parent
I only have experience with the default "optparse", and not "argparse" or any others. While optparse seems like more than enough for what I use, I know of exotic command line bastardizations that optparse would never be able to handle without some tweaks.
2464.
T-Mobile considering acquisition of Sprint(appleinsider.com ↗)
3 points · by makecheck · 17y ago · 1 comment
comment 17y ago · link · parent
Everything I have personally seen of Cocoa and Objective-C suggests it is extremely productive, compared to anything else (much less alternatives that could be "considerably more" productive). But maybe I'm wrong.
comment 17y ago · link · parent
I can tolerate waiting; while frustrating, that's not the real issue. But it's hard to just live a normal life in limbo, with all the implicit threats. Your documents are tied to your job, so switching jobs will risk, at minimum, starting from scratch; and there is a chance of denial and deportation at every turn. You are also not immune to layoffs, so this can blow up in your face without warning, giving you a very short period of time to fix it. And in the end, even if you survive all the hoop jumps, there is still a chance you will be denied the documents that you've been waiting years to receive.
Compare this to somebody just wanting to do essentially the same work in their home country, where they probably can, minus all the bullshit. This is why the U.S. is in danger: because immigrants can only take so much, and at some point, they simply will move all their ideas and capital back home.
comment 17y ago · link · parent
I can certainly imagine, and have seen, some insane C++. But, there are things in C++ that even a kernel developer could love.
Probably the simplest example is constructors and destructors. They are a useful for writing clean setup/teardown blocks, and allow data structure initialization errors to be completely avoided. Sure, you could put horrible things into constructor code, and use 10 levels of multiple inheritance to create constructor hell; but if you don't do that, it's really not that magical.
comment 17y ago · link · parent
For instance, what is the difference, really, between using address book data that's entered entirely manually by the user, and data that may have been partially synchronized from somewhere on the web? As long as it ends up in the format the program expects, it can appear "smart". The program itself doesn't need a sync feature, as long as something can sync that understands its formats.
So the issue, to me, is that programs just need more open data formats, and there need to be more handy services (like sync programs) that deal with those formats.
comment 17y ago · link · parent
Continued kudos to the little guys (Opera, Mozilla, Apple) for actually doing something useful with the browser. And Microsoft, I'm tired of hearing the word "innovation" from you.
comment 17y ago · link · parent
The trick is to make sure everyone uses ODF, at which point I don't really care how they edit it (much like I don't care what text editor people use to change basic text files). If someone prefers Microsoft Office, they should still be able to use it.
comment 17y ago · link · parent
I do tend to think of your 4 Cs as all the same, though. In my experience, a team is either working together effectively or it isn't, and either achieves all of those "Cs" or none of them. I would even add that, often, a team lead must forego the "consensus" and simply make a decision. (This can even be true when dealing with customer requirements; occasionally, a software architect's design decision ultimately delivers a better thing than what the customer technically specified.)
comment 17y ago · link · parent
Not that I've ever worked at Microsoft or any massive "pure software" groups; I've basically worked in "get stuff done" smaller software groups. However, I suspect these small groups are far more common. When push comes to shove, code is the design documentation.
Beyond that, I've always had practical issues with UML's need to specify everything. How often is that valuable? Any given box-and-stick-diagram-with-labels is bound to be pretty clear, whether or not it does things the UML way. I would be annoyed if someone wasted extra time (and, likely, money) on a UML-aware tool, when it would have been faster and as useful to just sketch something.
I've also tended to rely on automatically-generated-and-therefore-always-correct diagrams (e.g. Doxygen, through GraphViz). This is especially true given that the majority of my documentation, even outside the code, leans toward plain text formats (e.g. man pages, simple text files, reStructuredText, or HTML). My reliance on those formats forces documents to be on the short side, which also helps avoid the risk of inconsistency with the code.
comment 17y ago · link · parent
But I'd add one other big problem for open source: "anti-marketing", in the form of aggregating trolls.
I don't have to Google far to find sites that apparently just crawl SourceForge and dig up whatever crap they can automatically generate ad-ridden pages for. A lot of direct harm to projects comes from trolls:
- They don't properly credit, and certainly don't link to, the page that they crawled (e.g. SourceForge). So users have no way of knowing that a more complete and authoritative source exists.
- They often don't "re-crawl", so within a matter of months they're advertising something extremely old.
- They usually don't have all the details quite right. So their pages seem "authentic", yet are wrong in critical places (such as, system requirements; I've seen things as stupid as non-Windows programs that "require Windows XP").
- Their robots are sloppy. For instance, I've seen them create a "what's new" page that completely misinterprets the original source release notes, resulting in a couple of nonsensical bullet points. This makes it seem like the software maintainer is retarded.
- They give no direct control to project owners. Not only is there no way to update a page, but even if there were, the site has no way of knowing that the person contacting them is the true maintainer of the software.
Whichever one of these trolls becomes king of Google will do the most damage.
comment 17y ago · link · parent
I am not saying that major events are not important. But some perspective is required.
Google could not properly recognize the world's disasters even if it was extremely vigilant. Unbelievably brutal things are happening all the time; 2009 alone has enough problems to keep Google home pages decorated, and flags at half mast, every single day. Barring that, you don't have to go too far into history to find more. Here are just two examples:
http://en.wikipedia.org/wiki/Rwandan_Genocide
http://en.wikipedia.org/wiki/List_of_accidents_and_disasters...
At what point do millions of people around the world feel snubbed when Google doesn't recognize their anniversaries?
I personally hope that most people spend at least some time trying to appreciate just what kind of world we live in. Don't feel frustrated because you weren't reminded of what you already knew; instead, be glad of the chance to learn about everything else that's happening. This sort of enlightenment is the first step toward a world with fewer of these atrocities.
comment 17y ago · link · parent
But many news sources are now only online. And it's extremely common for people to start with aggregators, to effectively read parts of many sites instead of being dedicated to one.
To me, you can't say "print is still king" without at least examining the trends in total subscribers over the past several years. Suppose a newspaper now has 1/10th the subscribers; if 3% of the remainder is online, that's hardly a victory for print.
comment 17y ago · link · parent
For one thing, only a subset of the Carbon API is important to iTunes. And if it became necessary to fix things (or even break compatibility), they could, because the 64-bit frameworks would be private.
And it's certainly possible to port to Cocoa incrementally. It is also possible to isolate Objective-C implementations behind pure C APIs, so that an abstraction doesn't have to know it's using Cocoa on Mac and something else on Windows.
comment 17y ago · link · parent
For one thing, not all developers have advance access to the OS (like me; I only find out if my code works when I buy the retail copy of the OS). Even if a developer does have advance copies, it is possible that a tiny change between the beta and GM will have unexpected consequences.
Fortunately in my case, I had to change nothing to support Snow Leopard (and I still support 10.3.9!). But not all apps will be so lucky.
comment 17y ago · link · parent
It is much, much faster to pipe commands to "xargs". For instance:
find . -name core -print0 | xargs -0 rm -f
Since "find" doesn't know when your command is multi-file, it has to run the command once per file; whereas, "xargs" can run it as few times as necessary. It works well for any command that accepts "a list of files".In the example above, the -print0/-0 are a safety net to null-delimit filenames so that it doesn't matter if any of the paths contains a space.
comment 17y ago · link · parent
Here would be a more interesting statistic: can you show a case where a business or university IT department spent several weeks evaluating a number of competing products in detail, and concluded (complete with spreadsheets) that Microsoft's solution was undoubtedly the cheapest and most robust long-term investment?
comment 17y ago · link · parent
There are lots of link spammers out there. Their goal is to make garbage sites seem more "important" to search engines by increasing the number of unique sites that link to them. WordPress is targeted because it is a popular enabler of web sites, that can essentially be used to make hundreds of unique sites do your bidding.
I have seen similar problems with any pervasive site technology. For instance, I've seen public wiki pages vandalized ("talk" pages with hundreds of lines of links to garbage sites, presumably to make Google find them more relevant). And I've seen problems with PHPBB forums (new "accounts" with profile links to "home pages" that are really just more spam for Google to find). These things don't happen because someone goes to one site, they happen because robots target the popular technologies and try to automatically find sites on the web that are exploitable.
You see this with closed-source pervasive technologies (like Windows). It's pretty clear that seeing source code is not necessary to repeatedly perform devastating hacks.
In all cases, the correct solution is vigilant and competent administration. Of course if you never change the defaults, you're more vulnerable. Of course if you don't patch your server regularly (these tools are constantly improved), you're open to old hacks. And ultimately, if you choose the popular tool, you can expect more frequent issues.
comment 17y ago · link · parent
Code reviews might be more applicable. But, like bug reports, the code being reviewed could be as much the fault of past developers as the person trying to make changes. There is also a tendency for peers to focus on minor issues like coding style, so make sure your reviews are covering real problems before you attach too much weight to the results.
Having said that, this is what I would do:
First, judge a programmer based only on the experience he claims to have. It's just not fair to dump a new programmer onto a team and expect brilliance; if his team is relatively brilliant, he will always appear incompetent. You should, however, expect improvements over time (such as, less time required to fix things, or more instances where he speaks up with new ideas).
Next, judge a programmer based on individual work. Every programmer should have some task, even a small task, that is only theirs, even if the majority of the work requires teams. This makes it easier to judge how the programmer tackles problems, how code looks, etc. This also avoids the pitfalls above, as there are no excuses. Also, some programmers work best alone; you should be seeing their best work, and if that is shoddy, you should get rid of them.
Only after considering the above, should you look at team work on large code bases.
comment 17y ago · link · parent
- People using the established system are more likely to try your add-ons for your unique features. (Whereas, replacing a system outright is unrealistic in a short timeframe.)
- You will have less work to do, as you can focus on the things you've "not seen in other systems", instead of having to do everything.
comment 17y ago · link · parent
And the set of downloads is irrelevant, because it shouldn't even be necessary. On Linux and Mac, most of what I need is already there; while I do download other packages from time to time, they're for good reasons (like getting a new version). The base Mac and Linux installations already have python and perl and a real shell and a real terminal and an SSH client and a good web browser, and the list goes on. The number of things Windows completely lacks out of the box is mind-boggling, given the size of Microsoft's budget. And remember, you have the privilege of downloading and installing it all again every 6 months when Windows' holes make your PC useless.
But it isn't even about the cost or quality for me. It doesn't take much of a history lesson to realize that the vast majority of Microsoft's wealth has come from questionable business practices; practices that resulted in "de facto standards" through which they gain even more undeserved business. At this point, they could have the best products imaginable (they sure don't), and they would still deserve no business.
The entire computing industry has been set back at least a decade due entirely to Microsoft (and a number of other IT-dependent industries have been harmed). Microsoft has destroyed entire companies through unfair means; Microsoft should receive no recognition whatsoever as a credible business, and should receive no new contracts. I know it's just wishful thinking now, but it's the absolute truth.
comment 17y ago · link · parent
For example, when using typical Unix terminals, I refuse to mouse copy/paste when logged in as root (whether or not the prompt is nearby), because it's too easy to make a mistake and the consequences are severe. Similarly, I refuse to rely on any cute shell tricks like "!" to pull history items when logged in as root. Sacrifice convenience to guarantee safety.
I also prefer to use my Mac terminal (MacTelnet), which will trap multi-line pastes and offer options to paste as-is, paste as one line, or cancel the operation. This has saved me more than once.