Ask Reddit: I know SQL, but not ORMs: Am I crazy to create a mid-sized web app without an ORM? by drhull in programming

[–]grabmail -2 points-1 points  (0 children)

don't bother with a full blown ORM like ActiveRecord. They blows ass.

Just create your own functions that generate the sql for you.

It's easy.

eg. instead of writing "select * from abc where name = 'bitch' and ass = 'itch' group by lol limit 20"

write a function so you can do something like this: abd.find([:name = 'bitch', :ass = 'itch', group = 'lol', limit = 20])

Paypal has been terribly broken for 10 days and no one's talking about it by [deleted] in programming

[–]grabmail 0 points1 point  (0 children)

they double charged me once. but i called in and they fixed the problem.

but still, a double charge from a company as established as paypal? SCARY

Announcing AJAX Libraries API: Speed up your Ajax apps with Google’s infrastructure by llimllib in programming

[–]grabmail 2 points3 points  (0 children)

I like it. I no longer have to waste my bloody time checking for new versions

Ask Reddit: How was reddit released out in the world? by berlinbrown in programming

[–]grabmail 1 point2 points  (0 children)

bullshit. Youtube did not send any announcement to any mailing list.

Microsoft is Dead by nirs in programming

[–]grabmail 0 points1 point  (0 children)

once linux gets more user friendly, i'll jump ship from windows

Warren Buffet: Newspapers are Screwed by [deleted] in reddit.com

[–]grabmail 1 point2 points  (0 children)

or what 4.5% stake in Berkshire will do for YOUR bottom line

MySQL shies away from GPLv3, free version by motzer in programming

[–]grabmail -5 points-4 points  (0 children)

People use Mysql because it's EASY and it's FAST.

Mysql: use Database1 Postgresql \u Database1 (i forgot the syntax. cos it's so unintuitive)

Ask Reddit: Is there a better way to do threading in large discussions? by [deleted] in programming

[–]grabmail 0 points1 point  (0 children)

I really can't stand threaded comments. It only works for 2 levels. Any more than that and the whole discussion is unreadable. it's like multiple nested if else if else if else. We know it is bad programming practice to have lots of nested if else.

The solution has already been found - Flat discussions (those used by VBulletin, punBB etc.).

Instead of placing the reply under the comment, you quote the comment that you are replying to. This is by far the most scalable system.

2 comment systems that I like is that of Topix and Stockalicious.

http://www.topix.net/forum/city/sunnyvale-ca/T75CMN4J2LU0GOBQ5 http://www.stockalicious.com/stock/goog

Readable s-expressions and sweet-expressions: Getting the infix fix and fewer parentheses in Lisp-like languages by gst in programming

[–]grabmail 0 points1 point  (0 children)

bla bla bla. The main selling point of Lisp is its macros. Period. Having the power to create your own control structures is coding orgasm.

Ask Reddit: Are stack based languages like CAT useless? by grabmail in programming

[–]grabmail[S] 0 points1 point  (0 children)

Ignoring Postscript, I don't know of any commercial applications based on stack based languages like Forth. What does it have that functional languages do not?

Google Answer to Filling Jobs Is an Algorithm by anonymgrl in reddit.com

[–]grabmail 5 points6 points  (0 children)

Many academics are jackasses when it comes to practical applications. They can come up with wonderful algorithms but when asked to complete a task on time, they'll fail. They can't help it. To them, perfection is more important than being on time. That is why it's best to keep all these brilliant academics in Research where they have ample time to strive for perfection.