12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 17y ago · link · parent
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
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
comment 17y ago · link · parent
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
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
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
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
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
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
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
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
2389.
11 points · by makecheck · 17y ago · 6 comments
comment 17y ago · link · parent
comment 17y ago · link · parent
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
comment 17y ago · link · parent
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
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.
comment 17y ago · link · parent
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
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
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?