12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 10y ago · link · parent
First, are you willing to pay $500 more for every product, and $10 more for every meal? Companies have to compete, and they are responding to what is necessary to survive. If a company employs 5,000 U.S. citizens and can't compete, it may stumble and lay off 1,000 U.S. citizens, or fail entirely and shed 5,000 U.S. jobs, all because it wasn't allowed to bring in a few immigrants to grow a little.
Entire companies (and successful companies, like Google) have been started by immigrants, creating potentially thousands of jobs for U.S. citizens. There is no reason to automatically fear immigrants; many of them are brilliant people.
A lack of a paid job does not make you a "drain" on society, either! What about children? What about volunteer work in communities? For that matter, I have met some astoundingly lax and irresponsible people over the years that have paying jobs, to the point where I almost thought of them as a net negative to the company.
comment 10y ago · link · parent
If I get a job, and my company NEEDS me, and I'm GOOD at what I'm doing, I should get IN; period. There should be no crap involved. How the hell is it good for a company to be told that it can't grow because it happened to petition the 65,001st person out of 65,000 that year? How the hell is it good for the prospective employee to have to try again later? And in extremely-fast-moving industries such as tech, even the arbitrary time frame of "one year" is an insanely long time.
The only limit that kind of makes sense is a thorough investigation of the type of person you're bringing in (e.g. university degrees or other background, some indication of what they're bringing to the country as a whole). It may make sense to force companies to prove that no U.S. citizen can do the job but this system has been gamed for years, as companies produce vague job descriptions just like they post vague patent descriptions.
comment 10y ago · link · parent
For example, I used a module prefix consistently in my code so that any occurrence of an "Xyz_" prefix in a file would pretty much guarantee that "Xyz.h" is required to compile. I also put all local #include references in the same part of the file under a predictable comment header. That way, I didn't need a C++ parser; I just needed to know where to start searching for the list of headers, infer prefixes from their names, and complain about prefixes that were not found in the rest of the file. This has worked surprisingly well, and I can tune the script to skip modules for any reason.
This is also important for the reverse case. I don't really need an IDE or ctags to figure out what file is needed for a #include in most cases because I have the name of the function/type/constant/etc. to guide me. Similarly, I know exactly what file to open in my editor without using magic tricks. (Although, code completion and jump-to-definition are still quite helpful, especially for things like OS calls that may follow no particular convention.)
comment 10y ago · link · parent
comment 10y ago · link · parent
I wish that web browsing were better on the iPad; that should have been the killer feature. On day one, before web sites knew about the iPad, it was incredible. Sadly (and ironically, for a "walled garden" device that is supposed to be so restrictive itself), the most out-of-control feature of an iPad seems to be the web sites you visit. They have way too much damned control over the browser, and they keep trying to deliver a special iPad experience when all I want is a web site. If Apple really wants a good feature in iOS 10, they should make Safari stubbornly refuse to do 90% of what web sites "request".
comment 10y ago · link · parent
Also, clear icons are easier to construct with simple shapes than with detailed pictures, and symbolic icons may localize better. For example, a highly detailed picture of a mailbox varies between a lot of countries; a symbol of an envelope may not, and it's probably more obvious anyway.
Personally, I think a nice middle ground was the original iOS, where you could do cool things like define simple shapes for tab-view icons but have the OS stylize them for you (i.e. a plain white shape would end up with a cool blue gradient and look perfect in the black gradient tab bar, even though the original icon had no gradients or colors or rounded corners). And the UI elements, while sometimes a bit complex, managed to scale just fine between the screen sizes of the time.
comment 10y ago · link · parent
The issues with skeuomorphism occur when the attempt at making a "real life" object imposes restrictions on functionality that would not have existed otherwise. For example:
- Making something look like a "book" causes designers to try too hard to shove things into a two-page view when computers are outstanding at being far more flexible than a book (e.g. multiple resizable columns, scrolling, and so on).
- Making something look like a "dial" just makes it unnecessarily hard to interact with when using a mouse or even a touch screen. Interface elements designed for use on computers are superior.
comment 10y ago · link · parent
I have heard lots of comments about my projects over the years and I have noticed some patterns:
- Negative feedback is usually all you get. You have to motivate yourself by imagining that most people are pretty happy based on downloads/client-count/whatever.
- People aren't good at communicating when they're frustrated but they usually turn into nice people once you've fixed the problem. Most people just have a job to do and a deadline to meet. Pay attention to what they say is wrong, and not their mood.
- Strangely, people will spend great amounts of time writing comments on random web sites or review pages about issues that they will never even E-mail you about, no matter how easy you make it for them to contact you. Therefore, if you really want to get some realistic critiques of your work, you may have to scour the web for them. I look at it this way: real, honest feedback is rare and vital to really understand what you may have overlooked. Even if you can't possibly contact the Random Web Commenter, find and fix their issues and you'll end up with a better product.
comment 10y ago · link · parent
Then you can do interesting things like print a stack trace at a "throw" point if you suspect a problem, or capture a trace into an exception base class in debug modes for printing at catch points, or even as a form of non-crashing assertion to log traces whenever unexpected conditions arise.
comment 10y ago · link · parent
It would be great if consistent interruption could be solved once and for all. In many cases, the presence of sub-processes is essentially an "implementation detail" of the program you're trying to interrupt but you just don't know if the Control-C will work or if the shell will just sit there and hang. And many people are not aware of what shells can do either so they try even more extreme things like closing entire terminal windows to cope.
comment 10y ago · link · parent
They're not rides. We have way, way, way, too many out-of-shape people in the world. There should be every encouragement to take at least a few opportunities to exercise.
Yes, some escalators can be long, such as the ones mentioned in this article. Still not a big deal, I've done it. (And they only "feel" long when you stand the whole way.) If you really want a ride, use an elevator.
comment 10y ago · link · parent
Microsoft is going through a phase of "replace everything, features be damned", prioritizing a fresh coat of paint over features. Applications mysteriously do not work as well as they used to, and yet they still want people to upgrade desperately. It is not an upgrade.
Example: the stupidly simple task of importing photos from an iPhone does not work with the Windows 10 Photos app, even though it did on earlier OS versions. What's worse, the new simplified UI does not do a very good job of explaining anything, it usually just sits there. If they can't foresee users having one of the most popular phones/cameras on the planet, and they break that, what else is broken?
I wanted to believe that Microsoft had changed but they're just getting better at pig lipstick. I'm sorry.
comment 10y ago · link · parent
I have always felt that file extensions make no sense in web pages. Why should I, the visitor, need to be dependent on whether or not you ".asp" or ".php" or ".cgi" or ".flavoroftheweek"? I had a series of bookmarks break entirely because the target site's implementation changed. Fortunately, the site managed to keep all the old root file names so after hacking each bookmarked "/filename.foo" into "/filename.bar", I was able to repair them. (Usually though, that won't work at all. And besides, most people would not even try that, they would assume their bookmarks are lost forever.)
For years at past companies, I put up with corporate E-mails containing literally 12 steps of instructions that say "go to company.net/portal", "click X", "click Y", "click Z", and on and on. Meanwhile I'm thinking: OR, you could invest in a non-crappy content management system that supports URLs of the form "company.net/stable/foobar", allow thousands of employees to click once, go directly to the target and bookmark it forever! Oh, and of course, the pages would change arbitrarily so it didn't even help to save old E-mails with all the instructions.
At the very least, tools should support this. At a previous job, the company overpaid for an "enterprise" bug-tracking system that couldn't even provide "company.net/bugs/123456" for direct-linking to individual bugs, even though this is an obvious case for a stable URL. Returning to any common issue involved an aggravating series of steps every single time.
comment 10y ago · link · parent
If resources are handed out based on how bloated a project is, you would quickly discover how creative developers can be in increasing the relative "importance" of their code.
Systems are composed of lots of things, and sometimes a tiny piece is the most complex and critical. A measure of lines of code should not prevent you from adding 3 more people to a tiny project, and removing a person from a team with a giant code base.
comment 10y ago · link · parent
A shorter function is a great side effect but it should never be the point. I want someone who can do things like: find obsolete code, create a better algorithm, decides on a better language for the task. If I say that a system is bad because it's 200,000 lines, I may discover that developers are really good at removing comments and obfuscating code to "improve" it down to 150,000 lines. If I come up with specific performance improvements, and state clear expectations such as "find functions we never use", I end up with a more maintainable system.
comment 10y ago · link · parent
Another problem is that it is hard to find "complete" games now. Years ago, you could play a game for literally 200 hours and still not see everything. Now, for the same price, you get what feels like about 40% of a real game, and a series of ten-dollar "downloadable contents" fill in the rest of the game that you should have had.
comment 10y ago · link · parent
I think of Twitter as an example of the brevity problem. On the one hand, the size limit has resulted in some very neat tweets that manage to say a lot in a little space. On the other hand, we ended up with things like super-short URLs that completely remove any hint about their meaning in the name of brevity. One limitation managed to both improve and damage at the same time.
comment 10y ago · link · parent
An efficient algorithm may be punished over an inefficient one. An optimal one-liner can certainly cost a lot to develop (maybe you need a smart engineer, a lot of testing and a lot of time to figure it out) yet it would appear to be cheap.
Then there's just textual differences. It depends on the programming language. And it can be different even in the same language...
This function has one line:
void f() { ... }
This function has 5 lines: void
f()
{
...
}
This function has many lines: /*
<several lines of comments>
*/
void
f()
{
...
}comment 10y ago · link · parent
You don't want a culture that only adds features, forever growing the pile. Developers need to be free to identify and aggressively throw out old functions, old tests, obsolete documentation or anything else. This means that a list of deprecated items should be expected in most projects, and mean it when you warn other teams that you plan to completely remove those items in 6 months.
This freedom to delete doesn't mean that total rewrites will be encouraged. Rather, it acknowledges that in an evolving system, some things do become obsolete and mistakes will be found (despite highly competent architects) that ought to be corrected. Ultimately it frees people to easily identify and maintain only what really matters.
comment 10y ago · link · parent
Whenever you find yourself repeatedly running long and awkward commands that you wish were shorter, you ought to think about converting them into an alias or a script.
comment 10y ago · link · parent
The Mac has shown hints of iOS influence when looking at recent changes to NSViewController and the addition of other standard view-controller-based classes.
Realistically, though, I like Apple's separate-but-similar approach. I don't want Mac applications shoehorned in from iOS by lazy developers, I want applications that were actually written for the desktop.
comment 10y ago · link · parent
Entire operating systems contain hacks to work around unfortunately-designed-but-popular applications doing things they shouldn't. Device drivers too. Even the x86 processor specification in some cases is more about "what companies actually do" than "what some document says", because that is the only way things work correctly.
comment 10y ago · link · parent
It is entirely possible to implement a "working" system that will require Herculean efforts to make the slightest change: a system that will collapse in on itself entirely if anything is touched anywhere else. And if you already spent a lot of money to get this far, you may assume a lot more is required to patch it.
Sadly, although we as an industry do know how to build hardened systems that are a lot more likely to adapt with the times and provide stable operation, people outside of the software industry really don't seem to know the difference. And if better software comes at a premium up front, cheap organizations may always pick the lower bid because they're thinking of software like an office chair and not a bridge that's holding up a road.
comment 10y ago · link · parent
Seeing the original code will not necessarily explain old behavior. When you make a copy, how much are you planning to copy? To debug ancient code that calls 5 functions, you might need access to the histories of those 5 functions; and the histories of any functions they call, and heck maybe you only saw correct behavior on a certain OS or with certain input (none of which you may have access to). If you don't have all those histories, the "correct old code" you are looking at may even lie to you, as it suggests it is calling functions you think you are familiar with but those functions have changed in some important way.
After enough time passes — and at the rate this industry moves, time is short — the only thing that really matters is whether or not the program currently does what its current users require. And if it doesn't, you define what behavior you need it to have and find a way to fix it.