Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 15y ago · link · parent

It would hardly ever matter, that's true. But I can certainly contrive something that would require it, such as:

    if (something) f();
    else delete x, x = NULL;
Of course, I don't personally use "else" without a block, so it's just an example; I'm not suggesting it's a good idea.

comment 15y ago · link · parent

Implicit upvoting awarded to comments based on the length of "discussion" that they produce.

I've been surprised sometimes how an entire thread will form under a comment of mine, and in the end there will be 2 or 3 sub-comments voted at 20 while mine stays at 1. Shouldn't I, in those cases, receive some votes for starting such a discussion?

comment 15y ago · link · parent

If this statement were directed at particular parts of the Internet where there are known problems, it would make a lot more sense. But as a blanket statement about the entire online world, it's nothing more than exactly what you'd expect a Facebook person to say; they are obviously in a business that benefits from this, but no one else really does.

We have insecure protocols (e.g. E-mail is wide open), and there are places where it would help to be very sure that something came from a particular person. There have been solutions, but none of them is sufficiently widespread. Is Facebook ponying up some money or resources to help solve that? Probably not.

comment 15y ago · link · parent

Sentencing a criminal to jail is theoretically supposed to be for the good of society. So in a case like this, they'd better ask themselves if society would ultimately benefit from having him behind bars.

The actual damage done here was negligible, especially considering the questionable locking-down of the content in the first place (i.e. maybe it should always have been free, and it was still valued at only $50,000 by the school, not $1 million). Swartz maybe did something stupid, but his ability to contribute to society is still far greater out of jail than in. There is also every bit of evidence to suggest that his intent is to contribute positively to society.

In other words, if he serves more than a few months in jail for this, or is actually asked to pay a million dollars, I will be incredibly disheartened by the "legal" system.

comment 15y ago · link · parent

I found that I liked things that I didn't think I would:

- I like the new scroll bars, though I had to immediately reverse the setting because I couldn't get used to their behavior (probably right for a track pad, but wrong for a mouse scroll wheel). It is even shocking how useful they can be, e.g. in column views such as file save dialogs I don't think I realized before how much space was wasted by scroll bars.

- I also don't mind Launch Pad, although Launch Pad still seems like it tries too hard to shoehorn in an exact implementation from iOS. A big screen with a mouse should yield more flexibility; it would be especially nice to be able to leave spaces between icons and to group them while still showing all icons instead of putting them in a folder like iOS does.

- Other random changes to the UI are generally pretty good. Though I think sliders suck (they look too dim and unclickable now), and the decision to make tab segments metallic seems out of place with the Aqua look that remains everywhere else. Similarly, darkening the blue shade of menu selections seems mismatched compared to everything else.

Many features are maddeningly useless on dual-display machines. Full Screen inexplicably blanks out an entire display with no apparent way to make use of the other one; it even moves windows that started on the 2nd display over to the first before entering Full Screen mode! Mission Control is obviously aware of multiple screens, but the way they did it still seems kludgey to me. It is frankly as if Apple didn't even bother to try supporting multiple displays well, even though they're perfectly happy to sell you systems that encourage this (expensive) hardware arrangement. Like Xcode, Instruments, iTunes and other new one-window apps, this trend is extremely irritating because it's as if the entire potential of my display is being actively shunned by the software side.

Animations are about half-and-half; some are quite nice (like for alert boxes), but most are simply too slow and weren't user-tested properly. Full Screen for instance takes a ridiculously long time, as does switching Spaces, and these delays are unacceptable.

There is a general sluggishness to the new OS in areas besides animation. Sometimes applications seem to take longer to open, and windows take longer to open. It is not clear why.

I prefer to minimize windows into the application icon, and this is kind of a step backwards on Lion: Apple no longer shows these in Exposé (Mission Control). The only apparent way to get them back is via a new dock menu item "Show All Windows". In other words, that preference is no longer useful.

I think the new Mail is brilliantly designed.

The inclusion of FaceTime is nice I guess, but I know absolutely no one who uses it (the other instant messengers like Skype are king now, I'm sorry to say).

In general, a pretty good upgrade, and absolutely worth thirty bucks.

2076.

Mac OS X Lion window resize trick: Option key for centered resizing

1 points · by makecheck · 15y ago · discuss

comment 15y ago · link · parent

Right, because $54,000 wouldn't be appalling either.

A song is worth a dollar, which means $24 is the maximum actual theft here (but one could argue that since the industry is willing to sell songs for less as albums, they aren't "worth" a dollar either...more like 25 cents).

Restitution might demand a small fine, such as $50 or $100. That means this person should be liable at worst about $100.

So what the hell, exactly, is wrong with the music industry and the legal system? I would think it's largely a matter of doing math, and comparing this to other small theft cases like taking a candy bar from a store.

2078.

Mac OS X Lion Finder's "Arrange By" Options

4 points · by makecheck · 15y ago · discuss

comment 15y ago · link · parent

I find the comma useful in deletion scenarios. For example, rather than just "free(x)" or "delete x" (after which the variable is undefined and can't be used anyway), I like to use the comma to add a NULL assignment. So, "free(x), x = NULL". It doesn't really need to be that way, but it's nice for avoiding random behavior in case the variable is referenced later; and the chain on one line makes it unlikely that the 2nd part will be forgotten.

comment 15y ago · link · parent

Undoubtedly a number of lawyers' children have benefited from their family's greatly increased income. Otherwise, I can't think of anything.

comment 15y ago · link · parent

I've had a phone for just over one year, and it is apparently stuck with Android 2.1 (HTC Hero on Sprint). I'd like to be excited about what Google does with Android, but they aren't solving the single biggest problem: users can't get their improvements.

comment 15y ago · link · parent

Screens are already big enough where it would be nice to run some small things side-by-side. On very large tablets it will be crucial to have "app management" (sort of like window management).

It's not only for usability, but for the software market. Most developers will be stuck at their assumed resolutions for awhile. And initially, no one will want to run an iPhone app at "10x" size, but people would probably be happy if they could at least run 4 iPhone-sized apps on the screen at once.

And this would go a long way toward true multitasking, because a tablet could present the illusion of a large-screen integrated app that is in reality a collection of small utilities from more than one developer. That could make a truly valuable tablet, since at all times you could display exactly what you want to use (e.g. a stupid drawing pad app in one corner, an SSH session in another, heck a VNC session in a 3rd corner and your E-mail in the 4th).

comment 15y ago · link · parent

At least compare it to running FF26, which is the overwhelmingly-likely backup plan in such a case (i.e. they were probably using FF26 before, so they continue to use it until they have time to fix things for FF27). Staying back one version is not unreasonable. If the company has waited 23 versions to upgrade, then it's basically their fault for being in that situation.

Security patches aren't always relevant; having a working browser (any browser) trumps all. If in fact there is no patched Firefox that works, but some other patched browser does work, then the more-patched browser wins. But if the only working browser is missing a few patches, big deal; use it anyway, and consider it added motivation to upgrade company infrastructure. You're not going to shut down the company for 4 weeks because the browsers are unpatched, I hope.

comment 15y ago · link · parent

Actually, what I'd expect is that they wouldn't tell me they even have a problem; I'd expect them to take down my requested changes according to their backup plan. (They do have one, right?)

For instance, there might be a form upon which an agent can write down required customer changes, that is then filed so that the system can be brought up to date later when it's back online.

If an operator "can't update" something, it is the fault of the company for not having contingency plans. Suppose Firefox was upgraded without a hitch and passed all their tests, but then there was a power outage in the server room...why should the customer even care about the difference between these two? Often the same contingency plan applies to many different cases, it's just a matter of actually having an organization with this kind of advance preparation.

comment 15y ago · link · parent

I've actually always hated this tendency for enterprises to require so much time to accept changes. This isn't the damned Space Shuttle. And this kind of over-caution means exactly one thing: "support" people who generally have no idea how to respond to a real crisis, because they've had little experience dealing with actual issues and spend all their time trying to avoid these minor inconveniences.

When you take your car into the shop, sometimes you find things are a bit worse than you thought and you need to adapt to a loaner for a couple of days. It's not the end of the world, either way you have a car and you end up where you want to be. People have been adapting to minor issues for a long time. Computer users are not completely stupid: if the new version of Firefox breaks something one morning, they can be told "okay, please use the old one for a few more weeks" and they're on their merry way. In the meantime, with a side copy someone can figure out exactly what's broken. It sure doesn't require weeks upon weeks of revalidating who knows what "just in case" there's a problem.

comment 15y ago · link · parent

I agree. Note that there are multiple things on the Mac App Store that do this already; for instance, I dug up TileWindows (never tried it, no idea if it's the best of them).

It would be nice if windows could be independently told to lose their chrome to make more room, as they seem to in Full Screen, but without actually taking up the whole screen in the process. For instance, why shouldn't I be able to toss 2 or 3 terminal windows on the left half of a display while still having room for regular, non-Full-Screen windows on the right?

Ultimately I think Apple made a good decision by combining Full Screen and Spaces, because they are very similar. Each screenful is essentially devoted to some task, whether that task requires many windows or one, and it's nice to switch between them so easily.

The only question that remains for me is what will happen with 2 displays. I hope Apple has a simple way to place any Full Screen app and/or any Space on either display, where I can switch one display without affecting the other. One of the infuriating things about Mac OS X 10.6 and earlier right now is that a full-screen app on a second display affects the first display in weird ways (e.g. a 2nd display's full-screen mode can be turned off by trying to interact with windows on the 1st display, which seems like a nonsensical restriction).

comment 15y ago · link · parent

Technically true perhaps, but morally gray at best. As I see it, a project that's using the GPL is making a pretty clear statement of their intent, regardless of whatever slimy legal loopholes may have been left unclosed. A GPL project author probably doesn't want other people harvesting their work and keeping the changes secret, even if there are technically ways around the GPL's distribution clauses.

comment 15y ago · link · parent

The ability to link freely isn't automatic in GPL libraries, it is something that GNU explicitly adds as an exception to the license of GCC; otherwise, GCC is pure GPL [1]. The GNU C library is a related runtime that also explicitly allows linking to proprietary software because it is under the LGPL and not the GPL [2].

What it boils down to is that GPL by itself does not allow reuse without similar disclosures of code, etc. and only a different license (like LGPL) or a documented exception to the license (like in GCC) will change that.

[1] http://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html

[2] http://www.gnu.org/s/libc/manual/html_mono/libc.html#Copying

comment 15y ago · link · parent

There are in fact many licenses that meet the open source definition, and any concerns about the restrictions of one might be dealt with by looking only at projects based on other licenses: http://www.opensource.org/licenses/category

For example, basing a business on GPL as you stated may be a problem because it would compel everything in the stack (including something unique built on top of established code) to be opened up...so it would be hard to build something truly competitive without showing all your cards to your competitors. Other open source licenses such as MIT's have fewer restrictions and amount to preserving copyrights and the right to reuse but without any warranties.

Of course you can only build on code that is "compatible" with the license you choose. There may be solutions that are only available under GPL licenses, in which case you have to decide to live with those restrictions or build your own.

comment 15y ago · link · parent

Curious...polls still show point totals for each answer. It seems that any reason for hiding points before voting on a comment would also be valid for hiding points before voting on a poll.

So if you decide to keep comment scores hidden, I suggest also hiding poll answer scores until the reader's vote has been cast.

comment 15y ago · link · parent

Microsoft is a for-profit business, so we'd expect them to constantly be working on stuff like this. The mere possibility of derivative products is not news! There aren't enough specifics to even call this an article. This is mere marketing, and we shouldn't be helping Microsoft to do it.

comment 15y ago · link · parent

The correct title is "Android Emerging as Platform of Choice for Mobile Virtualization", which changes the interpretation pretty significantly.

comment 15y ago · link · parent

Yes, reading code is important, but there's no such thing as being "quickly" productive on a new code base. Anyone who makes changes quickly is probably being careless.

Some, and perhaps most, legacy code bases belong in a top 10 on TheDailyWTF. The last thing you want is for someone to start tinkering with a fragile code base and breaking things that seemed unrelated. A code base of any significant size could take weeks to understand properly, and very few changes should be made until it is understood properly. Managers of new engineers need to be cognizant of this lead time.

When working with a new code base, the only thing that's "productive" is spending the first month just studying code, asking questions of colleagues, writing tests and documentation, and making sure that the effects of various potential changes are fully understood. Any time spent on new features at this stage is just expanding the bloat and adding risk to the project.

comment 15y ago · link · parent

The initial cost of a phone seems to be subsidized by the carrier's data plan contract; a phone that calls and texts for "free" would look more expensive up front than its competitors. And if AT&T is even slightly telling the truth about the "load" phones create on its precious network, a Skype-only phone would have to impose a significant tax on any WiFi network it passed through; so how long do you think there would be decent free WiFi in areas that become bogged down by phone Skype traffic?

comment 15y ago · link · parent

I agree with the potential in those 3 things, but consider...

Saving even an hour writing something as a few terse lines means nothing if in 6 months you need days to decipher and debug it. The code has to remain clear somehow. About the only acceptable use of a clever one-liner is when it provably reduces the runtime of the generated machine code by a significant amount...and even then, the hour you saved not writing code had better be spent writing a block of comments to explain your one-liner.

Yes, Objective-C is weird. But put yourself in the seat of a language parser; it's already a very difficult problem to ensure that some languages parse correctly and unambiguously. If you introduce new syntax that is "weird", it's actually safer than doing something that may cause subtle incompatibilities with all the code that's been compiled a certain way for decades. And that code has proven the "weird" language is practical, whereas a brand new language (no matter how perfectly designed it seems to be) may actually have parser corner cases that have not been ironed out yet.

Garbage collection is a benefit in many situations, but Apple has managed to create a very responsive phone where mere milliseconds are just perceptible enough to make a user think "my iPhone feels fast, and this other phone feels slow". Right now, performance matters most, and manual memory management is an edge for Apple. It's important to make programmers happy, but not as important as it is to sell things to users.

comment 15y ago · link · parent

It's fine to push for a better language, but so far you seem to be saying we should do it just because the current language is too old. What are specific things that are wrong with the language Objective-C 2.0 (and not just Cocoa, which is an API; and not just Mac OS X or iOS, which are platforms)? Why should Objective-C not just evolve into something a bit more interesting?

And when considering any alternative, what are the most costly considerations for any developer, including Apple? The size of a code base is a significant factor. The fact that established code already works (new code may add bugs) is a significant factor. The wealth of knowledge already accumulated by programmers is a significant factor. A new language is very unlikely to win a war in those areas, so it would almost have to solve some other problem that is still costing developers a lot because they're using today's languages.

comment 15y ago · link · parent

I'm not sure if this is really necessary...

- With Automator (Applications folder), even a shell script that pipes input into itself can be wrapped as a standalone application and saved.

- Naming any script with a ".command" extension (or ".tool") makes it double-clickable from the Finder. Though in that case, it runs in a terminal window and isn't quite as nice as a standalone application.

comment 15y ago · link · parent

The net results of many meetings could be summed up in E-mail threads or things like wiki documents. So often the first step is to prefer those mechanisms. (Bonus points if people in the organization can be trained to be brief, so that threads and documents are focused.)

The net contributions of many people in a one hour meeting could often be summed up in 30 seconds, and it's even worse when those people had no relation to anything else that was discussed (and therefore had no other reason to be there). So step 2 is to realize that either the meeting was meant for fewer people, or should have allowed attendees to speak for 30 seconds and then leave.

The very worst possible meeting is one that is at preset intervals, for preset lengths, with no agenda (e.g. weekly one-hour meetings with 20 people), that starts late with phone and projector problems. That is essentially telling your employees that you don't care about their time.

comment 15y ago · link · parent

The web page is using frames.

If you try to view the page's frame in its own window, the favicon will show up.

comment 15y ago · link · parent

Learn multiple programming languages, so that you are in a better position to use the one that is most suited to a given task. This also exposes you to new ways of thinking...some languages aren't nearly as good at expressing certain concepts as other languages.

The ability to "glue" is a related skill. One type of glue is inter-process communication and shell scripting, allowing you to tie small programs in multiple languages together. Another type of glue is a generator tool like SWIG or Cython, where a single large program can take advantage of a high-level language and a low-level language instead of being confined to one suboptimal language.

1
697071
98