Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions

Submissions

comment 17y ago · link · parent

It definitely helps to start with an environment where tests are easy to write, so that you can focus on the principles of testing without having to learn a lot of mechanics.

Python's built-in "unittest" module is an example of that. While it's not perfect, you can quickly form good habits by using it.

And it is not limited to Python. For instance, I've written unittest-compatible classes that basically run other programs as test cases. Either way, you're forced to think about things like "how do I automatically detect that this failed?" and "is the purpose of this test clear?".

comment 17y ago · link · parent

Linux seems to be a kernel optimized for performance at almost any cost. This is a reasonable goal, it just means that my window manager at work (or any other interactive thing) comes to a crawl if I'm not careful with what I run.

This simply doesn't happen on Mac OS X, although a given application can still bring itself to its knees. And technically throughput per processor may be less optimal than Linux, but it's not obvious to me that this is a problem that needs solving. For one thing, firing off a bunch of compile runs with GCC on my Intel Mac is perfectly smooth, and I can still click on things; whereas, at work, I may have to go for coffee before I can click on my next E-mail message when doing a similar compile.

Apple's multi-core strategy is also among the clearest and most successful that I've seen to date. They may actually meet the challenges of interactive responsiveness and total throughput with one system design.

comment 17y ago · link · parent

Microsoft's revenue has increased consistently for its entire lifetime, until recently (Q1'09). [1] In other words, for 23 years, their revenue has gone up every quarter, and even though it "dropped" in Q1 it was still 13.65 billion dollars for a single quarter. About $3.4B of that is from their client division that sells Windows.

Windows isn't the only revenue that counts (e.g. people may not upgrade other software either, if they haven't upgraded Windows). And revenue isn't the only effect on long-term viability. They are no doubt spending a lot to maintain Windows right now. If they gave a free upgrade to Windows 7, they could pretend Vista doesn't exist and eliminate most of its support costs; simply tell all customers that Vista will not be supported because Windows 7 is free and is compatible.

[1] http://www.guardian.co.uk/business/2009/apr/23/microsoft-rev...

comment 17y ago · link · parent

What I find surprising is that investors react so strongly to a single case, just because it's high-profile.

Investors can never know everything about how a company works. Despite efforts to minimize risk, there are "hit by a truck" hazards all over the place. Arguably, losing a lowly engineer with critical knowledge can do more damage than changing the CEO, but companies aren't digging up and disclosing all of those cases.

It's also important to realize that many of Steve Jobs' contributions are already sufficient: radically changing management, refocusing product lines, pushing into new markets. Apple can survive on those decisions alone. You have to believe that Steve doesn't change managers unless he's appointing someone that he trusts to do the job. In the case of Apple, I suspect that constant leadership isn't as important as a few key decisions.

Only by working at a company for a few years, can you begin to understand how that company works. Investors claim a lot more insight than they could ever have, which probably explains the volatility of the stock market.

comment 17y ago · link · parent

Price is one issue, but what they really needed to reduce is the number of variations, to end the confusion.

I suppose any reduction is good, but $10 isn't much for something purchased every few years (or simply bundled on an expensive new machine), especially when it comes from a company that could easily afford to give the OS away for free.

comment 17y ago · link · parent

Use few words, and eighth-grade English. (Easier for anyone to understand, but also better for foreign colleagues.)

E-mail is a great place to start being clear and concise. This encourages people to read everything you say, without skimming. Plus, they can always mail you back if you left out anything important.

comment 17y ago · link · parent

If you put the "tabs" at the bottom of each story instead of the top, or even on the side, it would probably avoid the confusion.

comment 17y ago · link · parent

I generally like the layout.

I assume the tabs on a story are to represent duplicates? You might want to make them more subtle or not make them at the top. When a tabbed link is shown first on the page, it looks like the entire page is tabbed, and it also makes the site confusing (e.g. is the entire site about Dinosaur comics?).

comment 17y ago · link · parent

Actually, password fields often display an incorrect number of bullets (maybe not while the user's typing, but after they're finished). The idea is to also mask the password length.

comment 17y ago · link · parent

Yes, and instead of creating kids that are adaptable, we're creating ones that are weak.

If someone tries to prepare for every possible contingency, kids grow up under the grand illusion that not much can go wrong, and then crumble when they're faced with the smallest unanticipated problem. (Some more along these lines in this article: http://timesofindia.indiatimes.com/articleshow/861651.cms )

This is reminiscent of dumbing-down projects in software. :) Something brilliant is created, but over time the original developers move on and there is a push to make the thing maintainable by cheaply-employed people who are relatively mindless automatons. Most of what they do is memorize remedies for the common issues. Their effectiveness is therefore proportional to how predictable the problems are; should something unusual occur, they have no idea how to fix it and their effectiveness goes out the window. So imagine if you're a child, you grow up feeling basically capable of living your own life, only to be given the rudest of awakenings when unexpected things start revealing just how unprepared you really are.

comment 17y ago · link · parent

Maybe the person learned English as a second language. English is not easy to learn, and it's no sin to screw up a few things. Focus on whether or not you agree with what the person wrote.

comment 17y ago · link · parent

Terminal-based "pico" (part of the pine distribution) is pretty simple to use.

comment 17y ago · link · parent

What this says is that Microsoft is willing to be very deceptive about a free product. But you can't blame them at all, it's just a web page. Even if this deception actually has some demonstrated effect on browser market share, those market share changes will be based on the personal decisions of people to switch. It's not like Microsoft has gone and deleted everyone's IE7 and Firefox installations without permission.

Remember that any source of information should not be implicitly trusted. [Trust me! ;) ] If an individual decides to believe Microsoft's statements without doing any further research, and downloads and permanently switches to IE8 based on lies, then it's that person's problem.

comment 17y ago · link · parent

I may just not understand the abstraction. Do you have an example of what a library function would look like in this environment, and how you would want it to translate to other things? Try implementing "print", for instance.

comment 17y ago · link · parent

I don't think I would force this on a published page either, since it's basically a personal preference.

But it certainly could be done by one user for his/herself. Safari and OmniWeb let you set default stylesheets, and Firefox will recognize one too if you create a [profile]/chrome/userContent.css file.

comment 17y ago · link · parent

I've always hated how the vertical scroll bar disappears in my browser, and it's nice to see that such a simple CSS trick fixes it.

I actually use OmniWeb, but the trick works just as well; I had to define a style sheet first (Page Appearance preferences).

2627.

Always show a vertical scrollbar in Firefox, Chrome, Safari and Opera(electrictoolbox.com ↗)

4 points · by makecheck · 17y ago · 5 comments

comment 17y ago · link · parent

I believe that what you're looking for is Parrot: http://www.parrot.org/

comment 17y ago · link · parent

An I.T. solution for this shouldn't cost more than it would for human beings to walk around with a checkbook and a pencil.

comment 17y ago · link · parent

For me it's not even about how the content is displayed (which is Adobe's concern), it's the user interface.

HTML 5 could present everything in mostly the same way, but still be an improvement because the browser would be aware of it all.

Problems that I see only in Flash:

- Fixed-size text in a fixed-size box in the browser.

- Text that can't be selected/copied/pasted.

- Unnecessary customizations to video player interfaces.

- "Navigation" that is completely unable to interact with the rest of my browser, e.g. can't figure out what URLs things go to, or how to go back.

- Needing to go to Adobe's own web site to bring up Flash configuration panels to edit further redundancies like Flash's own cookie storage, etc.

comment 17y ago · link · parent

What leads us astray is a failure to invest (intellectually) in the news as much as previous generations did. Some of this isn't a sign of intelligence, it's just a question of how people spend their time.

Are people willing to read a full page analysis, and are they willing to wait while someone dredges up the tidbits to make that page? Or, are they at least willing to do their own research? Not really, and I think that's the real point of the article. It's not that sources are necessarily bad, but that it takes time to know which are good. Ironically, the impatience that gave us instant access to information has now created so much information that it takes more time to process it all.

Twitter is just the latest example of being able to instantly talk to the world, and it feeds on everyone's impatience. News organizations know this too, that's why we have a culture of "breaking news" where all that's needed for relevance is to be the channel that brought you the story: even if there is no story yet, and you're seeing 4 hours of pontificating over a recycled video clip.

comment 17y ago · link · parent

I think the problem is that the definition of "operating system" has been warped over the years, and customers can think only in terms of bundled programs and not the capabilities of...well...the operating system.

From a software developer's point of view, a single target is most valuable. If I have to worry about the availability of APIs or libraries based on Microsoft's arbitrary bundles, it's a huge problem (not only because explaining the "problem" to customers becomes my job, but because it means Microsoft is arbitrarily limiting the size of the potential market).

If 3rd party programs all work the same no matter what version of Windows 7 is in use, it should be fine.

comment 17y ago · link · parent

The recommended convention in Python's own documentation is to import everything at the top, and on separate lines.

While technically Python doesn't import anything twice, it still takes nonzero time to check the module registry (a dictionary lookup). So if this happens every time your functions are called, it's unnecessary work, even if it's fast.

I personally tend to do all imports in one place, with the exception of test routines: I figure that a user of a module shouldn't really "depend" on modules that are only needed in test mode, so e.g. I would do a local "import" inside a _test() function.

comment 17y ago · link · parent

I figure the majority of the challenge is in businesses. And there, changing the Windows adoption rate requires visionary people in charge, a complete set of applications on another platform, and a realistic transition path.

I haven't seen a lot of vision in current IT groups; more like, CYA. So it may take a generation or more before enough of the establishment changes to even consider moving away from the current stack of Windows/IE-based enterprise software (the quality of which is oddly irrelevant to many managers). Either that, or a catastrophe so substantial that upper management is forced to start over with IT.

Making competing applications on other platforms is technically doable. But, unfortunately, most of the work that needs doing isn't interesting. Years have gone by, and it shouldn't be surprising that people have avoided spending their precious free time developing open-source business apps when they could do something more fun. What's more, with each passing year, the number of new enterprise apps bolting businesses to Windows is increasing (as is their data dependency on existing apps).

And then there's the transition. How do you even convince companies to change, much less address the technical hurdles (e.g. different data formats, software bugs) and the user community (different user interface, retraining costs, etc.)?

For what it's worth, I really want Windows' share to decrease, but these are big challenges. I do what I can to help. :)

comment 17y ago · link · parent

Palm is only waiting two weeks, so it seems a little excessive to worry just yet (especially since finishing anything in 2 weeks seems incredibly efficient by some corporate standards). But it is okay to ask the question, and remind them in public of their obligations.

Keep in mind that the "preparation" they're doing could be as simple as scrubbing everything to make sure they don't accidentally release anything proprietary. For example, even for open-source packages, it's conceivable that they have developed some of their own internal tests that use proprietary data, and so their internal copy of the packages would contain more than they intend to release to the public.

comment 17y ago · link · parent

It's funny to see them market the fact that Mac OS X takes up less disk space. While this is true, I'm sure the only reason is because all bundled apps and frameworks no longer contain PowerPC chunks in their universal binaries.

comment 17y ago · link · parent

Agreed. In the NeXT days, Services was a top-level menu that couldn't be missed. I always found it silly that they buried it in Mac OS X, especially considering that far less useful menus were not buried (such as Help).

comment 17y ago · link · parent

Yep. Bertrand Serlet's comments on stage pretty much summed up Apple's attitude: they love the Finder in Leopard. They either don't know or don't care about just how much the Finder has really lost, nor do they focus on major UI issues in the Mac OS X Finder (that have been documented extensively in many blogs and articles), issues that create daily frustration or confusion for many users.

I'd bet that even this Put Back feature will be a poor imitation of the old one, just like everything else. Scrollable stacks that can dive into folders? Please, Mac OS 8.5's pop-up windows were brilliant, scrollable windows that could do everything else that Finder windows could do, and it doesn't even look like Stack pop-ups can be resized.

comment 17y ago · link · parent

It was a feature of older Mac OS X versions, but mysteriously disappeared.

comment 17y ago · link · parent

I can see how they might consider a particular comic offensive, but...

Regardless of their terms, I think Apple is out of line to dictate how paying customers use their devices.

Part of the problem, I think, is that until Apple's iPhone OS 3.0 "pay for content" feature is available, the application and the content are merged.

I can only hope that once content can be purchased separately, Apple will loosen its restrictions on viewers.

Personally, I think society should trust people "not to buy" things they don't like, or "change the channel". This pre-screening of "offensive" material is frankly the only thing that I find offensive about Apple, YouTube, etc.

1
878889
98