News for hackers. Stuff that matters.

drwh0

haskell:

quicksort:

qsort [] = []

qsort (x:xs) = qsort (filter (<= x) xs) ++ [x] ++ qsort (filter (> x) xs)

fib sequence:

fiblist = 0 : 1 : (zipWith (+) fiblist (tail fiblist))

but don't worry, with the rate at which the java kitchen sink swallows more paradigms, this will likely compile in java8 or something

Re:YUI 3.0 PR2 Released on Wednesday December 10, 2008 @12:27AM (#392527)
aka yQuery
Re:"Higher-Order Perl" available for free download on Wednesday December 10, 2008 @12:25AM (#392525)
other than programming perl, this is the only must-read perl book. its a classic.
Re:Review my startup onehub.com on Tuesday December 09, 2008 @11:47PM (#392495)
If you don't have something constructive to say, don't say it.

ESL classes are now being offered in your community

Re:10 Principles of the UI Design Masters on Tuesday December 09, 2008 @11:45PM (#392490)
just remember that the single most impactful, game-changing, and profitable revolution in web uis in the last ten years was the dramatic simplicity of the google homepage...DESIGNED BY TWO UNIX SYSTEMS HACKERS!
Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @11:34PM (#392476)
you can buy an i7-based desktop from dell for $1300, WITH A 24 INCH MONITOR. the i7 is at a minimum more than 200% faster than the mac pro's processors. don't believe me, read tomshardware or anandtech

for $2800 you can get one of the dell gaming i7 boxes that is tricked out far beyond anything apple offers hardware wise, once again, a minimum of 200% performance improvement

the mac math once again does not hold up. and where is their snob appeal? they don't even have an i7 box on the market

Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @11:29PM (#392467)
ask anyone occupational therapist if the apple keyboard is recommended over, say, the kinesis advantage pro. if you aren't using a kinesis or one of its real competitors right now, you are not a "keyboard snob"

the apple keyboard:

- has no discernable key travel

- is not split and contoured

- is too small

its probably the biggest ergonomic nightmare out there. fortunately few people actually use them after buying the computer

Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @11:27PM (#392466)
modu-whaaa? encapsu...lishion???? wow you must be one of them professor types!
Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @11:25PM (#392464)
You want to know how a computer works under the hood, you should prefer OS X

no, i should prefer linux or freebsd, which i do, ON (SANITIZED AND LIBERATED) APPLE HARDWARE.

Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @07:08PM (#392074)
and a really good quicksilver replacement

yeah we call it xmonad. why make keyboard shortcuts a slapped-on app when they can be your entire desktop?

But there is always tons and tons of yak shaving

wtf are you even talking about?

Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @07:04PM (#392067)
not every developer wants to develop on their os

uh....okay-doke

Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @06:14PM (#392005)
I tend to live on the command line so my experience is a bit different.

then why would you go to an OS that mandates the use of the mouse??

Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @06:10PM (#391999)
i also vent on the other hypocrites who piss on people for buying bottled water yet are sure to lease a new mercedes every nine months
Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @05:52PM (#391962)
yes, i get particularly pissed by so-called counter-culture hipsters pissing all over the unwashed masses yet slavishly dedicated to the hypocrisy of crass consumerism when they think its "cool". the appletards go miles beyond any shopping-zombie i can think of in their pursuit of buying shit. and yes, it is shit. its stunning that there are morons buying the new macbooks for $2k!!!...i mean, you have to be braindead.

but the icing on the cake was when i bought the 3rd gen ipod nano. previous ipods were recognized by linux and various tools. but oh no, steve had to encrypt the firmware, thus pointlessly complicating what should be a trivial task - mounting a usb device. WHY???? what do you FUCKING CARE steve that i am trying to plug this into a linux box??? is it a problem that i don't buy into your end-end slavery? i replaced it with a cowon...at least they aren't going out of their way to fuck over users who don't goose-step a certain way

Re:Ask HN: Review my Startup, Entitea on Tuesday December 09, 2008 @05:37PM (#391934)
is it april 1 already? TEA RECIPES????
Re:Review my startup onehub.com on Tuesday December 09, 2008 @05:36PM (#391932)
yet another front end to amazon's cloud. when will it stop?
Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @05:30PM (#391924)
yeah its amazing that apple touts themselves as pro-user but their external keyboards are without a doubt the most craptastic worthless keyboards on the market. they look cool but are utterly useless for prolonged use

and yes apple takes your freedom and will slowly turn you into an idiot. we're software developers damnit, we're supposed to be interested in how the computer works under the hood, not looking to put a gramma-friendly interface on everything. i don't understand developers who look for "just works" at the expense of "show me the code"

Re:Ask HN: Is it worth switching to a Mac? on Tuesday December 09, 2008 @05:26PM (#391914)
no, you are just trading an "uncool" closed platform that bends you over for an apparently "cool" one. their hardware is unimpressive commodity stuff, and i don't even think osx is interesting. if you can't figure out ubuntu, maybe developing software isn't for you. the day is coming when people will reject steve jobs psyco-level control freak pointless upgrade cycle and macs will be uncool again...just get out ahead of the trend now and look that much hipper later.
what netbooks have touch-sensitive screens?
msft, please get in line behind sun's opensolaris, under the sign that says "CAN'T EVEN GIVE IT AWAY"
Re:Start-Up Founders: Take Your Spouse on a Date on Tuesday December 09, 2008 @12:54PM (#391501)
more kindling for the "startup-culture-as-cliche" bonfire
Re:Titanium: An AIR like Open Source app on Tuesday December 09, 2008 @12:07PM (#391448)
yet-another "rich app platform" no one will ever use and no will ever care about
Re:Ask HN: What's your philosophy? on Monday December 08, 2008 @07:25PM (#390659)
you have nine holes. if you can control what goes into them, and what goes out of them, you will be fine
Re:Ask HN: What's your philosophy? on Monday December 08, 2008 @07:24PM (#390655)
do unto others then run like hell
Re:Nativeclient: run x86 native code in Web Applications. on Monday December 08, 2008 @06:35PM (#390591)
shall we call this activeG?
Re:Using an automated day trader to generate income on Monday December 08, 2008 @06:33PM (#390589)
there's an entire street dedicated to people developing trading algorithms...WALL. see: quant funds...whats left of them anyway
Re:Yahoo Plans to Launch a Mail App Platform on Monday December 08, 2008 @04:17PM (#390394)
yahoo should focus on building features into mail that provide real benefit (imaps, better spam detecting, search that actually works) than features no one cares about (reading news in your email screen, more "app" mumbo jumbo)
Re:On Leaky Abstractions and Objective-J on Monday December 08, 2008 @04:13PM (#390390)
wow i seem to have got your irish up. typical fanboy response. this site is full of moonies
Re:On Leaky Abstractions and Objective-J on Monday December 08, 2008 @04:11PM (#390385)
Apple tried Java bindings to Cocoa at one point

oh come on, it is well known that apple intentionally dragged their feet on their java support for years

probably because they realized that as gross as java was, very few people would bother with objective c if they could get first-class support for java on cocoa

Re:On Leaky Abstractions and Objective-J on Monday December 08, 2008 @04:09PM (#390382)
This is almost always an indication that a programming language critic has nothing really thoughtful to say. Same with Lisp and S-expressions.

i didn't mention lisp or s-expressions. of course taste is subjective, but the "objective c is fugly" meme has lots of adherents

Older »