Feb. 11th, 2010
God, I'm _so_ not funny this morning
Feb. 11th, 2010 08:19 am
Make your own here. Post them in the comments. Make them funnier than my terrible effort.
via
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
Delicious LiveJournal Links for 2-11-2010
Feb. 11th, 2010 11:01 am-
Nice distinction between passion and obsession
-
They start lying at about 6 months old...
-
Don't be reading the comments...
-
Professor Sanders said: "All the sucecssful nutrition interventions have always been about modifying the food supply rather than changing individual's behaviour."
Charlie Wilson - RIP
Feb. 11th, 2010 02:35 pmIf you haven't seen Charlie Wilson's War, the true story of the Texan Congressman who helped fund the war against the Soviets in Afghanistan in the 80s, then I really highly recommend it.
More here
More here
Thinking about code
Feb. 11th, 2010 03:11 pm If I have a method:
int DoSomething(string someStuff)
{
//Do Stuff
return 42;
}
then effectively I have an unnamed variable that gets set by the return statement, yes?
That being the case, wouldn't it be in some ways clearer to have an explicit, named, variable that gets set instead?
int DoSomething(string someStuff)
{
//Do Stuff
returnValue = 42;
}
where "returnValue" is a keyword that's used to return the value.
As it is I frequently end up with code that creates (or sets) a variable at various points through the code just so it can be returned at the end. Making this an explicit part of the language just makes sense to me.
I assume there are languages out there that do this.
int DoSomething(string someStuff)
{
//Do Stuff
return 42;
}
then effectively I have an unnamed variable that gets set by the return statement, yes?
That being the case, wouldn't it be in some ways clearer to have an explicit, named, variable that gets set instead?
int DoSomething(string someStuff)
{
//Do Stuff
returnValue = 42;
}
where "returnValue" is a keyword that's used to return the value.
As it is I frequently end up with code that creates (or sets) a variable at various points through the code just so it can be returned at the end. Making this an explicit part of the language just makes sense to me.
I assume there are languages out there that do this.