12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 15y ago · link · parent
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
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
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
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 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
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
comment 15y ago · link · parent
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
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
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
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
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
comment 15y ago · link · parent
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
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
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
comment 15y ago · link · parent
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
comment 15y ago · link · parent
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
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
- 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 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 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.