Better HN
topnewbestaskshowjobs
Log inSign up

rcoder

2,116 karma · joined Aug 14, 2007 (19y ago) · 566 submissions

Submissions

comment 18y ago · link · parent

Let me ask you the following re-factored version of your question and see if it illustrates the value of DRBD:

> What is the advantage of "network I/O" over I/O? It seems to me that file copying is best left below the OS.

Basically, DRBD gives you RAID-like replication of data across multiple physical hosts. This makes deployment of high-availability services stupidly easy, if sometimes less efficient than applicaiton-level replication protocols.

For mail spools, NFS shares, or other simple file-based systems, though, it works pretty well.

comment 18y ago · link · parent

The description of DRBD as software RAID is a bit misleading, since in most deployment scenarios, only the "primary" node of the pair can actually write data to the replicated volume.

It's real use is in building high-availability services -- since the "mirrored" disks aren't in the same box, you can have an up-to-the-second copy of the data there. The two systems don't even have to be in the rack next to each other, which is a tough trick to pull off with normal hardware RAID.

As I said in my other comment, though, it is a lot slower than native disk writes.

comment 18y ago · link · parent

I used DRBD to build a replicated PostgreSQL setup a couple of years ago: http://people.reed.edu/~lennon/scaling.html

It worked pretty well, but the write speed was probably about 1/4 to 1/5 that of a local database. We've sense moved to log-shipping as a replication model.

We do still use DRBD for some replicated NFS shares, and it's proven to be pretty trouble-free. (Knock on wood.)

comment 18y ago · link · parent

I don't think this article would ever have been written by someone with any significant amount of experience writing assembler.

The reasons to move away from low-level machine code and towards high-level languages like Java are numerous (safety, portability, programmer productivity), while the advantages of writing raw assembler basically boil down to two: low-level machine access and performance. The former is only useful to a small number of applications, and the latter is mostly covered by Moore's Law.

SQL, on the other hand, is not itself a low-level language. It has powerful, declarative constructs for efficiently dealing with large datasets, and modern database engines already serve as high-level runtime environments abstracting away the mundane details of page faults, index maintenance, and caching.

comment 18y ago · link · parent

Let me see if I've got this right: you want to open source your code so you can get a bunch of free bug fixes, QA testing, and positive press, and what you're offering in exchange is a crippled, deployment-size-limited version of your package for small teams and other open source projects?

Thanks, but no thanks.

It sounds to me like you simply don't have the resources you need to develop your system, and want to get a bunch of free labor from the OSS community without really opening your code.

If you're going to go open source, you're still going to need folks to do documentation, QA, and marketing. You're still going to have to plan and manage releases. Hell, you're going to have to fight an uphill battle convincing some managers they should pay you for anything when the base product is "free."

Plus, you're going to have a community just itching to fork your product and put you out of business at the first sign of you putting your bottom line ahead of their interests.

Do yourself a favor, and either scale back the scope of your project so it's something you can handle, or find the resources to staff up and finish the damn thing. Then decide if you want to open source the code base. Just don't expect something for nothing.

comment 18y ago · link · parent

This isn't "better" than Single Sign On; if anything, I would call it a complementary, not competitive, technology.

A client certificate is a statement of trust for a particular machine, not a user. They can be very useful when you want to do the equivalent of IP-address restrictions for access to a service, but want to support mobile systems and/or need stronger guarantees than simple IP checking provides.

The biggest problem with client certs, in addition to the "multiple users sharing a machine account" gotcha mentioned in the article's comments, is that there is no "logout" mechanism. I can't let someone else use my machine without logging out of the local account and in to another guest account, because the cert is always going to be presented.

comment 18y ago · link · parent

I just wanted to second this -- getting a UPS Store mailbox is much better than a PO Box, if for no other reason than the fact that you can receive UPS/FedEx/DHL/etc. packages there. The post office won't sign for packages from 3rd-party carriers, so you're out of luck if you want to have anything shipped to your business address of record.

That being said, neither a UPS Store box or a residential address is exactly going to impress folks if they bother to check out your business address before decided to ink a deal with you.

comment 18y ago · link · parent

Going to a small, private college is also a completely different experience than attending a large state school. The entire pedagogical style is difference: small (<15 students) conference courses and one-on-one meetings with profs are the norm, rather than the exception.

I'm not saying that private schools make sense a strict cost/benefit level; if you read my other posts in this thread, you'll see that I'm nearly as dubious as the author of the original article about the real economic benefits of a four-year degree. I just don't think that $200k is an unusually high total cost for four years of college.

comment 18y ago · link · parent

$50,000 per year is not actually that high in the grand scheme of things as a total cost to attend a private college, since most undergrads depend heavily on their parents for financial support.

If you subtract a base tuition of $35,000 from that, you're left with $15,000 per year as total living expenses. That's barely over $1200, and has to cover not only rent and food, but textbooks, computers, and other costs of campus life. Even assuming your kid doesn't do much partying, or need access to a car, $15k is hardly a lavish annual budget.

comment 18y ago · link · parent

I think most of the comments here are missing the key argument in this article: namely that in addition to college being a poor fit for many potential students, there are some much better, more productive ways that young people could spend the time in the years immediately following high school.

The suggestions to encourage your kid to practice one skill, or start a business, are spot-on, at least from an economic POV. Learning a trade and having some business experience are much more effective at increasing your future potential earnings than a liberal arts education.

Personally, I dropped out after my freshman year to go work for a startup I've had a great time working in IT since then, and consistently out-earned my friends who stayed in school, even now that they've had 4-6 years in the workforce to catch up on experience.

That being said, I think that there is still a strong argument to be made for people eventually attending college. I still look forward to college as something I'll do in the future as a sort of "working vacation." I.e., just like faculty take a sabbatical to focus on their research, or spend time with their family, I hope to take a couple of years off to devote myself to intense, full-time study of some subject other than computers.

comment 18y ago · link · parent

I've been following the new Terminator TV series, and still tune in to the local public broadcasting channel for a while when there's a good documentary or news show scheduled, but network TV in general makes me twitchy and angry more than it relaxes me.

If I had cable, I'd probably watch it, but that seems like as good a reason as any not to get it.

comment 18y ago · link · parent

If you like southern Oregon, but want better job options, it's tough to imagine how you could do much better than Portland. There are plenty of big tech employers along the 26 corridor, great mass transit and bike access, and an increasingly-vibrant startup culture.

True, there aren't the same number of overnight paper millionaires being minted as in SF or NY, but you can still house and feed a family on 60K a year.

We've got an up-and-coming restaurant scene, and some of the best beer in the country, too. I find it a pretty nice mix.

It does rain a lot. I'm usually too busy coding, cooking, or biking through traffic to care, though.

comment 18y ago · link · parent

People are social animals. Living and working by yourself 24/7 is a recipe for burn-out, maladjustment, and general unhappiness. I'd recommend finding some ongoing events to draw you out of the house: volunteer with a local charity, or join a programmers' group in your area.

Try to spend at least an hour a day interacting with people you don't see every other day. (I.e., not a live-in significant other or a business partner.)

comment 18y ago · link · parent

I dropped out of college after my freshman year to join a startup. I've been doing programming and general IT work ever since (~8 years).

After taking some more classes part-time, I've probably got about 1/2 the requirements for a degree in mathematics from a couple of different schools, but never seem to find the time to go back full-time and finish it out.

I do work at the college I dropped out of all those years, ago, though.

comment 18y ago · link · parent

I think we're agreeing more than disagreeing here. My assertion was that business domain knowledge and internal workflow were far more important than programming languages or algorithms as a determinant of business success.

Revealing the market niche you hope to fill isn't revealing your secret weapon -- not in the Viaweb/Lisp sense, anyway -- it's giving away free copies of your business plan.

comment 18y ago · link · parent

Personally, I think that you should be worried if you think that secrecy is your best chance at a successful business, at least on the technical side of things. Unless you really, truly employ the best programmers in the world, chances are that you haven't come with anything truly novel, so thinking that you have some "secret sauce" that no one else could replicate is just going to make you complacent and slow.

The things that turn a technically-competent team into a bunch of ass-kicking code-ninjas are good tools, a nimble process (not necessarily XP or "agile programming"), and deep knowledge of the problem domain. None of those are particularly dependent on secrecy, and in this day and age, there's a strong argument to be made for the marketing, recruitment, and simple bogofilter potential of transparency and peer-review.

comment 18y ago · link · parent

You put a lot of thought into how to "get [your] products into schools," and you thought Facebook was the right platform to work with?

If you're just using Facebook as a quick marketing plug to get folks interested in your service, that's one thing. Otherwise, you might want to talk to a lawyer and get them to explain FERPA to you, and check your business for compliance.

I work in IT at a small college, and at least as far as we've been told, no college can allow enrollment records to become visible to anyone not enrolled in or teaching a class. That means that even displaying the current course load for a student is considered a privacy breech for which the college is liable.

Of course, there's also the fact that purchasing decisions at most schools are made on 6-10 year schedules. No responsible administrator is going to gamble on putting key academic resources into a system as new and unproven as Facebook. FB (and the whole FB app ecosystem) have a long way to go to convince anyone that they're in it for the long haul.

comment 18y ago · link · parent

There are a few problems with trying to take on the WebCT/Blackboard gestalt. As others have already mentioned, out-of-the-box integration with ERP systems is a big selling point for the commercial solutions, even though it largely doesn't work. CIOs and other college administrators sometimes don't look beyond the sales pitch, though, so the inflated promises of the sales drones go a long way.

Secondly, many organizations are understandably nervous with hosting core academic resources off-campus. That attitude may shift over the coming years as outsourcing of other systems such as student email becomes more common, but in the meantime, most IT staff in higher education still get squeamish about letting some 3rd party become solely responsible for managing such critical systems. That breaks the usual web startup model of being able to host the app, and forces you to do support for on-site installs.

comment 18y ago · link · parent

Okay, I'll bite...

1. Recursion and cons cells naturally complement one another. They can stand in for n-ary tuples, vectors, and arrays reasonably well for small values of n, and when your dataset gets large, well, you switch to a more efficient data structure. Hell, with Arc you even get 'push' and 'pop' as built-in functions. What exactly is the problem?

2. Again, I don't see how this is a problem. Macros are compile-time rewriting rules. In an eagerly-evaluated language like Lisp, they are pretty much a necessary evil to prevent unnecessary side-effects while still allowing for flexible syntax. I can imagine doing without them in a lazy language like Haskell, but I'm not aware of any popular, lazy languages in the Lisp family.

That being said, I'm interested to know if you've working with other languages where #1 and #2 aren't a problem.

comment 18y ago · link · parent

Disclaimer: it's been >10 years since I did any HyperCard/HyperTalk programming, so I will admit that I may mis-state some of the points below. That being said, HyperCard served as a major training ground for me when I was getting started programming, and I even went so far as to step through a fair bit of the obfuscated stack that made up Myst in order to understand how it had been implemented...

HyperCard suffered from a few obvious problems for larger-scale programming. First, it lacked any support for meaningful code structure and re-use. You didn't so much have functions or procedures so much as you had GOTO statements pointing between cards. For simple logic, that may be fine, but for more complicated workflow, the 1:1 mapping between cards and code blocks, and lack of shared state between them, means that non-trivial apps quickly became a mess of HyperTalk and hackish extensions written in C.

Also, it was tightly tied to a number of MacOS platform technologies; at a minimum, building a full clone of HyperCard would have required re-implementing some analogue to QuickDraw, including (IIRC) some undocumented hooks that the engineers at Apple used into the underlying system.

In the end, though, what probably killed HyperCard more than anything else was the rise of the web browser. Many of the basic operations of a HyperCard stack -- linking between discrete pages of data, providing simple interactive widgets and multimedia, and supporting complex layout of text and images -- are extremely well-supported by graphical web browsers, and the fact that resources are stored on the network mean that you don't have to pass around stacks on disk like you did in the HyperCard days.

That being said, there have been periodic efforts to fill the same niche, without continuing to enforce the more baroque limitations that HyperCard had. PythonCard was a very interesting project, but seems to be pretty much dead at this point.

The [Shoes](http://code.whytheluckystiff.net/shoes/) project seems to be a good bit more active at this point. It's still at a pretty early stage in terms of API stability, but _why is one of the more tenacious programmers out there, and the community that has already sprung up around it is impressive.

comment 18y ago · link · parent

First, I'll second the folks who have already responded by saying that you shouldn't be typing for 15 hours per day. Coding, perhaps, but easily 1/2 or 2/3 of the time you spend programming should be spent thinking, reading code, etc. If you're consistently banging out line after line of new code for >12 hours per day, something is horribly wrong with your workflow, and I can't imagine you're getting much of an opportunity to refactor and test your code as you go.

That being said, I've found that even 8-10 hours of steady typing can be too much for me, unless I'm using an ergonomic keyboard and good office furniture. If you can find any model of keyboard at all that works for you, buy it. Ditto for wrist rests, chairs, monitors, whatever. If it's expensive, make your employer pay for it. No manager worth their salt should look askance at spending $1-2k if it'll keep you in front of the keyboard for even an hour longer per day.

If you're working for yourself and therefore self-imposing these ridiculous hours and spending limits, then stop. Seriously, just stop. Think about whether the payoff is going to be big enough to make crippling yourself for life. Hell, if you're really sitting at a computer for 15 hours a day, you're probably at risk of getting blood clots in your legs from lack of motion. No startup is worth dying over, or even seriously degrading your quality of living in the future.

comment 18y ago · link · parent

This looks suspiciously like an outbreak of common sense amongst the record labels: royalty payments directly to the artists? Free full-length playback of sample tracks, with opt-in for unlimited numbers of plays? Tight integration with iTunes and other music players to track real-time listener data?

On the other hand, this could only come about after the labels had basically neutered independent Internet radio streams with their insane royalty structures. Funneling everything through Last.fm gives them a single entity with whom they can negotiate and from whom they can extort^M^M^M^M^M^M collect payment.

comment 18y ago · link · parent

While I agree that trade schools are a Good Thing &#x99;, I have to respectfully but strongly disagree with your assertion that theory of computation and programming language semantics and implementation are somehow unimportant for any student of programming, whether vocational or theoretical.

True, it may not be terribly illuminating for a game programmer to rigorously prove historical theorems in computability or complexity theory. However, understanding the practical importance of big-O notation, the equivalence of any Turing-complete language, (as well as the lambda calculus, partially-recursive functions, etc.) and compiler design will all be of massive benefit when they're looking to actually distinguish themselves from the rest of the assembly-line game coders.

Overall, though, +1 on the idea of a solid two-year "Computer Programming" degree. Leave CS as a truly academic realm, and give those who are just looking for a solid white-collar career path a respectable path there.

comment 18y ago · link · parent

There are a number of reasons not to put critical business systems on top of EC2.

First and foremost, if you don't have control of who can physically access your hardware, you can't make any real assurances about the privacy and integrity of your data. I don't care how much you trust Amazon with your personal credit card and shipping information -- you are taking a big risk putting your customers' data there, too.

Secondly, EC2 has no SLA at all. Given Joel's (strong) argument about the limited usefulness of SLAs in general, that may not seem like a big deal, but the lack of any firm commitment on Amazon's part pretty much means that you're SOL if there are any major problems.

Finally, EC2 absolutely does not protect you from issues like mis-configured network hardware. Amazon may have incredibly redundant connectivity, including data centers in different geographic regions, but that redundancy doesn't necessarily benefit your virtual machines in the way it does Amazon's core business applications. One VM instance is still tied to one physical box hosting it, and if that box goes down, you'll lose that host and any data it hasn't flushed elsewhere on the network.

That's not to say that EC2 doesn't have its uses; I just couldn't imagine putting your mission-critical apps on it. Stick with prototyping, testing, batch-processing, and the occasional extra capacity for unexpected spikes in load, and you should be fine.

comment 18y ago · link · parent

Actually, MySQL could really use an embedded procedure-writing language. Java wouldn't be the worst choice they could make, especially given the proliferation of other languages implemented atop the JVM -- being able to use JRuby for stored procedures inside a running MySQL instance (with no network I/O or marshalling overhead) would pretty much rock.

Of course, you could also just use Postgres, which already lets you embed your choice of scripting language(s) in the database server...

comment 18y ago · link · parent

I'm going to call BS on this one, for one simple reason: submitting source code to an application is both unlikely to fly with independent developers, and a pretty poor way to protect the underlying platform from malware.

The former is especially obvious in the context of independent OS X developers' love/hate relationship with Apple -- it's a great platform, but if your app proves too popular, Apple is likely to just roll their own version into the next release of the OS, and shove you out of the market. Giving them source code along with the deal is just not a good deal for anyone but the boys in Cupertino.

The second issue is more subtle, but no less important. Manually reviewing millions of lines of code submitted by random ADC members is hardly going to be cost or time-effective for Apple. Also, even if they did decide to eat the cost, it wouldn't work -- even gifted developers have a hard time doing strong security audits of their own code, much less that written by other people.

Overall, it looks like a wishlist, not a feasible leaked outline.

1
1516171819