That's an excellent read, I recommend it to anyone here. I've run across it two or three times before.coffee wrote:from "A Brief, Incomplete, and Mostly Wrong History of Programming Languages" (http://james-iry.blogspot.com/2009/05/b ... wrong.html"
Some self humorous coding-love-hate!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Some self humorous coding-love-hate!
Help us help you: attach a .love.
- 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!
Perfect.1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
Re: Some self humorous coding-love-hate!
So, will Lua have an entry someday? How probably would sound?Robin wrote:That's an excellent read, I recommend it to anyone here. I've run across it two or three times before.
I always felt was more important debate the margin distances in punched cards.Jasoco wrote:Perfect.1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
- YellowAfterlife
- Prole
- Posts: 29
- Joined: Mon Jan 23, 2012 4:05 pm
- Contact:
Re: Some self humorous coding-love-hate!
Just saying,nevon wrote:Code: Select all
> Math.min() < Math.max() false
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.
Contains things I work on. Also gets Love2d examples time to time.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Some self humorous coding-love-hate!
Yes, but that's not the point. The point is that it is unexpected, counter-intuitive and inconsistent.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.
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.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests