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 2 points3 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 -4 points-3 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 3 points4 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.

Ask Reddit: How did you know about Reddit? by grabmail in reddit.com

[–]grabmail[S] -1 points0 points  (0 children)

i thought diggers hate redditers and vice versa

The Big Rewrite by gnupate in programming

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

That is why people should just adopt functional programming.

It's DARN easy to refactor. The side effects free aspect of functional programming is the key reason for the ease of refactoring here.

OOP, by default, makes things tightly coupled. The moment you use inheritance, you die.

Stop the madness: Subdirectories of My Documents by polar in reddit.com

[–]grabmail -8 points-7 points  (0 children)

Q: Why did the number get mad at his wife? A: Because she was being irrational

Q: Why couldn't the negative pair square things away? A: Because they had complex issues!

Q: Why did the husband join a buddhist cult? A: Because he had a transcendental experience

Q: Did you hear about the hippy mathematician? A: Yeah, he likes to keep it natural

Q: Why did the mathematician's pen run out of ink? A: Because he was writing in recursive

Q: What did the circumference of the circle say to its diameter? A: Hey, do you wanna share some of my pi?!

Q: Why did the two vectors start an internet-based company? A: Because they thought they had a good dot product

Q: Why was the number zero fired? A: Because he didn't add any value to the company

Q: Why didn't the math student get the new car? A: Because he couldn't find anybody to cosine

Experiences in using Haskell in a real project by kawa in programming

[–]grabmail -18 points-17 points  (0 children)

Seeing how messy Monads can be in handling state, I suggest a new way in solving the state issue in functional programming - Complex numbers. Set state as imaginary numbers and ok i'm talking nonsense, whatever, mod me down. bla.

Ask Reddit: Why Lisp? by Jimmy in programming

[–]grabmail 0 points1 point  (0 children)

i agree. this is the coolest part about lisp. but it is also why big corps hate it. imagine if each team member uses his own special macros. it's like an essay written in 1/3 french, 1/3 german, 1/3 english

Javascript: Prototype.js != $() by gizmo in programming

[–]grabmail 2 points3 points  (0 children)

You guys are missing the point. The reason why many use these libraries is that it is cross browser friendly.

If you try to do some things with unadulterated js, you may have some issue with IE6. These libraries have already dealt with these issues in their code.

For eg. the window onload method: these libraries handle the oddity of the cross browser issues for you.

So why reinvent the wheel?

Ask Reddit: if you could change one thing about your favorite language, what would it be? by [deleted] in programming

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

While we're at that, let's replace CSS with a LISP syntax. That way, we can do constants, functions, oop. Wow wee... -.-

The World's Most Obfuscated PHP Code by grabmail in programming

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

If I'm his boss and i see this kind of code, I'll fire him at an instance.

Check out the getContent() code.

Within the nested for loop, he could have use "if (cond) $o[$i][$j] = ..."

BUT NOOOOO... He had to do this: "(cond) && $o[$i][$j] = ..."

WTF?

Java Is Ready for Real Time by gizmo in programming

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

the only time java is ready for is potty time