|
USSMICHELLEBACHMAN posted:aka normal programmers and female programmers Soricidus fucked around with this message at 10:22 on May 8, 2014 |
# ? May 8, 2014 10:19 |
|
|
# ? May 12, 2024 10:15 |
|
ok so that exam was today and lol a question asking me how occulus rift worked, and the two main reasons why vr headsets cause motion sickness one asking me to talk about the pro/con of the think aloud technique for ui design another asking why a bubblechart was good/bad, another asking what "generalised selection technique" is w.r.t. data analysis it was pretty different from the mock paper
|
# ? May 8, 2014 12:55 |
|
best way to program is in c. any time you need a higher-level language feature implement it in the preprocessor. tada, now you have exactly the suffering you deserve.
|
# ? May 8, 2014 12:58 |
|
Valeyard posted:ok so that exam was today and lol
|
# ? May 8, 2014 12:59 |
|
the human interface barriers of VR is huge even huger than a tv that doesn't make you sick which was pretty huge but the hugest is no one wants to put a box on their face
|
# ? May 8, 2014 21:36 |
|
not true. i had your mom's box on my face last night, had a p good time.
|
# ? May 8, 2014 22:13 |
|
is it wrong that i get frustrated and angry when functions are called without parentheses? i keep losing track of where the arguments are :maddowns:
|
# ? May 9, 2014 15:06 |
|
prefect posted:is it wrong that i get frustrated and angry when functions are called without parentheses? i keep losing track of where the arguments are :maddowns: paging alsod
|
# ? May 9, 2014 15:11 |
|
prefect posted:is it wrong that i get frustrated and angry when functions are called without parentheses? i keep losing track of where the arguments are :maddowns: ur wrong (i feel the same way about functions with parens, they just get in the way. you'll get used to it p quickly if you do any work in non c-langs)
|
# ? May 9, 2014 15:35 |
|
i mean you're already used to it with arithmetic, are you telling me you'd really rather that have a million parens and commas everywhere when you don't need them?
|
# ? May 9, 2014 15:37 |
|
prefect posted:is it wrong that i get frustrated and angry when functions are called without parentheses? i keep losing track of where the arguments are :maddowns: no. method calls should always have parentheses
|
# ? May 9, 2014 15:40 |
|
Shaggar posted:no. method calls should always have parentheses yes, but what about functions?
|
# ? May 9, 2014 15:41 |
|
Shaggar posted:no. method calls should always have parentheses
|
# ? May 9, 2014 15:42 |
|
Shaggar posted:no. method calls should always have parentheses sure i'll give you method calls, but function calls don't need them
|
# ? May 9, 2014 15:43 |
|
parens reduce ambiguity you should always at least have the option of using them.
|
# ? May 9, 2014 15:43 |
|
Bloody posted:parens reduce ambiguity you should always at least have the option of using them. absolutely, reducing ambiguity is the sole purpose of parens
|
# ? May 9, 2014 15:45 |
no parentheses on method calls without parameters is the loving worst aspect of "proper" ruby code
|
|
# ? May 9, 2014 15:45 |
|
MeramJert posted:sure i'll give you method calls, but function calls don't need them yes they should if they are called the same way
|
# ? May 9, 2014 15:46 |
double sulk posted:using ruby is the loving worst aspect of ruby
|
|
# ? May 9, 2014 15:46 |
|
AlsoD posted:absolutely, reducing ambiguity is the sole purpose of parens also grouping. so ig uses parens haves 2 purposes
|
# ? May 9, 2014 15:49 |
|
if your function calls dont have side effects they dont need to be distinguished from values
|
# ? May 9, 2014 15:50 |
|
if they dont have side effects then why bother
|
# ? May 9, 2014 15:56 |
|
Bloody posted:if they dont have side effects then why bother b/c functions sometimes also return a value
|
# ? May 9, 2014 16:00 |
|
Shaggar posted:yes they should if they are called the same way and what if you don't have methods
|
# ? May 9, 2014 16:03 |
|
Currying also reduces the need for parens. In strict languages I tend to still prefer them to properly delimit everything, and argument-free parens-free calls are the worst thing.
|
# ? May 9, 2014 16:04 |
|
MononcQc posted:argument-free parens-free calls are the worst thing. these sound hilarious, like an elder god or something don't say its name!!! if you merely say its name bad things will happen!
|
# ? May 9, 2014 16:06 |
|
are those like properties in python?
|
# ? May 9, 2014 16:11 |
|
AlsoD posted:these sound hilarious, like an elder god or something under some forgotten sunken continent, perl stirs
|
# ? May 9, 2014 16:30 |
|
MeramJert posted:sure i'll give you method calls, but function calls don't need them there's a difference?
|
# ? May 9, 2014 16:38 |
|
MeramJert posted:are those like properties in python? They're like properties in python (given you can do the __get and __set dance) except imagine that all methods that take no argument (other than self) in python are now properties also. object.prop == object.prop() in terms of what it does or gives. Also functions so that if you do 'x = f', it isn't obvious if 'f' represents the variable 'f' or the function call 'f' (equivalent to 'f()').
|
# ? May 9, 2014 16:48 |
|
what if i dont want to assign a function call but instead want to assign a pointer to that function actually i dont think this is a question whatever
|
# ? May 9, 2014 19:44 |
|
heres a question: why should i ever give a single gently caress about functional programming and/or how is it relevant to things i give a single gently caress aobut
|
# ? May 9, 2014 19:45 |
|
Bloody posted:heres a question: why should i ever give a single gently caress about functional programming and/or how is it relevant to things i give a single gently caress aobut in C-langs what FP stuff does is to mean so that you don't have to write your own for-loops every single time i.e. writing (assuming a non-empty array) code:
code:
- clearer (no control flow operatings cluttering things up) - less error prone (less chance of a fat-fingered type) - microscopically more efficient (the java does gcd(numbers[0],numbers[0]) and if you want to stop this you have to write your own bounds which makes it even worse for the above two points) Java8 and LINQ both turn this into a 1-liner by using laziness/first-class functions i.e. functional programming
|
# ? May 9, 2014 19:59 |
|
AlsoD posted:in C-langs what FP stuff does is to mean so that you don't have to write your own for-loops every single time i.e. writing (assuming a non-empty array) actually the first example doesn't make any sense because of garbage syntax.
|
# ? May 9, 2014 20:06 |
|
what does "folder1 gcd" mean?
|
# ? May 9, 2014 20:07 |
|
gently caress i hate javascript
|
# ? May 9, 2014 20:10 |
|
Bloody posted:heres a question: why should i ever give a single gently caress about functional programming and/or how is it relevant to things i give a single gently caress aobut if you learn how to recognize at a glance you can use this power to skip over lovely answers on stack overflown
|
# ? May 9, 2014 20:11 |
|
Shaggar posted:what does "folder1 gcd" mean? foldr1 is Aggregate in C# and reduce in Java except that it uses the first element of the array as the initial value. this avoids needing to explicitly remove it from the stream like this: code:
or just ignoring that premature optimisation like: code:
gonadic io fucked around with this message at 20:22 on May 9, 2014 |
# ? May 9, 2014 20:11 |
|
oh yeah as a bonus the haskell one even short-circuits once you reach a gcd of 1 (depending on how you define gcd) if you think that this could be a problem due to your gcd function's side effects being executed an unknown number of times then oh ho ho the problem isn't with fold/reduce/aggregate
|
# ? May 9, 2014 20:15 |
|
|
# ? May 12, 2024 10:15 |
|
and this isn't even getting started on how stuff like immutable data, option types and declared side-effect free code is becoming more and more common in most langs
|
# ? May 9, 2014 20:17 |