Shaggar posted:functions are for morons who want to spend the extra effort to make maintainable code without actually making maintainable code.
|
|
# ? May 29, 2012 21:12 |
|
|
# ? May 9, 2024 03:31 |
I still haven’t actually learned Java well enough to do more than a couple hundred lines of programming in it. I don’t dislike Java but I think it is a little over-verbose, it’s become kind of top heavy. So it’s not my first choice, but if I had to write something in Java I wouldn’t go ‘ICK’.
|
|
# ? May 29, 2012 21:24 |
I am sort of gingerly dipping my toes into the waters of Go, Google’s new language… I’ll tell you one concurrency thing I am really pleased by. I have been wondering since about 1971 why nobody took the ball and ran with Hoare’s communicating sequential processes model. So elegant, so pretty, so nice to reason about and 40 years later the Go people picked it up and ran with it. That’s one reason I’m looking at Go. CSP is the basis of their concurrency model in that language which is enough to motivate me to want to look at it some more.
|
|
# ? May 29, 2012 21:25 |
|
Shaggar posted:function pointers make me want to vomit oh yea that reminds me that functions and methods not being first-level objects in java is dumb
|
# ? May 29, 2012 21:25 |
|
Ronald Raiden posted:oh yea that reminds me that functions and methods not being first-level objects in java is dumb why what do you mean you can just make an anonymous inner cl..
|
# ? May 29, 2012 21:26 |
|
Ronald Raiden posted:oh yea that reminds me that functions and methods not being first-level objects in java is dumb murder function objects 2 death.
|
# ? May 29, 2012 21:40 |
|
hey tef i tried searching but what was that joke you RTed about 1980 called, well, actually 1980 passed us a pointer...
|
# ? May 29, 2012 21:42 |
|
standardtoaster posted:Is this accurate? Its not magic, its just mind boggling electrical engineering thats lets you add 0 and 1 together really really fast.
|
# ? May 29, 2012 21:43 |
|
hint: the answer is 1
|
# ? May 29, 2012 21:46 |
|
Shaggar posted:murder function objects 2 death. shaggar how do you feel about other callables that aren't technically functions code:
|
# ? May 29, 2012 21:50 |
|
Sulk posted:I still haven’t actually learned Java well enough to do more than a couple hundred lines of programming in it. so, "hello world"
|
# ? May 29, 2012 21:54 |
|
Lysidas posted:shaggar how do you feel about other callables that aren't technically functions
|
# ? May 29, 2012 21:54 |
|
trex eaterofcadrs posted:why what do you mean you can just make an anonymous inner cl.. yeah shaggar after using closures for a while lemme tell you they're pretty nice and you can name them (in some languages at least) so they really cut down the code without sacrificing clarity still not sold on the pure function approach for general purpose development though
|
# ? May 29, 2012 21:57 |
|
Lysidas posted:shaggar how do you feel about other callables that aren't technically functions ducktyping is cool
|
# ? May 29, 2012 21:58 |
|
shagger doesn't like it but he doesn't actually have a good reason not to like it because functions and callables as first-level objects is actually really handy and hes just shaggering
|
# ? May 29, 2012 21:59 |
|
wahts that have to do with duck typing
|
# ? May 29, 2012 21:59 |
|
ahhh spiders posted:wahts that have to do with duck typing it's a callable because it has the __call__ attribute
|
# ? May 29, 2012 22:00 |
|
looks like a function, quacks like a function
|
# ? May 29, 2012 22:01 |
|
Ronald Raiden posted:shagger doesn't like it but he doesn't actually have a good reason not to like it because functions and callables as first-level objects is actually really handy and hes just shaggering no their code obfuscation for no benefit except maybe typing less code in 1 scenario in which ur probably doing it wrong anyways
|
# ? May 29, 2012 22:01 |
|
if you understand how objects work it actually makes perfect sense!
|
# ? May 29, 2012 22:02 |
|
nope. its bad.
|
# ? May 29, 2012 22:02 |
|
Ronald Raiden posted:it's a callable because it has the __call__ attribute wouldn't that just be operator overloading
|
# ? May 29, 2012 22:02 |
|
Shaggar posted:its bad. don't sign your posts
|
# ? May 29, 2012 22:03 |
|
It is the owningest to pass a function to another function, which then returns another function, which you call. Like _.debounce in underscore.js
|
# ? May 29, 2012 22:03 |
|
javascript has functions which is one way to know that functions are dumb
|
# ? May 29, 2012 22:04 |
|
ahhh spiders posted:wouldn't that just be operator overloading what? idk how operators come into the picture here. functions are equivalent to objects with a __call__ attribute as far as python is concerned, it's not overloading the () operator. Function/methods are just one type of callable. so are ducks. It's p simple. Quack. You could make a duck that was callable and iterable!
|
# ? May 29, 2012 22:04 |
|
lol what are you debouncing in javascript
|
# ? May 29, 2012 22:04 |
|
Sulk posted:I am sort of gingerly dipping my toes into the waters of Go, Google’s new language… I’ll tell you one concurrency thing I am really pleased by. I have been wondering since about 1971 why nobody took the ball and ran with Hoare’s communicating sequential processes model. So elegant, so pretty, so nice to reason about and 40 years later the Go people picked it up and ran with it. That’s one reason I’m looking at Go. CSP is the basis of their concurrency model in that language which is enough to motivate me to want to look at it some more. i realise u just copy pasted this and dont fuckin understand it but csp owns and tony hoare owns and it was done w/ occam 25 years ago h.t.h.
|
# ? May 29, 2012 22:05 |
|
Shaggar posted:javascript has functions which is one way to know that functions are dumb also: "java" in the name, classes, strings as objects with special syntax
|
# ? May 29, 2012 22:08 |
Rufo posted:i realise u just copy pasted this and dont fuckin understand it but csp owns and tony hoare owns and it was done w/ occam 25 years ago h.t.h. take a guess who said it
|
|
# ? May 29, 2012 22:09 |
|
Sulk posted:take a guess who said it lol stopped clock etc i guess
|
# ? May 29, 2012 22:09 |
|
JawnV6 posted:lol what are you debouncing in javascript Well, mouse movement events, for exsmple. Its not debouncing in exactly the same way as some hw driver might debounce a button switch, but
|
# ? May 29, 2012 22:11 |
|
Rufo posted:i realise u just copy pasted this and dont fuckin understand it but csp owns and tony hoare owns and it was done w/ occam 25 years ago h.t.h. The CSP book has a hell of a lot more in it than channels. Channels and processes are just the Pi calculus, CSP has all kinds of useful poo poo in it that no-one seems to be aware of. Shaggar posted:javascript has functions which is one way to know that functions are dumb Javascript functions are actually objects.
|
# ? May 29, 2012 22:36 |
|
Zombywuf posted:The CSP book has a hell of a lot more in it than channels. Channels and processes are just the Pi calculus, CSP has all kinds of useful poo poo in it that no-one seems to be aware of. i know, its one of the few things i actually know anything about
|
# ? May 29, 2012 22:38 |
|
BonzoESC posted:so, "hello world" lol
|
# ? May 29, 2012 22:57 |
|
shaggar what do u think about monads and zygohistomorphic prepromorphisms
|
# ? May 29, 2012 22:58 |
|
sounds bad
|
# ? May 29, 2012 23:07 |
|
shaggar what is the best program ever written
|
# ? May 29, 2012 23:26 |
|
Ronald Raiden posted:what? idk how operators come into the picture here. the function call operator. calling a function is an operation on the function
|
# ? May 29, 2012 23:27 |
|
|
# ? May 9, 2024 03:31 |
Ridgely_Fan posted:shaggar what is the best program ever written Shutdown.exe
|
|
# ? May 29, 2012 23:30 |