|
AggressivelyStupid posted:moral of this story is know how your language works? like, I'm not saying JavaScript is an ideal language, just that maybe if you write code in a language maybe you should understand it first. there is weirdness in Javascript but there is far more consistency than some languages even if it's looseness means thing don't glue together quite as well as you expect them to.
|
# ? Jan 26, 2017 02:42 |
|
|
# ? May 22, 2024 17:32 |
|
I mean that's fair but until MDN there was no good source of documentation.
|
# ? Jan 26, 2017 02:45 |
|
plain javascript is really gross, I prefer to pretend it doesn't exist
|
# ? Jan 26, 2017 02:49 |
|
you really gotta appreciate javascript for what it is and what its become. it's come a long way under some pretty ridiculous constraints.
|
# ? Jan 26, 2017 02:57 |
|
MALE SHOEGAZE posted:you really gotta appreciate javascript no no you do not at all
|
# ? Jan 26, 2017 02:58 |
What's the yospinion on web assembly?
|
|
# ? Jan 26, 2017 03:21 |
|
Maluco Marinero posted:it's only silently demonstrated because the JavaScript language matches arity with no strictness at all, all arguments are always optional. unless you propose to break this sort of fundamental language decision for the sake of a wrapping function. idea: throw out the web and start over
|
# ? Jan 26, 2017 03:44 |
|
Bloody posted:idea: throw out the web
|
# ? Jan 26, 2017 03:50 |
|
it's kind of weird that a module system now exists in Javascript but nobody knows what the native browser implementation will behave like so we have projects with 500 javascript modules, are browsers supposed to load all that poo poo asynchronously or what, nobody knows
|
# ? Jan 26, 2017 04:58 |
|
1. the module system will require that your dependencies be arranged into a DAG, so that the implementation semantics are "concatenate all the modules in toplogical order, and proceed as before" - OR - 2. modules are loaded the first time that anything within them is referenced at runtime judging by the ~javascript community~, which one do you think will happen???
|
# ? Jan 26, 2017 05:03 |
|
BiohazrD posted:i thought about doing that, but you an control all zones, so i could do Amplifier[0].Volume = 50 and have it set all of the zones on the amp. idk, ill gently caress around with it some more for something like that you would have your IEnumerable<Zone> Zones property on your controller that you can go thru to set the same command on all unless I'm missing something you should really ignore amps other than having them linked to the controller to give you their zone lists which you aggregate in the controller. Is there anything the amps do that's special other than give you the zones you actually want to do things to?
|
# ? Jan 26, 2017 06:36 |
|
|
# ? Jan 26, 2017 06:38 |
|
VikingofRock posted:What's the yospinion on web assembly? I was at a Google-hosted summit where a dude (Chandler Carruth) could explain the three primary current research problems in compiler engineering using maybe four slides, and some other guys used something like seventy slides to explain WebAssembly.
|
# ? Jan 26, 2017 07:23 |
|
Athas posted:I was at a Google-hosted summit where a dude (Chandler Carruth) could explain the three primary current research problems in compiler engineering using maybe four slides, and some other guys used something like seventy slides to explain WebAssembly. so it's good
|
# ? Jan 26, 2017 07:54 |
|
Athas posted:I was at a Google-hosted summit where a dude (Chandler Carruth) could explain the three primary current research problems in compiler engineering using maybe four slides, and some other guys used something like seventy slides to explain WebAssembly. is that compiler talk online?
|
# ? Jan 26, 2017 08:23 |
|
sometimes i use node instead of bash
|
# ? Jan 26, 2017 12:32 |
|
i never learned how to do like, any sort of logic in bash and the extraordinary power of pavascript is right there so
|
# ? Jan 26, 2017 12:33 |
|
i ran into a fun ruby thing at work that i wanted to shareRuby code:
|
# ? Jan 26, 2017 13:00 |
|
thats string literal concatenation, C & most of its descendants do it too
|
# ? Jan 26, 2017 13:13 |
|
its so you can go char *a = "this line is really long," " and continues here. " "and still continues";
|
# ? Jan 26, 2017 13:14 |
|
no poo poo, i don't think i've ever run into concatenation without an operator involved
|
# ? Jan 26, 2017 13:26 |
|
Athas posted:I was at a Google-hosted summit where a dude (Chandler Carruth) could explain the three primary current research problems in compiler engineering using maybe four slides, and some other guys used something like seventy slides to explain WebAssembly. everytime i saw one of the talks about wasm half the slides appeared to be dedicated to defending their decision to write the reference implementation in OCaml, and then another third of the slides were dedicated to complaining that they were having trouble getting people to contribute and then that last little sliver was the actual important stuff that sounds kind of alright, but then has weird design decisions like 64-bit signed integers as the largest number type but 32 bit unsigned integers as the largest unsigned integer type. Blinkz0rz posted:no poo poo, i don't think i've ever run into concatenation without an operator involved python does this too. Python code:
|
# ? Jan 26, 2017 13:30 |
|
yeah i realized it exists basically everywhere but i dunno i've never seen anyone use it in practice. imo it's just a Bad Idea.
|
# ? Jan 26, 2017 14:05 |
|
I've only used it for long literal strings that I want to fit indentation structure and need to break on multiple lines.
|
# ? Jan 26, 2017 14:36 |
|
speaking of inheriting things, possibly unwisely, from c, i'll just note: printf("%f\n", atof("3.14")); printf("%f\n", atof("1.2.3.4")); printf("%f\n", atof("monkeys")); 3.140000 1.200000 0.000000
|
# ? Jan 26, 2017 14:37 |
|
CommunistPancake posted:sometimes i use node instead of bash same except Python and it's not sometimes it's always Bash is aggressively bad to write in for me
|
# ? Jan 26, 2017 15:07 |
|
Thermopyle posted:same except Python and it's not sometimes it's always same and i hate python
|
# ? Jan 26, 2017 15:09 |
|
bash scripting is good for very short scripts with no significant logic imo
|
# ? Jan 26, 2017 16:24 |
|
Symbolic Butt posted:bash scripting is good for very short scripts with no logic at all imo
|
# ? Jan 26, 2017 16:29 |
|
VikingofRock posted:The fun javascript thing that I learned today is this masterpiece: well... yeah. if you just pass random functions into map without knowing their signature you deserve what's coming to you.
|
# ? Jan 26, 2017 16:31 |
|
Symbolic Butt posted:bash scripting is good for very short scripts with no significant logic imo im responsible for a 2000 line bash script that runs on mainframes
|
# ? Jan 26, 2017 16:32 |
|
akadajet posted:well... yeah. if you just pass random functions into map without knowing their signature you deserve what's coming to you. ideally an error
|
# ? Jan 26, 2017 16:32 |
|
carry on then posted:im responsible for a 2000 line bash script that runs on mainframes how much do you drink?
|
# ? Jan 26, 2017 17:32 |
|
Symbolic Butt posted:bash scripting is good for very short scripts with no significant logic imo nah, i mean, yes, but you invite a future where complexity keeps building in that script despite the initial wisdom tcl really should have played a far bigger role in the road to modern unix. not only because it was a vastly superior alternative for simple scripts (clean and simple for the truly trivial scripts, while making it possible to do advanced things if needed, but also makes it easy to dress those advanced things in dsl-like simplicity so anyone can update config and launch scripts). but also because tk was somehow as good as unix gui programming got for a long time
|
# ? Jan 26, 2017 17:41 |
|
node.js is our generations aolserver
|
# ? Jan 26, 2017 20:14 |
|
tef posted:node.js is our generations aolserver Keep writing that C you smelly grognard
|
# ? Jan 26, 2017 20:48 |
|
MononcQc posted:I've only used it for long literal strings that I want to fit indentation structure and need to break on multiple lines. i do it all the time for strings i want formatted with no newlines but with newlines in my source code, ie: fun(_) -> "this is a " "string with no newlines " "even tho it's spread " "over multiple lines".
|
# ? Jan 26, 2017 21:00 |
|
http://atp.fm/205-chris-lattner-interview-transcript#rustmemory
|
# ? Jan 26, 2017 23:02 |
|
the talent deficit posted:fun(_) -> burma-shave
|
# ? Jan 26, 2017 23:02 |
|
|
# ? May 22, 2024 17:32 |
|
if you don't write your distributed map reduce scripts in zsh I don't even
|
# ? Jan 26, 2017 23:42 |