|
Here's an enterprising fellow with one separate NPM module for each individual ANSI colour code.
|
# ? Feb 16, 2017 20:42 |
|
|
# ? May 26, 2024 14:45 |
|
Finally get to play with hardware and at a great workplace. I start off fixing bugs from production, mostly. We have a C++ layer that talks to the hardware and C# uses that abstraction to actually handle events. Many of these are async void, or actually return a task but aren't awaited. So now I play whack-a-mole with that. Anyone here experienced with tasks/await/async in C# got anything to say except "thou shalt not loving use async void except for message handlers"?
|
# ? Feb 16, 2017 20:42 |
|
Doom Mathematic posted:Here's an enterprising fellow with one separate NPM module for each individual ANSI colour code. jfc look at all this poo poo just to support literally one line of js https://github.com/jonschlinkert/ansi-gray
|
# ? Feb 16, 2017 20:48 |
|
carry on then posted:pflang hungry, gotta find my wife and
|
# ? Feb 16, 2017 20:53 |
|
crazypenguin posted:these package manager styles are incompatible. Mostly it's deficiencies in rpm/apt.
|
# ? Feb 16, 2017 20:56 |
|
Finster Dexter posted:jfc look at all this poo poo just to support literally one line of js lol. he could have just made ansi-const-and-utils.js or something instead but nope, gotta inflate that package count. surely my 1100th 1-line library will earn me the job of my dreams.
|
# ? Feb 16, 2017 21:00 |
|
gotta keep my electron app lean and mean by only importing the colours I need
|
# ? Feb 16, 2017 21:08 |
LeftistMuslimObama posted:lol. he could have just made ansi-const-and-utils.js or something instead but nope, gotta inflate that package count. surely my 1100th 1-line library will earn me the job of my dreams. i am contributing to the javascript community
|
|
# ? Feb 16, 2017 21:10 |
|
Space Whale posted:Anyone here experienced with tasks/await/async in C# got anything to say except "thou shalt not loving use async void except for message handlers"? if you're aware of this basic fact, you already know more than most people do about async. most people just throw asyncs and awaits in until the red squigglies go away
|
# ? Feb 16, 2017 21:21 |
|
but yeah use ConfigureAwait(false) unless you can't, and if you don't have to do anything else after awaiting an async call, you can just return that task instead of making this method async. that's the stuff i have to keep explaining to my coworkers
|
# ? Feb 16, 2017 21:22 |
|
Space Whale posted:Finally get to play with hardware and at a great workplace. hardware stuff is fun except when it's not but congrats on your new job
|
# ? Feb 16, 2017 21:24 |
|
GameCube posted:but yeah use ConfigureAwait(false) unless you can't, and if you don't have to do anything else after awaiting an async call, you can just return that task instead of making this method async. that's the stuff i have to keep explaining to my coworkers what does that ConfigureAwait(bool) actually do, I tried reading the msdn page and i don't get it
|
# ? Feb 16, 2017 22:17 |
|
i loving hate php so god drat loving much, and i wasted an entire day on frustrations of the value of a constant giving me back the name of the constant instead of the value assigned to it
|
# ? Feb 16, 2017 22:40 |
|
great, vmware ate the disk image for the vm i need for my project. so now instead of working on my project ill probably spend the rest of the week rebuilding the vm.
|
# ? Feb 16, 2017 22:42 |
|
Finster Dexter posted:jfc look at all this poo poo just to support literally one line of js Wow I wonder where this idiot is a- OH NO
|
# ? Feb 16, 2017 22:58 |
|
Ciaphas posted:what does that ConfigureAwait(bool) actually do, I tried reading the msdn page and i don't get it the single parameter passed to it is continueOnCapturedContext. the context that is being captured is the current SynchronizationContext. a synchronization context ***approximately*** maps to a thread, but this is just a simplification. when an asynchronous task finishes, the runtime needs to know what to do next. if you're using async/await, "what to do next" is the rest of your method after the await keyword. the runtime also needs to know what synchronization context to run that code on. if continueOnCapturedContext is true (the default), the current synchronization context is stored on the task and the runtime will use that to continue execution. for example, if you do work on the ui thread and use async/await, the rest of your method will continue on the ui thread after the asynchronous task completes. this is a reasonable default. if continueOnCapturedContext is false, execution will continue on any old thread. this is important in library code where you don't know what the caller is doing and don't want to introduce deadlocks if they're doing something stupid.
|
# ? Feb 16, 2017 23:04 |
|
that is way more in depth than i've ever given thought re: async/await, sheesh
|
# ? Feb 16, 2017 23:12 |
|
Bognar posted:if continueOnCapturedContext is false, execution will continue on any old thread. this is important in library code where you don't know what the caller is doing and don't want to introduce deadlocks if they're doing something stupid. so the same reason they removed dispatch_get_current_queue from Darwin
|
# ? Feb 17, 2017 00:55 |
Finster Dexter posted:jfc look at all this poo poo just to support literally one line of js lmao jesus christ
|
|
# ? Feb 17, 2017 02:12 |
|
Cocoa Crispies posted:
its still a node/npm poo poo fest but you dont have to wrangle babel and all that poo poo.
|
# ? Feb 17, 2017 02:14 |
|
Lol why are PHP tutorial series still coming out Like oh boy finally I can learn laravel
|
# ? Feb 17, 2017 02:17 |
|
Finster Dexter posted:jfc look at all this poo poo just to support literally one line of js lol @ javascript forever.
|
# ? Feb 17, 2017 02:19 |
|
label the gently caress out of that boolean argument imo
|
# ? Feb 17, 2017 02:19 |
|
i got a dumb erlang/elixir question for a side project i have a supervisor that manages transient workers (simple_one_for_one). a task gets started, eventually finishes but may take a while, and if it dies it should get restarted. when a task is started i shove it in a db, when the task finishes it gets removed from the db. i want to have something read in the db entries when the supervisor is started and start the workers, but I'm not sure how to do a thing whenever a supervisor starts. what's the best way of doing this?
|
# ? Feb 17, 2017 03:12 |
|
LeftistMuslimObama posted:i just got an email from hr. my transfer was approved! i will apprise you of my figgies once they call me. congratulations! welcome to official terrible programming!
|
# ? Feb 17, 2017 03:29 |
|
Finster Dexter posted:jfc look at all this poo poo just to support literally one line of js reminds me of that stupid loving Bitcoin "pay for code" startup that wants to individually sell bytes
|
# ? Feb 17, 2017 03:31 |
|
hackbunny posted:so the same reason they removed dispatch_get_current_queue from Darwin I thought that got removed because the only thing people ever used it for didn't actually work or ?
|
# ? Feb 17, 2017 03:38 |
|
hackbunny posted:so the same reason they removed dispatch_get_current_queue from Darwin less "removed" (lol bincompat) and more like "got ever more aggressive about telling people not to use" dispatch is really, really good, I want to be able to use it in Common Lisp but cl-dispatch needs some work and CFFI also needs some work to make it easier to bridge <dispatch.h> into Common Lisp fortunately if I hack on cl-dispatch it might be feasible for me to go through my employer's process to contribute my fixes
|
# ? Feb 17, 2017 03:40 |
|
pokeyman posted:I thought that got removed because the only thing people ever used it for didn't actually work well it let you submit work on a queue that wasn't yours (and so you had no idea if it was serialized, parallelized, at what priority it ran, for how long etc.). a little like the .net thing
|
# ? Feb 17, 2017 03:52 |
|
Arcsech posted:i got a dumb erlang/elixir question for a side project supervisor should kick off a process to do that thing
|
# ? Feb 17, 2017 04:47 |
|
Arcsech posted:i got a dumb erlang/elixir question for a side project supervisor -> [ gen_server that manages the db entries and starts workers, supervisor -> [ worker, worker, worker ] ]
|
# ? Feb 17, 2017 06:52 |
https://twitter.com/revskills/status/832410305078689792
|
|
# ? Feb 17, 2017 08:57 |
|
the talent deficit posted:supervisor -> [ gen_server that manages the db entries and starts workers, supervisor -> [ worker, worker, worker ] ] may want to swap that order around so the supervisor is there when the gen_server starts. Also could use a rest_for_one strategy so the server can die, but if the supervisor chokes, it forces a restart of the server as well
|
# ? Feb 17, 2017 14:38 |
|
MononcQc posted:may want to swap that order around so the supervisor is there when the gen_server starts. Also could use a rest_for_one strategy so the server can die, but if the supervisor chokes, it forces a restart of the server as well so if I have something like sup1 -> [sup2->[workers], initialization_server] sup2 is guaranteed to be started before initialization_server? also thanks all this is really helpful
|
# ? Feb 17, 2017 19:31 |
|
Arcsech posted:so if I have something like Yeah. That's part of the implicit guarantees of the supervision tree. Order is depth-first. The initialization_server can only run without sup2 in the case where both sup2 and intialization_server are under the same supervisor under a one_for_one supervision scheme and sup2 has crashed. If you need the dependency to be absolute (never happens, even with restarts and failure), rest_for_one or all_for_one will take care of that (aside from the failure detection delay).
|
# ? Feb 17, 2017 20:19 |
|
oh cool so one person approves transfers, but a different person entirely is responsible for then staffing the transferee to a team and they cancelled all their meetings today. so i am simultaneously approved to transfer and yet not transferring. i dont know why i expected hr to be anything but a loving joke at this company.
|
# ? Feb 17, 2017 20:31 |
|
hackbunny posted:well it let you submit work on a queue that wasn't yours (and so you had no idea if it was serialized, parallelized, at what priority it ran, for how long etc.). a little like the .net thing there's also the problem of that there isn't actually a singular "current queue"
|
# ? Feb 17, 2017 21:02 |
|
MononcQc posted:Yeah. That's part of the implicit guarantees of the supervision tree. Order is depth-first. The initialization_server can only run without sup2 in the case where both sup2 and intialization_server are under the same supervisor under a one_for_one supervision scheme and sup2 has crashed. otp is so fukken good also thanks monocqc, i should just buy a copy of your book already and stop asking stupid questions in the terrible programmers thread. LeftistMuslimObama posted:oh cool so one person approves transfers, but a different person entirely is responsible for then staffing the transferee to a team and they cancelled all their meetings today. so i am simultaneously approved to transfer and yet not transferring. i dont know why i expected hr to be anything but a loving joke at this company. yo it sucks that you're getting jerked around right now but I just want to say I'm supper happy your transfer got approved and you'll be in a good place long-term
|
# ? Feb 17, 2017 21:05 |
|
spent most of the day killing myself on sql queries to return values i can store in a local object because the preprocess function i have to call must have that value, cant directly read it from the variable because value assignment occurs immediately after the preprocess during execution, but can read in sql query results. at this point i can get my variable value in one query and the rest of the query built and working separately but when i try to combine the two it bombs out and its driving me mad this is the most convoluted bullshit to what should be a simple problem
|
# ? Feb 17, 2017 22:19 |
|
|
# ? May 26, 2024 14:45 |
|
well, im free of the non stop stream of enterprise gibberish. hello job insecurity of a startup
|
# ? Feb 18, 2017 01:28 |