Some self humorous coding-love-hate!

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Some self humorous coding-love-hate!

Post by Robin »

coffee wrote:from "A Brief, Incomplete, and Mostly Wrong History of Programming Languages" (http://james-iry.blogspot.com/2009/05/b ... wrong.html"
That's an excellent read, I recommend it to anyone here. I've run across it two or three times before.
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Some self humorous coding-love-hate!

Post by Jasoco »

1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
Perfect.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Some self humorous coding-love-hate!

Post by coffee »

Robin wrote:That's an excellent read, I recommend it to anyone here. I've run across it two or three times before.
So, will Lua have an entry someday? How probably would sound?
Jasoco wrote:
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
Perfect.
I always felt was more important debate the margin distances in punched cards. :)
User avatar
YellowAfterlife
Prole
Posts: 29
Joined: Mon Jan 23, 2012 4:05 pm
Contact:

Re: Some self humorous coding-love-hate!

Post by YellowAfterlife »

nevon wrote:

Code: Select all

> Math.min() < Math.max()
false
Image
Just saying,
Math.min returns +Infinity if given no arguments
Math.max returns -Infinity if given no arguments
That is intermediately logical, and is how you would normally calculate min\max, without adding additional 'if' for zero arguments or undefined argument values.
yal.cc
Contains things I work on. Also gets Love2d examples time to time.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Some self humorous coding-love-hate!

Post by Robin »

YellowAfterlife wrote:Just saying,
Math.min returns +Infinity if given no arguments
Math.max returns -Infinity if given no arguments
That is intermediately logical, and is how you would normally calculate min\max, without adding additional 'if' for zero arguments or undefined argument values.
Yes, but that's not the point. The point is that it is unexpected, counter-intuitive and inconsistent.

Normally, for any number of arguments, the property Math.min(x1, ..., xn) <= Math.max(x1, ..., xn) holds. That is what you expect. The only exception is when n = 0. That's enough to warrant a wat.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 5 guests