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

I would say you can't have mastered a language without significant knowledge of its standard library (if any).

comment 17y ago · link · parent

I tried this a few days ago, and it's really quite well done. In addition to the controls, it is very useful for natively viewing H.264 on YouTube.

2403.

ClickToFlash for control over Flash content (Mac)(rentzsch.github.com ↗)

4 points · by makecheck · 17y ago · 2 comments

comment 17y ago · link · parent

This is a tough question to ask accurately.

What you'd really want to know is who uses an OS by choice, subtracting all other factors (e.g. if you're only using an OS because it runs some app that your work requires). There are plenty of reasons anyone might be using several different systems.

In my case, I use 3 different OSes. My only Windows machine is at work; and while I use it for occasional development for Windows, it is mostly a dumb terminal to access a Linux box. At home, I use a Mac by choice, but I can also use it to access Linux at work. Am I a "Windows user" if I visit HN from work? Well, I'd rather not be counted as one.

comment 17y ago · link · parent

- How do they come to respect or disrespect someone in this role?

Earn respect by investing not only in your product, but in your programmers. If you're a carpenter, you'd think your boss was crazy for asking you to drive nails without hammers or a nail-gun; and yet, this is how programming environments sometimes operate, causing consternation.

Earn disrespect by treating programmers like cogs. Do not ever assume that you can simply replace one programmer with another; there is an absolute chasm between the skills of the best and the worst. One way to judge your programmers is in adaptability; do they at least seem willing to tackle anything you throw at them, or do they not really have a clue how to start most of your ideas?

- How can I best approach a software engineer with an idea?

Do not make any assumptions about how simple the implementation could be. There are hard things that sound easy, and vice-versa. At the same time, be prepared to deconstruct your idea to say "well what if we only did X and Y"; you may be surprised how different the answer is.

- What can a business type do to build trust with a programmer?

Be detailed; communicate without filters. There's nothing worse than being asked to drop everything to provide one or two tidbits of information "immediately", only to find out later that the wrong question was being asked and that the priority wasn't really accurate. Heck, if you have to tell the programmer your 3-year plan for the product, do it; that may affect how the implementation proceeds.

Be flexible. Programmers will be productive at the weirdest times. If you see someone who comes in late and works for 12 hours straight, then takes a day off, they could still be the most productive software developer you've ever seen. Even if we aren't actively working on an idea in front of a computer, we are often putting it together in our heads. Perception is not reality in most cases. Having said that, do demand evidence (simple documentation, occasional updates, and definitely prototypes).

- What motivates programmers? Success? Personal fulfillment? Money?

I want to feel like my projects are useful. I want to have the freedom to design, and not feel "stuck" with any bad decisions.

Money is only important enough for me to live comfortably (I don't need a mansion or a yacht). On the other hand, if it became clear that someone who contributed very little was going to be showered with millions from my ideas, I'd definitely want my cut.

- How do software engineers perceive business types?

As a necessary evil. :) Software is relatively easy to distribute, so there isn't much to prevent people from acquiring your product. On the other hand, there is a lot to prevent them from finding products, so marketing is quite important. Not being sued is important. :)

comment 17y ago · link · parent

There are a lot of people working in the computer industry, and it moves much faster than other industries. This is why 10 years seems like an eternity for users to accept no real advancement.

Then again, if you aren't really into computers, and just use them, you might look at it as a tool like any other. My car is 10 years old, there are probably people at Ford who hate that I still have it, but I don't yet see a reason to change it.

Similarly, while I'm very aware of how the actions of one dominant company (Microsoft) have made the computing industry practically stand still, I am also mostly aware of this because I'm in that industry. There could be a Microsoft of vacuum cleaners, that has kept us away from truly great cleaning machines for the past 50 years, and I wouldn't know. People don't generally have the time, or take the time, to figure out which products could be truly great for them.

comment 17y ago · link · parent

The article mentions that the OS and shell matter, but I think this is mainly due to differences in the behavior of "echo". The "printf" program is at least consistent.

What actually matters for this is the declared terminal type, and the terminal program you're using.

In this case, the article uses sequences I don't recognize and doesn't specify what terminal is supposed to support them. None of their echoes work for me.

But perhaps a more common and supported approach is xterm:

- use a terminal program that supports and declares the right type, e.g. "xterm-color"

- use xterm-style title sequences, and "printf" to print them, such as:

  printf "\033]; `pwd` \007"

comment 17y ago · link · parent

Games are still mostly Windows, even if the most popular ones are on the Mac; this is due to volume, developer support (e.g. DirectX), and the sheer variety of machine configurations that are open to dedicated gamers.

Businesses are also still mostly Windows, and a lot of people need to do work-related things at home. Sadly, you still can't reasonably get work done at a lot of companies unless you have Windows for connecting to some backwards application or server from your company.

Finally, many Macs are also Windows PCs. It's not clear if their survey took virtualization into account, or if any respondents were confused about how to answer (is a Mac that runs Windows a Windows PC or not?).

comment 17y ago · link · parent

You can go to your profile and click the link next to "saved:". It shows whatever you've upvoted or submitted, I believe.

comment 17y ago · link · parent

"fork() allows the ability to do anything before exec()..."

That is not entirely true. See the "CAVEATS" section of "man fork".

comment 17y ago · link · parent

If I can see what a person is doing, I don't necessarily care what they call themselves.

However, in my experience, once a person has chosen to accept an overly-important title, their value to the organization is severely diminished.

What seems to happen is that people are first promoted to practical positions, like Manager. But after awhile, upper management figures out that they have too many managers. There's some unwritten rule that seems to prevent the layoff of managers. So they hold onto the over-promoted people; but out of some need to avoid bruising egos, they never suggest demoting them to where they would be the most useful. Instead, the managers are "reassigned", and a fancy new title is born.

But I've seen firsthand the big problem with this. After awhile, there are plenty of projects that require Just Programmers, and they are understaffed. You often have 3 or 4 figureheads (er excuse me, Chief Worldwide Technology Strategist Architect Artisan Leads), who you know possess the knowledge to help you, if they would only accept being Just Programmers. But they won't, because their job is some pointless paper-shuffling thing that keeps them far away from code.

If any of you is ever in a position where your title seems to be the most important part of your job, please do your organization a favor and either accept demotion gracefully or quit.

comment 17y ago · link · parent

Ah, I eventually figured this out (if anyone is curious), by crawling the Python source tree to find this executable.

It is little more than a program with a main() function that calls Py_Main(arg, argv) (defined in <Python.h>). I was able to create my own program like this, and solve the problem.

comment 17y ago · link · parent

Yes, I think so.

I recently had to explain to someone what "_" means in Perl (not to be confused with $_ or @_). It was simple for me to answer, because I had the experience. But someone seeing it for the first time wouldn't exactly be able to Google it, or look it up in a man page; who would think to look for it under "perldoc -f stat"? What's more, this particular short-cut, while useful, has a side effect: if someone maintaining the code inserts a stat on a different file in between the original stat and the "_", then the source of the "_" changes. For a single character in a script, that's a heck of a lot of barriers for a new programmer.

comment 17y ago · link · parent

The original version of this strategy is sane, but it has to actually be followed. And in every "implementation" I have seen, it was not.

The critical part of this strategy is continuous improvement: to not only rank existing employees and lay off some, but to hire new ones. The NET should be no real change in numbers, but an increase in overall quality.

But guess what. Companies invariably failed to do the 2nd, and simply used this as a nifty new way to decide layoffs, during a hiring freeze. The result is predictable: a productivity and morale drain. What did they think was going to happen, that making teams smaller would magically make the remaining people more productive? Let's see: of the people left, the ones who then seem "relatively" productive are just those that didn't lose as many team members; there is no further indicator of who is actually most valuable. But that didn't mean that layoffs stopped: no, the next rounds simply started cutting to the bone.

2415.

Ask HN: Mac Python "Build Applet": how does it work?

3 points · by makecheck · 17y ago · 1 comment

comment 17y ago · link · parent

I specifically mentioned images that really were displaying instantly, prior to fancy UI. In other words, the page did not require the fancy UI, but one was added because someone thought it would be cool. And the result was a less optimal experience.

Web site maintainers should be keenly interested in what their visitors think. But apparently, honesty only loses me points.

comment 17y ago · link · parent

Of course, the goal should be to eliminate all sources of slowdown from one's web page.

I especially hate seeing progress indicators for things that "used to" be fast, if only they weren't ajaxified. The classic case being the pop-up image browsers, because it's so much more fun to watch a spinning icon than to actually see my images instantly.

comment 17y ago · link · parent

It seems to me like a big part of this would depend on a stable foundation. And in the software world, that foundation shifts a lot. Last I checked, no one in the industry had come together and agreed on a list of programs that would never be changed again. And even if you could stabilize it all, how long would it be before you're forced to port it to new hardware?

The moment anything shifts, any validation work you've done is called into question. Okay, for 30 seconds, your program was proven correct; but how about now? Did the change cause a problem? And how, exactly, would you detect it, without repeating the validation entirely?

To me, this does underscore the importance of keeping programs small, stable, and well understood. If anyone's bragging about how many millions of lines of code they have, as Microsoft put in a bullet point for Windows once, they should not be considered serious programmers. The bigger something is, the less it takes to introduce one of these unvalidated quirks.

comment 17y ago · link · parent

I can see the point of the writer; but at the same time, if I was double-full-screening, as shown in the post's screenshots, I would choose to hide the menu bar too! (For instance, I can double-full-screen terminals, and set the menu bar to auto-hide.)

If I'm not in pure full-screen mode, I actually find it distinctly un-Mac-like to force windows to use up every last pixel of space. That's kind of the point...the Mac's document-centered focus, ability to hide apps, use Exposé, and yes, menu bar, make it far easier to have 12 completely unrelated things open and use them effectively (compared to Windows and the Linux window managers I know about, anyway).

One tidbit people might not notice, is that the OS lets windows "stick" to the top of the screen; this works both under the menu bar and under the top "edge" of your 2nd display. So it's pretty easy to arrange windows anyway.

comment 17y ago · link · parent

You're using a site that has an FAQ. :) And when I look at what's in HN's FAQ, I don't think I'd want all that information on the front page.

On the other hand, there are changes that could be useful. For instance, "rules about submissions" could be on the Submit page, and "rules for comments" could appear when actually commenting. A lot of the other things could be written or linked from a user's profile page.

comment 17y ago · link · parent

He is focused on browser market share, when ironically that is precisely what's forced Google into this position. If IE6 wasn't a ridiculous percentage of the market, its brokenness wouldn't matter enough for another company to fix it.

Google doesn't care whose browser is used, they care about a sane foundation on which to deploy web apps. Steve shouldn't sound so hurt, it's not as if the entire industry hasn't been "asking nicely" for years to have IE catch up. They can't cry now that someone has taken them by force.

Steve also goes into all the wonderful things happening in IE8 and beyond. And they're irrelevant, for the same reason: IE6 is still the breaking point. Any "innovation" in IE that doesn't come in the form of a free update to IE6 that works on XP, doesn't matter.

comment 17y ago · link · parent

It's funny how much you can see in a few screenshots.

The neglect of UI issues is apparent. I'm really surprised that, with the tiny displays of the day, people weren't outright demanding a more space-efficient UI. It's incredible that so much space could be wasted in windows and menus, with so little actual content. Meanwhile, lots of screen space reserved for company logos, copyrights, scary legalese, and ads.

comment 17y ago · link · parent

Exactly right.

It'd been awhile since I downloaded Java, and I hadn't known about the Great SE/ME/EE switchover™ at the time. I literally stared at their web pages, navigated all over the place, and I couldn't figure out which version I should have. Sun (excuse me, Oracle) needs a big fat "Download Java 1.7" button, that has everything. They should fire everyone else in their marketing department.

comment 17y ago · link · parent

I think it's a good thing to have these abstractions available, and as the article notes it's better to keep these at a high level. It's not a call to extend the CSS specification or to add support for abstractions in browsers.

I have always found it easier to avoid bugs when parsers are dealing with canonical forms. In other words, make the browser support the absolute minimum syntax required to achieve every effect in CSS. Anything that's merely "syntactic sugar" should be handled at higher levels, and then "compiled down" into raw CSS.

This restriction not only makes it easier for browsers to agree, but it means that you're only likely to find quirks in your higher-level tools: which, importantly, are outside the end user's domain. Bad tools can be replaced, or you can adjust your flow to insert post-processing steps that fix the output. You don't need as many "debugging tools" because you can simply examine the generated files to tell if something was interpreted correctly (whereas, if a browser isn't seeing things the way you think, good luck figuring that out without extra tools).

comment 17y ago · link · parent

American Express recently added these "3 questions" to my account, and it made me very mad. For one thing, their "request" was persistent; it eventually wouldn't let me log in until I provided them, so they were really a requirement. "For security", of course, even though there's evidence [1] they make security worse.

To make it more insulting, though, I discovered that the implementation was very dumb:

1. The questions were fixed, and extremely stupid. Any of them could probably be guessed by someone with a few minutes to Google.

2. The question lists were too short, making it difficult to pick a really hard-to-guess answer.

3. The lists were unique to each question. So if I saw 2 questions I liked in the first slot, I could choose only one of them, and if the 2nd slot had completely inane options, I had to choose one of the inane options.

4. The last question didn't even offer options that applied to me. So suddenly, for "security", I had to remember which unrelated question I selected, and which made-up response I provided. Thanks a hell of a lot, AE.

[1] http://www.schneier.com/blog/archives/2009/05/secret_questio...

comment 17y ago · link · parent

The VPN has always been available, but I have only used it extensively in recent years. It probably helps that teams are now spread further around the world, because it has forced people to restructure their work to deal with large gaps in communication. We'd already been sending messages and waiting hours for a reply, so people no longer expect to be in constant contact. So I didn't really have to convince anyone, I just reminded key people that I do work at home a lot, and to call me by cell when necessary.

Though, I've seen certain managers have a real problem with people working at home, and they even managed to fire people based apparently on that. Fortunately, those managers are no longer here, because that same intolerance made them ineffective managers.

comment 17y ago · link · parent

I'm reminded of programming, and how code comments don't always describe what the code does. Trying something really is often the only way to know if it does what you want.

So perhaps Apple should have a "try" feature: to download something you have to "pay" for it, but you have a short grace period (say, 10 minutes) in which to decide to completely "scrap" the application. If you scrap it, you aren't charged for it, and you can never use it again. This allows people to never be fooled into paying for something they discover they don't like.

comment 17y ago · link · parent

A couple of observations.

One, Apple originally proposed that developers write web-based apps for the iPhone, because there was no SDK. There was no explosion of apps that day. The explosion came with the SDK and the App Store.

Two, games are a huge percentage of apps, and while some games can run in a browser, many of the best will not. It's a combination of processing power, control, and "bare metal" (like it or not, a browser is a huge abstraction layer that is not good for games).

So I don't doubt they can create some app market by pushing in this direction, but aren't they missing the clues that have been left for them already?

comment 17y ago · link · parent

I feel the same way.

It's funny you mentioned working-from-home companies, because that's exactly how I deal with this problem. :) And it's something everyone should ask about at an interview; these days, a company had better cough up a VPN to hire me.

It's simple: I know that I'll think of something at midnight on a Wednesday, and want to log in to flush it out (or sometimes, when I wake up on Sunday). So I work at home at least half the time; and if I'm feeling even slightly lacking in energy, I don't even bother logging in. I know that eventually the drive will return (probably later that afternoon or evening). I have a cell phone, I check E-mail and office voice mail now and then. And I've been finishing at least as much every week as I did years ago when I was in the office all day long, except I'm a lot happier.

comment 17y ago · link · parent

I actually don't think that free software has been mired by rigid views. It's simply been a terminology war from the beginning, that the FSF has generally lost: every time they coin a term, its meaning is completely confused by something else.

Just look at the hijackings. How many people really know that most of the components of what's called Linux have actually been destined for an OS called GNU, which has a different kernel (HURD)? How many people think free software refers to $0.00? And most important of all, how many people must still think that free and open-source are the same thing?

Free software has earned the undeserved reputation of being incompatible with businesses, when the reality is that it doesn't prevent anyone from selling anything. I suppose, like any gesture of trust, no one wants to be first: which business will "risk" opening up all its code for competitors to essentially learn from without reciprocating? The reality is different: not only would the business be able to tap into thousands of GPL'd projects without having to write its own code, but it would be able to benefit from code reviews, fixes, and new contributions. If any competitors did steal the code, the GPL requires the competitor to open everything up in return. These restrictions are really not that unreasonable for software companies, who you'd think would want to produce high-quality software for the lowest possible cost.

1
808182
98