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

He seems to believe that the only reason for a comment is to describe what something does, and thus clearly-written code would be equivalent. If that were strictly true, he may be right.

However, a major benefit of comments is to explain why something is done a certain way. Is anything temporary or arbitrary? Is there something counting on a side effect? Is something being bypassed for efficiency? How will this null argument to a function be interpreted? Is something not being checked because it is assumed to have been validated earlier? And so forth.

comment 17y ago · link · parent

I haven't figured out why, but far too many people will (often anonymously) publicly eviscerate a product when they find a problem, without actually bothering to contact the maintainer for help.

It's sad, because there is often a perfectly valid reason for the issue; and the fix is often trivial, or at least, explainable.

There are a few defenses against unjustifiably-bad reviews. (I have had to deal with this personally.)

First, if you can become a member/poster on the forum with a rant against you, do it. Post a reply that identifies you as associated with the product, and clarify whatever the customer has apparently misunderstood; or, if it is a bug, instruct the person on how to provide more information to have the problem fixed. There is little chance that the fuming anonymous poster will ever see this, but they might; and either way, it shows others that you are doing your best to deal with the problem.

Second, forums sometimes have moderators who will accept complaints and remove remarks. Rants are often obvious; for instance, if everyone except one fuming moron is giving you 5 stars, a moderator shouldn't have any problem removing the offending post.

And third, be vigilant. It can be disheartening to have people publicly destroy your product, and sometimes all you can do is just keep working and make it better. At some point, the bad press will fade. It may well have caused some damage to your product's appeal in the short term, but in the long run your name will be considered one of the good brands.

comment 17y ago · link · parent

It doesn't seem like you are getting anything out of the PC. Why not access the music/web/movies on the Mac too (which also has 10 different ways to open your Word files), and either ditch the PC or buy one of the virtualization programs for the rare need to use Windows?

comment 17y ago · link · parent

Even if it were "much faster", this isn't really the goal, because code writing is usually the quickest step; at least, it is if your employees are competent. What matters more is how maintainable your project is, and how easy it is to deploy.

I may use several libraries, but I lean heavily on platforms; for instance, I have no problem using what's in /usr/lib from a typical Linux distribution, or the Python standard library. This keeps deployment pretty simple, and I can rely on well-tested components that are widely used and unlikely to go away. The platform libraries are also usually free. And I can ask or hire anyone who knows something about them.

While I don't rule out incorporating another library, this is definitely not a rule of programming. A 3rd party library has to do a lot to justify its added deployment complexity. After all, maintainers will have to read through API documentation just to figure out what something does, and this shouldn't take more time than it would take to read through my own implementation of the functions.

comment 17y ago · link · parent

I use the numbers mostly when browsing pages (with "More"), since there is no other indication of what page you're on.

comment 17y ago · link · parent

This is annoyingly slim on any details that would back up their assertions.

For instance, if programs are apparently fast, and searching is fast, could they not at least be bothered to measure this (versus Vista or XP, or running previously-known-to-be-slow programs, or even measuring a Mac)? Then there is the fact that any clean install makes a system feel snappier for awhile; let's talk again in 4 weeks and see if everything hasn't become dog slow.

And the rest of the article reads like someone who just wants eye candy. 3rd party programs have been able to customize the bells and whistles of Windows for some time, and they don't cost the $200-$400 that a new Windows would.

I do not know if Windows 7 is a great OS, but I do know that this article isn't making that case in any meaningful way.

comment 17y ago · link · parent

I'm not sure the block syntax buys as much as you'd want it to. Maybe a more complex example would help?

For instance, you can create similar syntax with a class definition. I've tossed together something quick below to emulate your UI library (not really something I've tried in practice, but the idea is there):

    class ExampleLabel:
        caption = "This is an example"
        position = (50, 50)

    class ClickMeButton:
        caption = "Click me! Click me!"
        on_click = lambda: sys.stdout.write("The button was clicked.\n")

    class HelloWorldWindow:
        caption = "Hello World"
        dimensions = (400, 300)
        contains = (ExampleLabel, ClickMeButton)
If you then had classes or functions with kwargs arguments, that recognized key names such as "caption", "on_click", etc., then the above classes could be used in this way to instantiate things (either alone, or within something like a Window):

    b = Button(**ClickMeButton.__dict__)
    l = Label(**ExampleLabel.__dict__)
...or equivalently, on the fly:

    l = Label(caption="Other label", position=(10, 20))
Notice that since everything is defined as a class, instantiating duplicates is actually taken care of. For example:

    w1 = Window(**HelloWorldWindow.__dict__)
    w2 = Window(**HelloWorldWindow.__dict__)
Since I haven't "inlined" anything in a block assignment, the definition can be used repeatedly (when put in a class).

comment 17y ago · link · parent

I am.

There is at least one site (Door64) dedicated specifically to Austin tech, that has regular networking events. It may be interesting to join them because of the focus on Austin.

comment 17y ago · link · parent

You might try LyX ("lick"): http://wiki.lyx.org/Mac/Mac?from=LyX.LyXOnMac

It's basically a fancy front-end for LaTeX, and might do what you need. The printed output would certainly look nice.

comment 17y ago · link · parent

It annoys me, too.

However, here is one nice solution (that is nice for a lot of other reasons): http://rentzsch.github.com/clicktoflash/

comment 17y ago · link · parent

The problem is that packages aren't as useful as they should be; I actually prefer solutions that fall outside of package managers, because I am forced to rebuild from source (without the package manager) more often than I'd like.

For instance, I usually need to ignore packages whenever I can't be root, or when I need more than one version of something at a time. While many packages "can" handle these things, it is often a matter of improperly maintained packages (e.g. RPMs might be relocatable, but not all of them are; it is too flaky to rely on this ability).

comment 17y ago · link · parent

"We continue to make steady progress, and we hope to be able to begin restoring"...

What does that even mean, Microsoft? If you haven't begun restoring, after saying you could, what are you making progress on?

comment 17y ago · link · parent

The article listed at least one thing -- compatibility with older Windows versions -- that isn't part of every version of Windows 7.

I hate this kind of marketing soup: nobody knows what Windows 7 will really be like, because articles and commercials can claim anything that's in the $399 version. It's time for someone to upgrade a 10-year-old-laptop after spending $100 on the cheapest version of Windows 7, and write an article about that "Windows 7".

comment 17y ago · link · parent

While I list most CSS properties together, I actually collect all box elements like this:

  margin-top: ...
  border-top: ...
  padding-top: ...
  height: ...
  padding-bottom: ...
  border-bottom: ...
  margin-bottom: ...
  
  margin-left: ...
  border-left: ...
  padding-left: ...
  width: ...
  padding-right: ...
  border-right: ...
  margin-right: ...
The components are listed in outside-in order, with each axis separate. I find this easy to visualize and tweak.

Most other properties, however, I do just list together alphabetically.

comment 17y ago · link · parent

A lot of claims, no real data to back them up.

comment 17y ago · link · parent

The only one I've ever willingly used is Trac[1], which is a simple but extensible system that does as much as I would want. Its "out of the box" setup is pretty reasonable.

[1] http://trac.edgewall.org/

comment 17y ago · link · parent

Make sure they're familiar with the documentation tools and web sites (e.g. for Python, they should know how to "pydoc" library calls, and how to find stuff on python.org, so when they see a library call or a new construct, they may be able to figure out what it's doing).

comment 17y ago · link · parent

I like how some buttons are in a kind of "thumb sweep" layout: along a curve where you're most likely to be able to reach them.

2389.

Google home page even simpler

11 points · by makecheck · 17y ago · 6 comments

comment 17y ago · link · parent

It seems a lot of over-posting comes from the famous "karma: 1, created: 30 seconds ago" accounts, so it may make sense to impose limits based on time as a user. (Karma may not work as well, as I could imagine a spammer creating 100 accounts and using them all to upvote one another's submissions.)

comment 17y ago · link · parent

I'm curious, is there a reason the apps need to be standalone (e.g. performance)? A modern web site could do a good job of displaying the kinds of data you mentioned.

comment 17y ago · link · parent

Yes, I think a better one is needed. HN only seems to detect duplicates when a new submission has a URL that is identical to a previous submission.

The idea of pattern-matching URLs could help, but a lot of times the problems are due to links through blogs, etc. that have completely different URLs. So in addition to automatic detection, there should be a way for users to specify which HN pages belong together.

comment 17y ago · link · parent

One-pager. http://www.itworld.com/print/81060

comment 17y ago · link · parent

It's an implementation detail. It's not the "//" that matters, it's that web browsers weren't offering reasonable abstractions; so this weird detail affected more people than it should have.

These days, you can type "foobar" instead of http://www.foobar.com/ in any browser, and it works. The "//" isn't a big deal.

There's more that browsers could be doing. Why ever display "<anything>://" in a browser, when it could be a menu of protocols?

comment 17y ago · link · parent

Is this svn 1.5+? Branch/merge is a lot easier with 1.5's enhancements; I'd guess that most horror stories with merging are when using older versions.

As far as having the whole world in one repository, I'd just avoid it, and not just because of svn's performance in deep directory structures. Surely there are logical parts of the whole that could be separately maintained?

Also look at svn's externals[1], to allow a repository to virtually contain parts of other repositories. The trick is that links must sometimes be tweaked; for instance, if you make a branch and do not want to continue to depend on the trunks of your dependencies, then you must reassign externals.

[1] http://svnbook.red-bean.com/en/1.0/ch07s03.html

comment 17y ago · link · parent

Peace and quiet is worth the price to a lot of people. Besides, all inventions are expensive at first, it'll become cheaper in time.

I'd actually like to see a ceiling version of this. :)

comment 17y ago · link · parent

You should develop a large system by building many small parts that are bound together (probably by scripts). The "big monolithic program" approach is insane: it invariably leads to reinventing wheels (e.g. there is no good reason for an office suite to have its own scripting language).

Small parts can be written in whatever language makes sense for the task. Their partitioning leads to clean interfaces: command line options, file formats, or protocols, without which the parts could not be usefully combined. This has the great side effect of making each piece easier to test in isolation, as regression test data can be created for each part without regard for how the data reached that point. It also makes everything inherently more flexible, for unforeseen improvements.

When you have small parts that are easily tested, you can easily replace them. This is the basis for innovation or other maintenance: if you really have to, you can confidently throw out one piece and put in something better that is compatible.

It also helps immensely to open-source each part; at least, within your organization. It should not be surprising that people are more willing to contribute when there is something small they can wrap their heads around.

comment 17y ago · link · parent

His observations are actually true of any tool, not just "git". I want everything I use to be robust, and not magical. (About the only exception is perl, and that's because it is actually designed to be a Swiss army knife. But even here, I've moved more toward python.)

Magic is the enemy of scripting, too; not only in shell scripts when running programs, but in other languages when calling functions. It is very hard to work around things that have stupid side effects. Every program/API should have basic functions, with no default behaviors that are even slightly unpredictable.

Output format is also related to this flexibility. For instance, to me, a program that does something useful, but then chooses to pretty-print all its output in hard-to-parse tables, has severely limited its value. (After all, if I wanted it pretty, I could pipe to a program that makes it pretty. Then again, it's more likely I want to use the data for something else first.)

comment 17y ago · link · parent

In my experience, new "policies" put in place in these situations don't really do anything. They just inject bureaucrats where there were none before, and aggravate the few people remaining who might really help. And you can bet managers will start a witch hunt, firing some mostly-competent guy as a scapegoat (which may "feel good" at the time, but ironically will only slow down their recovery and set them up for their next failure).

The smart thing would be for Microsoft to think of the employees: what management decision is likely to make working in that group least likely to suck over the next few months? If it were me, I would invest in technology and hires/transfers, not in bureaucracy. I would give that group everything it needs to build and rebuild that system twice. After all, doesn't Microsoft have the money for that?

1
798081
98