12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 17y ago · link · parent
So far, the only thing that seems to make a dent is a system that allows virtualization of Windows. If you want to help rid the world of Windows, then you need to start there: build perfect compatibility in a sandbox, while making something obviously superior that runs outside the sandbox.
comment 17y ago · link · parent
For instance, you tell the vendor that your entire site upgrade is contingent on having access to betas, previews, or some limited number of licenses for X number of months so that you may port and test your internal applications. This is hardly an uncommon problem when upgrading, and it's a good bet for a software vendor to allow small samples for a short period in order to enable larger purchases.
It also doesn't hurt to remind vendors of what you could be doing instead of putting up with them. Tell Microsoft you'll virtualize all of Windows on Mac OS X. Tell them you've been impressed lately by OpenOffice 3. It doesn't even matter if you have a real intention to switch, they just have to believe that you will.
comment 17y ago · link · parent
For instance, of course there's a way to do better than Exchange and Outlook, of course there's a way to improve Office, of course Windows has major flaws. But just try selling the business model of "unseat Microsoft" in any number of areas.
One possible way forward is virtualization. Until recently, it was impractical to run established applications without committing the hardware to one legacy OS, which brought everything else down to the same level of ancient technology. If it is finally feasible to demote Windows to, er, a window, I.T. would finally be free to explore something new in a way that would not break any of their core investment in software.
comment 17y ago · link · parent
It seems "only human" for people to cut back and save when the economy is bad, but unfortunately that is also the wrong thing to do in order for the economy to recover, and the wrong way to reboot a business. Now is exactly the time for companies to be investing in their futures, and I.T. is one of those major spending areas. With smart spending today, they could be extremely well positioned in a year or two.
A related problem is that I've yet to witness an I.T. group that operates incrementally, or in a parallel testing fashion; it seems that everything has to become a snowball in order to happen at all.
There are ways to make upgrades perfectly safe, and achievable over a longer period of time when resources are scarce. For example, machines could be upgraded a few at a time in isolation (ideally with a production-like parallel test environment), starting with the more experienced users. And, the culture could evolve to commit to incremental improvements in business applications on a regular basis, so that change is expected instead of being some rare event that scares everyone and threatens to tear the company apart at the seams.
comment 17y ago · link · parent
A 5-word sentence with words that nobody knows, communicates nothing (or at least wastes time, as the dictionary is consulted).
The programming equivalent of this is to have a very good reason (and compactness isn't one) for using an advanced language feature. If nobody knows what the hell it does, and it isn't doing anything all that complicated, then you've wasted everyone's time.
This is an interesting statement:
"Code is not written to be read by Everyman: it needs an audience, and will be better off for having one in mind."
Well, yes it is written for the everyman. Organizations will have more average programmers than good ones, and if you care at all about maintainability, you will choose the path that is clearest (even if you are an expert).
Even if you can prove that a fancy solution is worthwhile -- and sometimes it may be, for speed/etc. -- you're still generally making debugging more difficult by hiding everything away, so it's a trade-off at best.
Take the article's for-loop example. The for_each() function is very hard to debug, because the only logical breakpoint is inside the code that iterates. And as a reusable object, that code could be run in 1000 other places besides the point of interest; if you needed to insert a logging instance for just one case, you couldn't do it without affecting the 1000 other cases. With a regular for-loop, there's an easy place to insert code for debugging just that loop.
comment 17y ago · link · parent
comment 17y ago · link · parent
There are a few problems with that view.
One, the applications that matter to people are changing. For many people, programs like web browsers and iTunes are now opened frequently, whereas a decade ago those apps either didn't exist or weren't nearly as relevant. So who is to say that 2 decades of Windows software adds up to much these days?
Then there's the fact that many desktop apps were not written to coexist, so a legacy on Windows means something much different than on, say, Unix. Unlike Unix, where very old programs are still part of the ecosystem of utilities, Windows apps are just too random and fleeting.
Then there's the fact that desktop programs have grown and grown, and most users don't seem to adopt even a fraction of the features. What took two decades to develop will not take two decades to "replace", because only a fraction of the features will really be required for most people to make the jump.
And most of those huge apps should have been stopped at version 2.0. After awhile, big version numbers are meaningless; even for Apple, what on Earth makes the latest iTunes worthy of a version 8? They're still over-hyping the software, but not much is being added, so these old apps are not really as sophisticated as they appear to be.
comment 17y ago · link · parent
Part of this is the hardware (MacBooks, etc. are very powerful). Syncing and staying mobile are very easy with Macs. It's becoming more typical to get useful work done in airports, coffee shops, back porches, etc. over wireless.
If a shift to web applications continues, the majority of them will surely be developed on Macs. If you're using Ruby, Python, Apache, etc. anyway, it's sure nice to have them all pre-installed. On Windows, not only do you not have any of this, you don't even have SSH or a decent terminal, or equivalents to the core Unix utilities. (Oh wait, you don't even have a real text editor!) There's always a few hours of work to download enough to make Windows usable. Not to mention doing it all again 6 months later, when the machine is hosed and you reinstall.
I don't use Windows over VM, but I know many do, and it would seem perfect for web development. From anywhere, you can basically run the vast majority of likely browsers and test changes immediately. That is a killer feature.
I prefer it for desktop application development too. While the environment can sometimes be "weird", there are good reasons for most differences. For example, I'm used to passing the same options to GCC on Solaris and Linux; although Mac OS X does its own thing, it's hard to argue with the fact that -F is simpler and loses no real information over -L + -I.
Apple also includes some amazing code analysis tools in Instruments. You could spend a lot of money just acquiring those tools on other platforms, even if the Mac had no other advantages at all.
comment 17y ago · link · parent
I suspect she was just too used to the old way (for better or for worse), but that's still valid. Maybe the ribbon isn't bad, but Microsoft should have introduced it more gradually, e.g. alongside a familiar menu bar instead of replacing the menu bar completely.
comment 17y ago · link · parent
But what would discourage such shallow thinking, is a media that sets a good example. If newscasters' generalizations are closer to the best interests of voters (e.g. "popularity among people in <profession>"), it may have a positive effect on attitudes in society.
comment 17y ago · link · parent
The disadvantage is that the bloggers might not actually see what's said here; but I've found that a surprising number of them do. (And "threads" at the top of the page shows any replies to your comments here.)
Some blogs accumulate inflammatory or vacuous comments, which is another reason it can be nice to focus only on the discussions at HN. :)
comment 17y ago · link · parent
The Windows branding one is kind of funny; this isn't new for Microsoft, they've just decided to replace "Microsoft" with "Windows". I remember being amazed at the stupidity, I think almost every version of Windows since 1.0 has used the name "Microsoft" 5 times on the splash screen alone ("Microsoft Windows 95" with "Microsoft Internet Explorer", "(c)1995 Microsoft Corporation", a stylized "Microsoft" logo in the corner, "Registered trademark of Microsoft", etc.). Someone in that organization is basically nuts. :)
comment 17y ago · link · parent
comment 17y ago · link · parent
For example, during the election I saw CNN blabbing about each candidate's popularity among white women voters or black voters or this or that, and I just turned it off. The whole problem is that people treat these as relevant and appropriate categories. The statistics should be completely uninteresting, in a color-blind world.
comment 17y ago · link · parent
What are some examples of unique/better/amazing things that .NET does? And what could make it worth requiring Windows to use?
If it's just yet-another-way-to-do-X, and Windows-only "for no good reason" (and Mono doesn't count), then you have your answer. Money is tight, especially in a startup; if I am to invest in Windows, it had better be to enable some outstanding technology that will genuinely give me a leg up on the competition.
comment 17y ago · link · parent
And ultimately, consistency is most important. Your "style" only matters when you're starting your own project; I really hate it when people let their personal disagreements chop up a source file.
comment 17y ago · link · parent
As for scroll stoppers...it is very clear to me that the page's main content has ended when I reach even the "first" footer. It hardly seems like a principle violation.
"Usability Training" might be a subtlety in the footer, but it is also one of the major headings (which are obviously buttons).
And while I'd agree that browser widths shouldn't be assumed, their advice in #29 is with respect to reading, and there is definitely research to suggest that there is a maximum useful width for a column of text, ~60-70 characters. [See for instance, "Readability of Print" (H. Spencer, 1968).]
comment 17y ago · link · parent
But I'm assuming you've simply had better experiences with Windows than me. Let me tell you what my experiences have been...
If smaller IT staffs can benefit from Windows features, then IT staffs can be almost eliminated by Unix features. On my campus over a decade ago, it took one man to administer the entire network of Unix machines.
"The company" doesn't tend to make the decision so much as "the I.T. group", which is trusted by executives that really don't know any better. Since I.T. won't risk its livelihood on relative unknowns, nothing significant ever really changes. Why would they deploy something that takes one man to run, when they can have Windows?
In most organizations, there are plenty of users who don't know any better. And there are users who hate Windows, but they've long given up the fight because if they complained all day long, they'd never get any real work done. And for this same reason, they're not about to look for another job: Windows is too prevalent.
Sometimes, employees are extremely productive. These are the ones knowledgeable and efficient enough to deploy their own solutions in spite of I.T. offerings. They're the ones loading up Windows with a pile of open-source packages to make up for its pitiful tool set. Or, networking together a bunch of Linux laptops because they know nothing else will do the job. Despite the fact that their company has failed them with a poor status quo, these employees are more committed than anyone to do really good work.
But even those people have limits; they eventually leave and form startups (that are free of Windows). Having failed its true talent, the company is left with the people who don't know or don't care how to be productive anymore. Mission accomplished?
comment 17y ago · link · parent
I was referring to the binary interface. What I'd want to do (and generally can with C) is compile a library with any compiler, and link it with any other code, with no recompiling.
You see this all the time with Unix, say; maybe Sun compiles a bunch of stuff with their C compiler, but you can easily link to what's in /usr/lib using GCC. But with C++, it's typical for the loader to not link C++ libraries that were built differently; and if you're really unlucky, the loader won't notice and instead you'll see subtle binary errors at runtime.
comment 17y ago · link · parent
There are of course a few things wrong with this design.
One is that even deeply nested exceptions count; so if you've vetted your code and listed every exception that you throw, you're still screwed if you call a function that eventually throws something else.
This of course leads to the next problem: code evolves. Suppose you did somehow review all possible code that your function will touch, and wrote an accurate throw-list. Then next week, Jim goes into one of those buried routines and makes it throw something new; boom, you are once again at risk of terminating.
Yet another problem: suppose the messed-up throw list is in a library. Not only does this mean a library is responsible for exiting your program at a completely inappropriate point, but it might be a library that you can't easily change. So you're forced to declare implementation-specific exceptions that have no meaning to your callers. (Or just don't declare, as I do.)
The real issue of course is that terminating is a stupid behavior, even though they define terminate() to give you a point of interception. There are all kinds of reasons why you might accidentally mess up a throw-list, and since all you really gain for "fixing" this is a little code purity, it hardly seems worth dealing with severe runtime errors.
comment 17y ago · link · parent
To put up with the pain that is C++ mangling (which I sometimes do), I need to be using major features of C++. If you're only using C++ to make shorter, prettier code that could just as easily be C, you're creating an unnecessarily fragile binary.
Clearly C++ has its advantages, I'm just saying that you should require a lot of those features before accepting it as a language. This is especially true now that C has been absorbing some of the advantageous features of C++, such as inlining.
comment 17y ago · link · parent
For example, they might make mistakes, like changing only the code references and not the comments; or be mildly annoying by screwing up indentation.
I feel better being forced to visit every line, to see the whole scope of the change and realize just what it's doing to the code. Occasionally, this has made me realize that the refactor is not even the right thing to do. Also, it is one of the few chances I have to force myself to read code that I don't visit often; it can result in me writing down a few other things to go back and fix later (a mini-code-review, basically).
comment 17y ago · link · parent
One thing that works extremely well is to have a test environment. In other words, spend the time to replicate your entire production flow 100% (but in isolation), so that you can "deploy" changes and see if anything blows up. This not only catches stupid deployment bugs, but it also allows you to avoid some unit testing by simply relying on customers themselves: have them log into the isolated environment and do exactly what they would have done in production, and you'll know if it works.