subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programmingcirclejerk | MCRusher | g5vkuji | <|sols|><|sot|>I write a lot of C and lately I've been using 'bool' as my error handling type. This probably sounds stupid to many people, but I'm a minimalist. If a function has an error -> return false.<|eot|><|sol|>https://news.ycombinator.com/item?id=24526296<|eol|><|sor|>when ur too smart for errno<|eor|><|sor|> //assumes errno is threadlocal, (standard behavior)
#include <errno.h>
#define EXNONE 0
//winapi defines 15,999 error codes
// so I'm exceeding that by a bit
#define EXGENERIC 24001
#define try errno = 0;if(1)
#define catch(E) if(errno == E)
#define nocatch(E) if(errno != E)
//doesn't catch builtin ERRNO values
#define catchany if(errno >= EXGENERIC)
#define catchnone if(errno < EXGENERIC)
#define throw errno =
Hold your applause, no need to thank me.<|eor|><|eols|><|endoftext|> | 15 |
programmingcirclejerk | fp_weenie | g5trjyv | <|sols|><|sot|>I write a lot of C and lately I've been using 'bool' as my error handling type. This probably sounds stupid to many people, but I'm a minimalist. If a function has an error -> return false.<|eot|><|sol|>https://news.ycombinator.com/item?id=24526296<|eol|><|sor|>I wish you could just return, say an integer, and you could just evaluate it as either true (if it was an error code), or false (if it was successful), in a simple way. Btw, what is this bool type he is talking about?<|eor|><|sor|>> Btw, what is this bool
mathematicians gatekeeping just looking to look smart.<|eor|><|eols|><|endoftext|> | 15 |
programmingcirclejerk | chajath2 | g5t8lir | <|sols|><|sot|>I write a lot of C and lately I've been using 'bool' as my error handling type. This probably sounds stupid to many people, but I'm a minimalist. If a function has an error -> return false.<|eot|><|sol|>https://news.ycombinator.com/item?id=24526296<|eol|><|sor|>Make sure to name the receiving variable 'ok' and gophers will love you<|eor|><|eols|><|endoftext|> | 14 |
programmingcirclejerk | jonnywoh | g5uho0j | <|sols|><|sot|>I write a lot of C and lately I've been using 'bool' as my error handling type. This probably sounds stupid to many people, but I'm a minimalist. If a function has an error -> return false.<|eot|><|sol|>https://news.ycombinator.com/item?id=24526296<|eol|><|sor|>I wish you could just return, say an integer, and you could just evaluate it as either true (if it was an error code), or false (if it was successful), in a simple way. Btw, what is this bool type he is talking about?<|eor|><|sor|>[deleted]<|eor|><|sor|>[And FileNotFound](https://thedailywtf.com/articles/What_Is_Truth_0x3f_)<|eor|><|eols|><|endoftext|> | 12 |
programmingcirclejerk | FuzzyErmine | g5u1415 | <|sols|><|sot|>I write a lot of C and lately I've been using 'bool' as my error handling type. This probably sounds stupid to many people, but I'm a minimalist. If a function has an error -> return false.<|eot|><|sol|>https://news.ycombinator.com/item?id=24526296<|eol|><|sor|>[deleted]<|eor|><|sor|>/uj
what is a gopher? I've been seeing it a lot but it's hard to google slang like that<|eor|><|sor|>someone who uses go.<|eor|><|eols|><|endoftext|> | 12 |
programmingcirclejerk | appropriate-username | g5u59p1 | <|sols|><|sot|>I write a lot of C and lately I've been using 'bool' as my error handling type. This probably sounds stupid to many people, but I'm a minimalist. If a function has an error -> return false.<|eot|><|sol|>https://news.ycombinator.com/item?id=24526296<|eol|><|sor|>I wish you could just return, say an integer, and you could just evaluate it as either true (if it was an error code), or false (if it was successful), in a simple way. Btw, what is this bool type he is talking about?<|eor|><|sor|>[deleted]<|eor|><|sor|>Ah a quantum programmer in the wild.<|eor|><|eols|><|endoftext|> | 11 |
programmingcirclejerk | fp_weenie | g5trod3 | <|sols|><|sot|>I write a lot of C and lately I've been using 'bool' as my error handling type. This probably sounds stupid to many people, but I'm a minimalist. If a function has an error -> return false.<|eot|><|sol|>https://news.ycombinator.com/item?id=24526296<|eol|><|sor|>[deleted]<|eor|><|sor|>> Rustsexuals love to overengineer things with their enum bullshit
It's because they are ivory tower elitists, excited by pie-in-the-sky plans when they could simply use blue-collar wisdom.<|eor|><|eols|><|endoftext|> | 10 |
programmingcirclejerk | ws-ilazki | hd1rze | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|eols|><|endoftext|> | 153 |
programmingcirclejerk | ws-ilazki | fvijl22 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|soopr|>From "lol no generics" to "oh no, generics :("<|eoopr|><|eols|><|endoftext|> | 137 |
programmingcirclejerk | logicchains | fvitex8 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Somebody should tell this guy about Rust. It's a little known fact that Rust doesn't in fact support any kind of generics or polymorphism, as it only allows writing code one way: the right way. Generics implies multiple possible instantiations of a function, which clearly isn't necessary when there's only one correct one.<|eor|><|eols|><|endoftext|> | 62 |
programmingcirclejerk | Vaglame | fvimsda | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|soopr|>From "lol no generics" to "oh no, generics :("<|eoopr|><|sor|>What will become of r/pcj now that Go has generics?<|eor|><|eols|><|endoftext|> | 59 |
programmingcirclejerk | camelCaseIsWebScale | fvirfbm | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|soopr|>From "lol no generics" to "oh no, generics :("<|eoopr|><|sor|>What will become of r/pcj now that Go has generics?<|eor|><|sor|>We can change background music of pcj to lol if err ! = nil<|eor|><|eols|><|endoftext|> | 53 |
programmingcirclejerk | logicchains | fvj5jy4 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Somebody should tell this guy about Rust. It's a little known fact that Rust doesn't in fact support any kind of generics or polymorphism, as it only allows writing code one way: the right way. Generics implies multiple possible instantiations of a function, which clearly isn't necessary when there's only one correct one.<|eor|><|sor|>Funny you should mention this, [the next Rust breakthrough](https://github.com/rust-lang/rust/pull/69749) is actually related.<|eor|><|sor|>I heard Rusk is getting a new feature from Haskell."
"Wow, is it finally getting HKT?"
"Nope, it's borrowing that killer GHC feature of generating slower code by not always monomorphising generic functions!"<|eor|><|eols|><|endoftext|> | 52 |
programmingcirclejerk | ws-ilazki | fviu6rq | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|soopr|>From "lol no generics" to "oh no, generics :("<|eoopr|><|sor|>What will become of r/pcj now that Go has generics?<|eor|><|sor|>Generics would bring Go closer to the epitome of morality, but it's still not there yet.<|eor|><|sor|>lol no algebraic data types<|eor|><|soopr|>This but unironically.<|eoopr|><|eols|><|endoftext|> | 45 |
programmingcirclejerk | JameslsaacNeutron | fvit68y | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|soopr|>From "lol no generics" to "oh no, generics :("<|eoopr|><|sor|>What will become of r/pcj now that Go has generics?<|eor|><|sor|>Generics would bring Go closer to the epitome of morality, but it's still not there yet.<|eor|><|sor|>lol no algebraic data types<|eor|><|eols|><|endoftext|> | 41 |
programmingcirclejerk | ProfessorSexyTime | fvinja3 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>I'm sure we'll hear about Gophers complain about `void**` sometime in the near future if Google decides to try and put down the "lol no generics" meme.
/uj
> I really enjoy Golang for implementing network services
Unironically the only think I've heard anyone use Go for professionally.
(Though I know one of you fuckers will link to some random ass company that uses Go professionally for something other than networking services.)<|eor|><|eols|><|endoftext|> | 37 |
programmingcirclejerk | UsingYourWifi | fvj9vv3 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Somebody should tell this guy about Rust. It's a little known fact that Rust doesn't in fact support any kind of generics or polymorphism, as it only allows writing code one way: the right way. Generics implies multiple possible instantiations of a function, which clearly isn't necessary when there's only one correct one.<|eor|><|sor|>Funny you should mention this, [the next Rust breakthrough](https://github.com/rust-lang/rust/pull/69749) is actually related.<|eor|><|sor|>I heard Rusk is getting a new feature from Haskell."
"Wow, is it finally getting HKT?"
"Nope, it's borrowing that killer GHC feature of generating slower code by not always monomorphising generic functions!"<|eor|><|sor|>> monomorphising
Your microaggressions are not appreciated here.<|eor|><|eols|><|endoftext|> | 36 |
programmingcirclejerk | logicchains | fvit9d3 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Lol no c11 `_Generic`.<|eor|><|eols|><|endoftext|> | 29 |
programmingcirclejerk | logicchains | fvjdlk2 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Somebody should tell this guy about Rust. It's a little known fact that Rust doesn't in fact support any kind of generics or polymorphism, as it only allows writing code one way: the right way. Generics implies multiple possible instantiations of a function, which clearly isn't necessary when there's only one correct one.<|eor|><|sor|>Funny you should mention this, [the next Rust breakthrough](https://github.com/rust-lang/rust/pull/69749) is actually related.<|eor|><|sor|>I heard Rusk is getting a new feature from Haskell."
"Wow, is it finally getting HKT?"
"Nope, it's borrowing that killer GHC feature of generating slower code by not always monomorphising generic functions!"<|eor|><|sor|>> monomorphising
Your microaggressions are not appreciated here.<|eor|><|sor|>>microaggressions
Over here in the Gopher community we much prefer microaggressions over macroaggressions, thank you very much. Macros are evil, and lead to unreadable, impossible to maintain code.<|eor|><|eols|><|endoftext|> | 29 |
programmingcirclejerk | camelCaseIsWebScale | fvispk5 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>> Slashdot
/uj
Compared to comments on slashdot, proggit and HN are 100x sane. 50% of comments on Slashdot are factually wrong.<|eor|><|eols|><|endoftext|> | 27 |
programmingcirclejerk | TheLastMeritocrat | fvj4141 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Somebody should tell this guy about Rust. It's a little known fact that Rust doesn't in fact support any kind of generics or polymorphism, as it only allows writing code one way: the right way. Generics implies multiple possible instantiations of a function, which clearly isn't necessary when there's only one correct one.<|eor|><|sor|>Funny you should mention this, [the next Rust breakthrough](https://github.com/rust-lang/rust/pull/69749) is actually related.<|eor|><|eols|><|endoftext|> | 25 |
programmingcirclejerk | Volt | fvivxzz | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>> Slashdot
/uj
Compared to comments on slashdot, proggit and HN are 100x sane. 50% of comments on Slashdot are factually wrong.<|eor|><|sor|>You mean BSD *isn't* dying?<|eor|><|eols|><|endoftext|> | 25 |
programmingcirclejerk | ws-ilazki | fviuub5 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|soopr|>> > How about inheritance?
> No. Learn interfaces. Next question
Same guy, different part of the discussion. Slashdot isn't active enough to call this a jerk gold mine, but there's some high-quality material in what little activity is there.<|eoopr|><|eols|><|endoftext|> | 24 |
programmingcirclejerk | OctagonClock | fvix1pe | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>I'm sure we'll hear about Gophers complain about `void**` sometime in the near future if Google decides to try and put down the "lol no generics" meme.
/uj
> I really enjoy Golang for implementing network services
Unironically the only think I've heard anyone use Go for professionally.
(Though I know one of you fuckers will link to some random ass company that uses Go professionally for something other than networking services.)<|eor|><|sor|>May I present docker. Tru tho all I see is back end services for go<|eor|><|sor|>Docker is just HTTP really, everything is powered by cgroups<|eor|><|eols|><|endoftext|> | 19 |
programmingcirclejerk | kredditacc96 | fviohix | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|soopr|>From "lol no generics" to "oh no, generics :("<|eoopr|><|sor|>What will become of r/pcj now that Go has generics?<|eor|><|sor|>Generics would bring Go closer to the epitome of morality, but it's still not there yet.<|eor|><|eols|><|endoftext|> | 18 |
programmingcirclejerk | logicchains | fvj7rxh | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Somebody should tell this guy about Rust. It's a little known fact that Rust doesn't in fact support any kind of generics or polymorphism, as it only allows writing code one way: the right way. Generics implies multiple possible instantiations of a function, which clearly isn't necessary when there's only one correct one.<|eor|><|sor|>Funny you should mention this, [the next Rust breakthrough](https://github.com/rust-lang/rust/pull/69749) is actually related.<|eor|><|sor|>I heard Rusk is getting a new feature from Haskell."
"Wow, is it finally getting HKT?"
"Nope, it's borrowing that killer GHC feature of generating slower code by not always monomorphising generic functions!"<|eor|><|sor|>lmao.
I will use this comment as yet another evidence of why *trained* AI will always be shit.<|eor|><|sor|>Because when people use the trained AI to generate romantic novels starring themselves and Ferris the Crab, mention of Rust's lack of HKT will keep popping up and spoiling the mood? As it's impossible to generate a large enough training data set on Rust without also picking up mentions of its inadequacies.
* Lower-kinded types
* Non-variadic generic functions
* Skippable destructors
* Namespace-free package names
* Non-dependent types
* Types non-extensible outside their own package
* Zero support for Rob-Pike-Driven-Development<|eor|><|eols|><|endoftext|> | 18 |
programmingcirclejerk | TimmyTree17 | fvitnxt | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>I'm sure we'll hear about Gophers complain about `void**` sometime in the near future if Google decides to try and put down the "lol no generics" meme.
/uj
> I really enjoy Golang for implementing network services
Unironically the only think I've heard anyone use Go for professionally.
(Though I know one of you fuckers will link to some random ass company that uses Go professionally for something other than networking services.)<|eor|><|sor|>May I present docker. Tru tho all I see is back end services for go<|eor|><|eols|><|endoftext|> | 17 |
programmingcirclejerk | TheLastMeritocrat | fvj60m8 | <|sols|><|sot|>If they add generics I'll probably just stick to C for new projects.<|eot|><|sol|>https://developers.slashdot.org/comments.pl?sid=16608548&cid=60207082<|eol|><|sor|>Somebody should tell this guy about Rust. It's a little known fact that Rust doesn't in fact support any kind of generics or polymorphism, as it only allows writing code one way: the right way. Generics implies multiple possible instantiations of a function, which clearly isn't necessary when there's only one correct one.<|eor|><|sor|>Funny you should mention this, [the next Rust breakthrough](https://github.com/rust-lang/rust/pull/69749) is actually related.<|eor|><|sor|>I heard Rusk is getting a new feature from Haskell."
"Wow, is it finally getting HKT?"
"Nope, it's borrowing that killer GHC feature of generating slower code by not always monomorphising generic functions!"<|eor|><|sor|>lmao.
I will use this comment as yet another evidence of why *trained* AI will always be shit.<|eor|><|eols|><|endoftext|> | 14 |
programmingcirclejerk | BarefootUnicorn | eq1u0l | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|eols|><|endoftext|> | 153 |
programmingcirclejerk | BarefootUnicorn | fen1s9k | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|soopr|>And a *great* day for PCj
Rust is *unsafe* at any speed. Back to "C" for me.<|eoopr|><|eols|><|endoftext|> | 127 |
programmingcirclejerk | duckbill_principate | fenfile | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>> what if some foundational package uses `unsafe`, but uses it incorrectly?
Imagine building your entire language and ecosystem around safety but ultimately being unable to provide any better guarantees than a 3,000 dependency Node app.<|eor|><|eols|><|endoftext|> | 93 |
programmingcirclejerk | i9srpeg | fenlck4 | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>> what if some foundational package uses `unsafe`, but uses it incorrectly?
Imagine building your entire language and ecosystem around safety but ultimately being unable to provide any better guarantees than a 3,000 dependency Node app.<|eor|><|sor|>Imagine worrying about a few lines of unsafe code in your web framework while running on millions of lines of C code with kernel priviledges. Redox better not be using any `unsafe` code, or we'll have to start stalking its authors!<|eor|><|eols|><|endoftext|> | 74 |
programmingcirclejerk | SEgopher | feo63nt | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>Those sad misguided fools. If only they had listened to the commander. "Dependencies are bad", he said. "Dependencies make you reliant on code you haven't read, don't control, and are fundamentally a part of your application as much as the code you write", he said. The commander commanded, and they disobeyed.
But did the crab shills listen? No, they put their little crab heads in the sand. "Cargo will save us", said the crabs. "Our language is safe by design", they said. Now they are in the boiling water, with the left pad Javascripter webshits, because some angsty snake oil salesmen sold them to a seafood restaurant.
Let this be a lesson that the only truly moral language is Go. So say I, SEGopher, a Go shill.<|eor|><|eols|><|endoftext|> | 70 |
programmingcirclejerk | hedgehog1024 | feoaiuo | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>Those sad misguided fools. If only they had listened to the commander. "Dependencies are bad", he said. "Dependencies make you reliant on code you haven't read, don't control, and are fundamentally a part of your application as much as the code you write", he said. The commander commanded, and they disobeyed.
But did the crab shills listen? No, they put their little crab heads in the sand. "Cargo will save us", said the crabs. "Our language is safe by design", they said. Now they are in the boiling water, with the left pad Javascripter webshits, because some angsty snake oil salesmen sold them to a seafood restaurant.
Let this be a lesson that the only truly moral language is Go. So say I, SEGopher, a Go shill.<|eor|><|sor|>This is a suspiciously generic complaint for a gopher<|eor|><|eols|><|endoftext|> | 70 |
programmingcirclejerk | defunkydrummer | fenfus7 | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>>The Rust subreddit has ~87,000 subscribers,
Considering the bare minimum PCJ member is an 10xer, this means we compare favorably, with ~303,740 subscribers.
>And, for a while, the Rust reddit was a decent place.
Kurabu-Nikku doesn't realize all the decent Rust developers have moved to PCJ, the only moral community.
>Reddit whips itself into a frenzy. Lots of ugly things are said.
Wow, what a toxic community!!<|eor|><|eols|><|endoftext|> | 66 |
programmingcirclejerk | Karyo_Ten | feoullx | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>[deleted]<|eor|><|sor|>And is working at Microsoft, full-time on the framework AFAIK and it is used internally.
I'm pretty sure he is using the language properly since the very nosy Rust compiler didn't complain. But he forgot that `unsafe` is a level 9 spell that also summons an angry population and equips it with legendary pitchforks.<|eor|><|eols|><|endoftext|> | 62 |
programmingcirclejerk | i9srpeg | fenl11p | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|soopr|>And a *great* day for PCj
Rust is *unsafe* at any speed. Back to "C" for me.<|eoopr|><|sor|>10xers (like me) don't use Rust because of safety. All my Rust code is wrapped in `unsafe`, because I never felt the need to write memory safety bugs anyway. I use Rust because it has algebraic data types, modules, move semantics, trait-based generics, and pattern matching, unlike C and C++.<|eor|><|sor|>10xers (like me) don't use Rust.<|eor|><|sor|>> 10xers (like me) don't use Rust.
So you mean you don't enjoy:
- Fearless concurrency
- Threads without data races
- Move semantics
- Pattern matching
- Type inference
- Trait-based Generics
- Efficient C bindings
#?<|eor|><|sor|>I've neveder used
- Fearless concurrency
- Threads without data races
- Move semantics
- Pattern matching
- Type inference
- Trait-based Generics
- Efficient C bindings
and I've never missed them.<|eor|><|eols|><|endoftext|> | 55 |
programmingcirclejerk | defunkydrummer | fenk3mk | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|soopr|>And a *great* day for PCj
Rust is *unsafe* at any speed. Back to "C" for me.<|eoopr|><|sor|>10xers (like me) don't use Rust because of safety. All my Rust code is wrapped in `unsafe`, because I never felt the need to write memory safety bugs anyway. I use Rust because it has algebraic data types, modules, move semantics, trait-based generics, and pattern matching, unlike C and C++.<|eor|><|sor|>10xers (like me) don't use Rust.<|eor|><|sor|>> 10xers (like me) don't use Rust.
So you mean you don't enjoy:
- Fearless concurrency
- Threads without data races
- Move semantics
- Pattern matching
- Type inference
- Trait-based Generics
- Efficient C bindings
#?<|eor|><|eols|><|endoftext|> | 51 |
programmingcirclejerk | joppatza | feo4fqc | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>\>checks frontpage
\>A Sad Day for Rust - /r/rust
\>checks pcj
\>A Sad Day for Rust - green stickied
Dammit, why the fuck does this one make me laugh
---
Can we have an Unsafe Field Agent Generals? It's a team that would exert a policy where for every unsafe uttered on this sub the user gets a one day ban to discourage them using such *vile* word (of course this comment is just a proposal so it doesn't count).
I mean think of the children of the future when they would eventually discover Rust (as prophesied by TRPL), they were happy writing *fast* and *safe* code and then accidentally browsed some random subreddit and then that ONE WORD, ONE FUCKING WORD, `unsafe` projected into their pure little eyes.
The next thing you know they would discover the cursed Rustonomicon, they realized that using this `unsafe` thing could make the program *even faster* but as they were kids they'd be pretty naive so they might unknowingly generated a little UB here and there. And these things add up you know? But most importantly, they just *unknowingly* disregarded morality. I can't even begin to imagine what that would cause. A world full of UB, crashes left and right, *zero* morality.
I really, really, don't want to live in such dystopian future.
It would start from this little sub, and then hopefully to another sub, another website, and finally the whole internet.
The linked blogpost is just a little taste of what happened because we didn't start soon enough. Don't wait until it's too late.<|eor|><|eols|><|endoftext|> | 46 |
programmingcirclejerk | defunkydrummer | fenl81m | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|soopr|>And a *great* day for PCj
Rust is *unsafe* at any speed. Back to "C" for me.<|eoopr|><|sor|>10xers (like me) don't use Rust because of safety. All my Rust code is wrapped in `unsafe`, because I never felt the need to write memory safety bugs anyway. I use Rust because it has algebraic data types, modules, move semantics, trait-based generics, and pattern matching, unlike C and C++.<|eor|><|sor|>10xers (like me) don't use Rust.<|eor|><|sor|>> 10xers (like me) don't use Rust.
So you mean you don't enjoy:
- Fearless concurrency
- Threads without data races
- Move semantics
- Pattern matching
- Type inference
- Trait-based Generics
- Efficient C bindings
#?<|eor|><|sor|>I've neveder used
- Fearless concurrency
- Threads without data races
- Move semantics
- Pattern matching
- Type inference
- Trait-based Generics
- Efficient C bindings
and I've never missed them.<|eor|><|sor|>This just in: New feature set for Rust 2020
- Fearless concurrency
- Threads without data races
- Move semantics
- Pattern matching
- Type inference
- Trait-based Generics
- Efficient `unsafe` bindings<|eor|><|eols|><|endoftext|> | 39 |
programmingcirclejerk | asantos3 | fendymx | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|soopr|>And a *great* day for PCj
Rust is *unsafe* at any speed. Back to "C" for me.<|eoopr|><|sor|>10xers (like me) don't use Rust because of safety. All my Rust code is wrapped in `unsafe`, because I never felt the need to write memory safety bugs anyway. I use Rust because it has algebraic data types, modules, move semantics, trait-based generics, and pattern matching, unlike C and C++.<|eor|><|sor|>10xers (like me) don't use Rust.<|eor|><|eols|><|endoftext|> | 37 |
programmingcirclejerk | liveoneggs | fencrkf | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>are you kidding? the HN comments for this are *AMAZING* https://news.ycombinator.com/item?id=22075076<|eor|><|eols|><|endoftext|> | 36 |
programmingcirclejerk | spookthesunset | fen47i2 | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|soopr|>And a *great* day for PCj
Rust is *unsafe* at any speed. Back to "C" for me.<|eoopr|><|sor|>C has macros which are post hoc ergo propter hoc insecure. With its elegant error handling and pragmatic lack of generics, Go is the modern language for new projects.<|eor|><|eols|><|endoftext|> | 36 |
programmingcirclejerk | defunkydrummer | fenhehs | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>are you kidding? the HN comments for this are *AMAZING* https://news.ycombinator.com/item?id=22075076<|eor|><|sor|>Find specific jerkable content and post to PCJ please. It's your **moral** duty to do it!!<|eor|><|eols|><|endoftext|> | 32 |
programmingcirclejerk | defunkydrummer | fenk9y7 | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>> what if some foundational package uses `unsafe`, but uses it incorrectly?
Imagine building your entire language and ecosystem around safety but ultimately being unable to provide any better guarantees than a 3,000 dependency Node app.<|eor|><|sor|>> Imagine building your entire language and ecosystem around safety
What, you don't like [safe Rust arithmetic](https://www.reddit.com/r/LispMemes/comments/brlww5/lisp_cheetsheet_for_crabmen/)?<|eor|><|eols|><|endoftext|> | 31 |
programmingcirclejerk | hedgehog1024 | feo9udu | <|sols|><|sot|>A Sad Day For Rust<|eot|><|sol|>https://words.steveklabnik.com/a-sad-day-for-rust<|eol|><|sor|>Could someone tl;dr this for me so I can skim through it? The teenage angst vibe is triggering me.<|eor|><|sor|>tl;dr:
Orange crab
BAD<|eor|><|eols|><|endoftext|> | 31 |
programmingcirclejerk | CaptainShawerma | dv8ahi | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|eols|><|endoftext|> | 155 |
programmingcirclejerk | Gobrosse | f7b6zc3 | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I intentionally introduce use-after-free bugs so that I can write exploits later in my own time and sell these on the black market. Helps with paying rent<|eor|><|eols|><|endoftext|> | 125 |
programmingcirclejerk | i_like_trains_a_lot1 | f7b9x8w | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I intentionally write my code as complex and as incomprehensible as possible so that no other developer can work on it and I am the only one that knows what is going on. Guaranteed job for life. But after a few months I can't keep track of what is going on so I quit and get a new job.<|eor|><|eols|><|endoftext|> | 77 |
programmingcirclejerk | AprilSpektra | f7b98bu | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>As my name is Haskell, I program only in Clojure.<|eor|><|eols|><|endoftext|> | 49 |
programmingcirclejerk | irqlnotdispatchlevel | f7bdozx | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>one funny thing about me is that my code is very concise, fast and robust. all my colleagues call me "10xer" LOL it's so embarassing<|eor|><|sor|>The worst thing about this is that 10xer is not a valid variable name.<|eor|><|eols|><|endoftext|> | 43 |
programmingcirclejerk | AsmCoder110 | f7b7p0b | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I intentionally introduce use-after-free bugs so that I can write exploits later in my own time and sell these on the black market. Helps with paying rent<|eor|><|sor|>How immoral! How immoral!<|eor|><|eols|><|endoftext|> | 42 |
programmingcirclejerk | statistmonad | f7bebeo | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>My last name is Fassword so I use that as the root password on all the machines I orchestrate. So quirky xD.<|eor|><|eols|><|endoftext|> | 40 |
programmingcirclejerk | r2d2_21 | f7bhyx7 | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>> I quickly dropped all my "quirks" after joining serious project with pull requests that require at least 2 approves to get merged.
lol what a wage slave<|eor|><|eols|><|endoftext|> | 40 |
programmingcirclejerk | KerTakanov | f7bhlun | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I intentionally write my code as complex and as incomprehensible as possible so that no other developer can work on it and I am the only one that knows what is going on. Guaranteed job for life. But after a few months I can't keep track of what is going on so I quit and get a new job.<|eor|><|sor|>Are you my co-worker?<|eor|><|eols|><|endoftext|> | 34 |
programmingcirclejerk | andiconda | f7bdaov | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I like to misspell words. Like instead of a class called SerialConnection, I'll say SreialCoection.<|eor|><|eols|><|endoftext|> | 31 |
programmingcirclejerk | BarefootUnicorn | f7bded7 | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>My name is Rusty, so I was born to be a Rust programmer.
My friend David Heinemier Hansson Jingleheimer Schmidt only programs in Jingleheimer. Go figure!<|eor|><|eols|><|endoftext|> | 28 |
programmingcirclejerk | HINDBRAIN | f7bkt7n | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>one funny thing about me is that my code is very concise, fast and robust. all my colleagues call me "10xer" LOL it's so embarassing<|eor|><|sor|>The worst thing about this is that 10xer is not a valid variable name.<|eor|><|sor|> var xer = 300 000;
SyntaxError: illegal character
Damn. At least 0Xer is valid...<|eor|><|eols|><|endoftext|> | 27 |
programmingcirclejerk | hedgehog1024 | f7beir3 | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>As my name is Haskell, I program only in Clojure.<|eor|><|sor|>Yes, officer, that person over here.<|eor|><|eols|><|endoftext|> | 26 |
programmingcirclejerk | Kekskamera | f7b6zio | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I strictly name.all variables alphabetically, in order of me thinking of them. doesn't matter what it is for. so if I have a for loop somewhere at the beginning, I use a as a counter.<|eor|><|eols|><|endoftext|> | 21 |
programmingcirclejerk | ProfessorSexyTime | f7bgj95 | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I'm a Lisp weenie.<|eor|><|eols|><|endoftext|> | 18 |
programmingcirclejerk | Gobrosse | f7blh4o | <|sols|><|sot|>What are your programming quirks? For example, as my name is Kay, every time i want to write a variable named key, i use kay<|eot|><|sol|>https://www.reddit.com/r/webdev/comments/dv7aia/what_are_your_programming_quirks/<|eol|><|sor|>I intentionally introduce use-after-free bugs so that I can write exploits later in my own time and sell these on the black market. Helps with paying rent<|eor|><|sor|>[deleted]<|eor|><|sor|>Not that you'd ever need one in a SF startup, just sleep under your desk like everyone else does<|eor|><|eols|><|endoftext|> | 17 |
programmingcirclejerk | juustgowithit | 8ti5ss | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|eols|><|endoftext|> | 154 |
programmingcirclejerk | Camto | e17pid8 | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>This truly proves that no matter how bad a language is, there will always be a worse one.<|eor|><|eols|><|endoftext|> | 82 |
programmingcirclejerk | juustgowithit | e17pont | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|soopr|>`Noob who thinks programming is magic` is my new bio
<|eoopr|><|eols|><|endoftext|> | 74 |
programmingcirclejerk | statistmonad | e17qhmw | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>If programming isn't magic then why do programmers grow beards and read wizard books?<|eor|><|eols|><|endoftext|> | 62 |
programmingcirclejerk | CXI | e17s3pb | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>I DONT UNDERSTAND WHY THIS FORTRAN PROGRAMMER IS GOING OUT OF HIS WAY TO DEFEND JAVASCRIPT<|eor|><|eols|><|endoftext|> | 48 |
programmingcirclejerk | gr---d | e18260r | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>/unjerk
>0.5+0.1==0.6
>
>true
>
>
>0.1+0.2==0.3
>
>false
Is this actually true?<|eor|><|sor|>It's actually pretty simple. When you have a base 10 system (like ours), it can only express fractions that use a prime factor of the base. The prime factors of 10 are 2 and 5. So 1/2, 1/4, 1/5, 1/8, and 1/10 can all be expressed cleanly because the denominators all use prime factors of 10. In contrast, 1/3, 1/6, and 1/7 are all repeating decimals because their denominators use a prime factor of 3 or 7. In binary (or base 2), the only prime factor is 2. So you can only express fractions cleanly which only contain 2 as a prime factor. In binary, 1/2, 1/4, 1/8 would all be expressed cleanly as decimals. While, 1/5 or 1/10 would be repeating decimals. So 0.1 and 0.2 (1/10 and 1/5) while clean decimals in a base 10 system, are repeating decimals in the base 2 system the computer is operating in. When you do math on these repeating decimals, you end up with leftovers which carry over when you convert the computer's base 2 (binary) number into a more human readable base 10 number.
TL;DR
You should be using Rust<|eor|><|eols|><|endoftext|> | 27 |
programmingcirclejerk | albgr03 | e17w774 | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>/unjerk
>0.5+0.1==0.6
>
>true
>
>
>0.1+0.2==0.3
>
>false
Is this actually true?<|eor|><|sor|>Yes, but it is not js fault. Its a flaw in the representation of floating-point values (IEEE-754).<|eor|><|eols|><|endoftext|> | 27 |
programmingcirclejerk | gr---d | e17w3ay | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>There is even a book written by noobs who think programming is magic
[https://en.wikipedia.org/wiki/Structure\_and\_Interpretation\_of\_Computer\_Programs](https://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Computer_Programs)<|eor|><|eols|><|endoftext|> | 25 |
programmingcirclejerk | BurkusCat | e186euf | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>My favourite languages are the ones I have to use because I have no choice.<|eor|><|eols|><|endoftext|> | 23 |
programmingcirclejerk | mypetocean | e18el9e | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>This truly proves that no matter how bad a language is, there will always be a worse one.<|eor|><|sor|>Uh, I like JavaScript (ES 2016+). I write in it everyday. I can talk enthusiastically about the Pro's and Con's of the Prototype system. I speak at local JS events and follow TC39 proposals. Though, yes, I prefer other languages.
But VBScript was comparatively well-thought-out. Yes, it was from Microsoft, and there would have been drawbacks there, but as a language, it had a better origin and would have matured more quickly than JavaScript ~~did~~ [correction] is in process of doing. <|eor|><|eols|><|endoftext|> | 19 |
programmingcirclejerk | KoboldCommando | e180zyv | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>This truly proves that no matter how bad a language is, there will always be a worse one.<|eor|><|sor|>It's just like political systems.
[Language in common use] is the worst language ever designed, apart from all the others designed before it.<|eor|><|eols|><|endoftext|> | 16 |
programmingcirclejerk | albgr03 | e17z0ni | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>/unjerk
>0.5+0.1==0.6
>
>true
>
>
>0.1+0.2==0.3
>
>false
Is this actually true?<|eor|><|sor|>Yes, but it is not js fault. Its a flaw in the representation of floating-point values (IEEE-754).<|eor|><|sor|>[deleted]<|eor|><|sor|>Yes, thats why I mentioned IEEE-754.<|eor|><|sor|>[deleted]<|eor|><|sor|>not in v8<|eor|><|eols|><|endoftext|> | 16 |
programmingcirclejerk | albgr03 | e17wf75 | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>im making websites with python
checkmate jabbascripterz<|eor|><|eols|><|endoftext|> | 15 |
programmingcirclejerk | juustgowithit | e186of8 | <|sols|><|sot|>WITHOUT JAVASCRIPT YOUD BE MAKING WEBSITES IN VBSCRIPT, FUCKING REALIZE THIS AND STFU ABOUT MINOR JAVASCRIPT ISSUES THAT ONLY NOOBS WHO THINK PROGRAMMING IS MAGIC COME INTO TOUCH WITH<|eot|><|sol|>https://reddit.com/r/ProgrammerHumor/comments/8srix1/_/e11prhn/?context=1<|eol|><|sor|>My favourite languages are the ones I have to use because I have no choice.<|eor|><|soopr|>But knowing that there exists a worse one is the biggest relief one could ask for<|eoopr|><|eols|><|endoftext|> | 12 |
programmingcirclejerk | cmov | 8qa7r2 | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|eols|><|endoftext|> | 156 |
programmingcirclejerk | agrathaab | e0ho0sh | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>Oh god, and then the commenters embark on a long chain of jerking about how to properly sanitize a user string before exec-ing it, without realizing that you should never need to exec any strings in order to just read a simple file<|eor|><|eols|><|endoftext|> | 107 |
programmingcirclejerk | cmov | e0hltxq | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://i.imgur.com/isRB4RQ.png<|eoopr|><|eols|><|endoftext|> | 101 |
programmingcirclejerk | cmov | e0hlf6i | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://travis-ci.org/scravy/node-macaddress.svg?branch=master
B U I L D P A S S I N G
U
I
L
D
P
A
S
S
I
N
G<|eoopr|><|eols|><|endoftext|> | 68 |
programmingcirclejerk | irqlnotdispatchlevel | e0hslk5 | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://i.imgur.com/isRB4RQ.png<|eoopr|><|sor|>This is some serious amateur hour and may even be a new contender for the Most misplaced Gopher Award. ^(I upvoted you anyway)<|eor|><|sor|>Unfortunately JavaScript has no recognizable mascot<|eor|><|sor|>lol no standard mascot<|eor|><|eols|><|endoftext|> | 57 |
programmingcirclejerk | irqlnotdispatchlevel | e0hr67i | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://i.imgur.com/isRB4RQ.png<|eoopr|><|sor|>This is some serious amateur hour and may even be a new contender for the Most misplaced Gopher Award. ^(I upvoted you anyway)<|eor|><|eols|><|endoftext|> | 56 |
programmingcirclejerk | hedgehog1024 | e0hsgqb | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://i.imgur.com/isRB4RQ.png<|eoopr|><|sor|>This is some serious amateur hour and may even be a new contender for the Most misplaced Gopher Award. ^(I upvoted you anyway)<|eor|><|sor|>Unfortunately JavaScript has no recognizable mascot<|eor|><|eols|><|endoftext|> | 33 |
programmingcirclejerk | hedgehog1024 | e0hvcfv | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://i.imgur.com/isRB4RQ.png<|eoopr|><|sor|>This is some serious amateur hour and may even be a new contender for the Most misplaced Gopher Award. ^(I upvoted you anyway)<|eor|><|sor|>Unfortunately JavaScript has no recognizable mascot<|eor|><|sor|>lol no standard mascot<|eor|><|sor|>Don't worry, it is going to be added at ECMAScript2020. This feature is still on draft, but it's experimental implementations are available for latest nighlty Google Chrome Developer Edition. Next generation browsers will support mascot natively, and a module for Babel is going to available soon to add support for legacy browsers.
Meanwhile... Can somebody draw a mascot of 'undefined is not a function'?<|eor|><|eols|><|endoftext|> | 29 |
programmingcirclejerk | emdeka87 | e0id8to | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>Oh god, and then the commenters embark on a long chain of jerking about how to properly sanitize a user string before exec-ing it, without realizing that you should never need to exec any strings in order to just read a simple file<|eor|><|sor|>On the other hand using system commands makes the library look kinda elaborate and complex while it's actually a one-liner. That's the kinds of tricks a 10Xer uses. Bravo!<|eor|><|eols|><|endoftext|> | 25 |
programmingcirclejerk | Veedrac | e0hlxm7 | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>})<|eor|><|eols|><|endoftext|> | 24 |
programmingcirclejerk | badthingfactory | e0i9avu | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>This is the beauty of the Unix philosophy. Every module in the codebase can do one thing well. NPM follows the Unix philosophy with small and focused modules. <|eor|><|eols|><|endoftext|> | 23 |
programmingcirclejerk | SelfDistinction | e0hm0rk | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>I have a question:
.
WHAT THE ACTUAL FORK?!<|eor|><|eols|><|endoftext|> | 20 |
programmingcirclejerk | hedgehog1024 | e0hzove | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://i.imgur.com/isRB4RQ.png<|eoopr|><|sor|>This is some serious amateur hour and may even be a new contender for the Most misplaced Gopher Award. ^(I upvoted you anyway)<|eor|><|sor|>Unfortunately JavaScript has no recognizable mascot<|eor|><|sor|>[deleted]<|eor|><|sor|>Oh, is it the JabbaScript Triforce?<|eor|><|eols|><|endoftext|> | 17 |
programmingcirclejerk | r2d2_21 | e0hvnn9 | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>})<|eor|><|soopr|>(<|eoopr|><|sor|>';DROP Table R_PCJ;GO;<|eor|><|sor|>Is it a xkcd reference?<|eor|><|sor|>EXXXXXXXXXXXXXX
DEEEEEEEEEEEEEEE
XKCD!!!! LMAO!!! WEB COMICS ARE SO FUNNY AND SMART ECKS DEE
(i dislike xkcd, thus you triggered me)
God Bless.<|eor|><|sor|>> i dislike xkcd
I thought we were friends.<|eor|><|eols|><|endoftext|> | 17 |
programmingcirclejerk | senntenial | e0ibir5 | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|soopr|>https://travis-ci.org/scravy/node-macaddress.svg?branch=master
B U I L D P A S S I N G
U
I
L
D
P
A
S
S
I
N
G<|eoopr|><|sor|>proof that unit tests are deprecated. <|eor|><|eols|><|endoftext|> | 16 |
programmingcirclejerk | hedgehog1024 | e0hvsfz | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>})<|eor|><|soopr|>(<|eoopr|><|sor|>';DROP Table R_PCJ;GO;<|eor|><|sor|>Is it a xkcd reference?<|eor|><|sor|>EXXXXXXXXXXXXXX
DEEEEEEEEEEEEEEE
XKCD!!!! LMAO!!! WEB COMICS ARE SO FUNNY AND SMART ECKS DEE
(i dislike xkcd, thus you triggered me)
God Bless.<|eor|><|sor|>> i dislike xkcd
Shame on you<|eor|><|sor|>I mean, it is orphographically wrong to type 'I' as small letter when it is used as pronoun.<|eor|><|eols|><|endoftext|> | 12 |
programmingcirclejerk | Frangipane1 | e0j7br1 | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>I'm not a massive JavaScript guy, what does this do and why is it bad? I'm curious.<|eor|><|sor|><uj>
Exec is bad for more or less the same reasons why eval is bad.
Exec will run anything that you pass as argument (e.g. echo "hello world"). Which is not nice from a security perspective.
Furthermore the code is not clear. Debugging is a pain since whatever is executed using exec cannot be traced with the debugger. With the hello world example you can be fine but once it starts to be somewhat more complex you will have a bad time.
In general languages offer enough possibilities to not use exec (and eval).
</uj><|eor|><|eols|><|endoftext|> | 11 |
programmingcirclejerk | hedgehog1024 | e0hsl4p | <|sols|><|sot|>NPM package with 1.3 million downloads a week contains `exec("cat /sys/class/net/" + iface + "/address", function (err, out) {`<|eot|><|sol|>https://news.ycombinator.com/item?id=17283861<|eol|><|sor|>})<|eor|><|soopr|>(<|eoopr|><|sor|>';DROP Table R_PCJ;GO;<|eor|><|sor|>Is it a xkcd reference?<|eor|><|eols|><|endoftext|> | 11 |
programmingcirclejerk | etaionshrd | 11veetf | <|sols|><|sot|>Go generics are exceptionally well designed. The reason it took so long for Go to get generics is because Go designers took their time to arrive at a design that fits with the rest of Go.<|eot|><|sol|>https://news.ycombinator.com/item?id=35215656<|eol|><|eols|><|endoftext|> | 155 |
programmingcirclejerk | aikii | jcswmb2 | <|sols|><|sot|>Go generics are exceptionally well designed. The reason it took so long for Go to get generics is because Go designers took their time to arrive at a design that fits with the rest of Go.<|eot|><|sol|>https://news.ycombinator.com/item?id=35215656<|eol|><|sor|>\>exceptionally well designed.
\>design that fits with the rest of Go<|eor|><|eols|><|endoftext|> | 146 |
programmingcirclejerk | aikii | jcswqp7 | <|sols|><|sot|>Go generics are exceptionally well designed. The reason it took so long for Go to get generics is because Go designers took their time to arrive at a design that fits with the rest of Go.<|eot|><|sol|>https://news.ycombinator.com/item?id=35215656<|eol|><|sor|>\>exceptionally well designed.
\>design that fits with the rest of Go<|eor|><|sor|>I reckon I might be a candidate for /r/YourJokeButWorse/<|eor|><|eols|><|endoftext|> | 64 |
programmingcirclejerk | VanillaSkyDreamer | jcsrdbu | <|sols|><|sot|>Go generics are exceptionally well designed. The reason it took so long for Go to get generics is because Go designers took their time to arrive at a design that fits with the rest of Go.<|eot|><|sol|>https://news.ycombinator.com/item?id=35215656<|eol|><|sor|>Just like Java did :)<|eor|><|eols|><|endoftext|> | 55 |
programmingcirclejerk | Shorttail0 | jct47ps | <|sols|><|sot|>Go generics are exceptionally well designed. The reason it took so long for Go to get generics is because Go designers took their time to arrive at a design that fits with the rest of Go.<|eot|><|sol|>https://news.ycombinator.com/item?id=35215656<|eol|><|sor|>\>exceptionally well designed.
\>design that fits with the rest of Go<|eor|><|sor|>I reckon I might be a candidate for /r/YourJokeButWorse/<|eor|><|sor|>Self aware go programmer, I don't believe it!<|eor|><|eols|><|endoftext|> | 27 |
programmingcirclejerk | Handsomefoxhf | jctzprg | <|sols|><|sot|>Go generics are exceptionally well designed. The reason it took so long for Go to get generics is because Go designers took their time to arrive at a design that fits with the rest of Go.<|eot|><|sol|>https://news.ycombinator.com/item?id=35215656<|eol|><|sor|>[deleted]<|eor|><|sor|>/uj
The generics implementation has multiple pitfalls in it and is pretty limited at the moment. The limited part is stuff like: you can't have generic methods on a non-generic type. You can of course just make it a function, instead of a method, but why can't the compiler do just that for me?
It also is unpolished, in a sense that a lot of times, where the generic type can be automatically inferred, it doesn't actually infer it.
An example that does not compile, but should:
type Example[T any] struct{}
func Function() Example[int] { return Example{} }
It's a little thing, but a more polished implementation would definitely have that working.
Also, this; https://go101.org/generics/888-the-status-quo-of-go-custom-generics.html<|eor|><|eols|><|endoftext|> | 26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.