An assert with side effects definitely belongs in this thread.
|
|
# ? Mar 31, 2019 18:11 |
|
|
# ? May 21, 2024 03:52 |
|
VikingofRock posted:An assert with side effects definitely belongs in this thread. I've done that.
|
# ? Mar 31, 2019 18:22 |
|
Assert(Elon Musk is a dumb rear end in a top hat)
|
# ? Mar 31, 2019 20:43 |
|
Warning: Assert is trivial
|
# ? Mar 31, 2019 21:18 |
|
WHILE TRUE COMMIT CRIMES;
|
# ? Apr 1, 2019 03:13 |
|
huawei bad, but not for the reasons everyone thought https://www.theregister.co.uk/2019/03/28/hcsec_huawei_oversight_board_savaging_annual_report/ quote:Analysis of relevant source code worryingly identified a number pre-processor directives of the form "#define SAFE_LIBRARY_memcpy(dest, destMax, src, count) memcpy(dest, src, count)", which redefine a safe function to an unsafe one, effectively removing any benefit of the work done to remove the unsafe functions.
|
# ? Apr 1, 2019 11:45 |
Hammerite posted:huawei bad, but not for the reasons everyone thought "It is difficult to be confident that vulnerabilities discovered in one build are remediated in another build through the normal operation of a sustained engineering process."
|
|
# ? Apr 1, 2019 12:00 |
|
Jazerus posted:"It is difficult to be confident that vulnerabilities discovered in one build are remediated in another build through the normal operation of a sustained engineering process." That's basically what I said when my coworkers started talking about giving a terrible vendor yet another chance to fix all their dumb bugs. They'd had a conference call where a new director made all sorts of promises and, bizarrely, trusted them.
|
# ? Apr 1, 2019 15:01 |
|
CPColin posted:That's basically what I said when my coworkers started talking about giving a terrible vendor yet another chance to fix all their dumb bugs. They'd had a conference call where a new director made all sorts of promises and, bizarrely, trusted them. You scoundrel. You knew full well that 3/4ths of the goons reading your post would wonder which of their customers you are, didn't you?
|
# ? Apr 1, 2019 19:38 |
|
Today in things you always wanted to know but were too afraid to ask: Are random paint splotches valid perl code? The answer is... YES!
|
# ? Apr 5, 2019 23:09 |
|
I posted that on work slack... No response lol Bitches No hate
|
# ? Apr 5, 2019 23:31 |
|
iospace posted:Today in things you always wanted to know but were too afraid to ask: I feel like a sample size of 100 is pretty limited even for a joke
|
# ? Apr 5, 2019 23:45 |
|
flatluigi posted:I feel like a sample size of 100 is pretty limited even for a joke shush you
|
# ? Apr 5, 2019 23:52 |
|
flatluigi posted:I feel like a sample size of 100 is pretty limited even for a joke
|
# ? Apr 5, 2019 23:52 |
|
The margin of error on a sample of 100 is 5%. With an observed probability of 93%, we can be pretty confident that the true proportion is over 80%.
|
# ? Apr 6, 2019 00:29 |
flatluigi posted:I feel like a sample size of 100 is pretty limited even for a joke some would say much the same about perl
|
|
# ? Apr 6, 2019 00:34 |
|
One of my junior programmers made the mistake of using Perl openly yesterday, so a bunch of us unloaded our bookshelves of O'Reillys on her. It was quite a pile.
|
# ? Apr 6, 2019 01:11 |
|
Perl is fine in moderation
|
# ? Apr 6, 2019 04:58 |
|
You say that, but lerzfijglpFiji-j is apparently Perl in moderation, and that's not fine.
|
# ? Apr 6, 2019 05:11 |
|
If you get enough monkeys at enough typewriters, they will eventually not create a Perl script.
|
# ? Apr 6, 2019 05:24 |
|
Rocko Bonaparte posted:If you get enough monkeys at enough typewriters, they will eventually not create a Perl script. So 1 monkey and 1 typewriter?
|
# ? Apr 6, 2019 05:38 |
|
iospace posted:So 1 monkey and 1 typewriter? DSYP
|
# ? Apr 6, 2019 05:40 |
|
Perl code:
|
# ? Apr 6, 2019 12:28 |
|
ultrafilter posted:You say that, but lerzfijglpFiji-j is apparently Perl in moderation, and that's not fine. Pretty much all those “valid Perl” examples are only valid in non-strict mode, which should never be used. If you see a Perl script that does not begin “use strict”, by all means run away screaming. Otherwise it’s fine.
|
# ? Apr 6, 2019 15:35 |
|
Now do Ruby
|
# ? Apr 6, 2019 15:38 |
|
xtal posted:Now do Ruby
|
# ? Apr 6, 2019 18:49 |
|
Ruby, not PHP. Ruby is at least solid poo poo, not bloody diarrhea
|
# ? Apr 8, 2019 01:01 |
|
iospace posted:Ruby, not PHP. DSYP
|
# ? Apr 8, 2019 01:53 |
|
Does visual programming count as a coding horror? https://twitter.com/andrewpprice/status/1115051537296838656
|
# ? Apr 8, 2019 15:13 |
|
repiv posted:Does visual programming count as a coding horror? That's a debugging tool.
|
# ? Apr 8, 2019 22:43 |
|
Stumbled across all three of these today:code:
code:
code:
I guess these aren't so much "coding horrors" than general proof that code reviews are a good thing and working by oneself for a decade is bad. Fake edit: Just spotted if (s.length() <= 0). Good protection against imaginary strings.
|
# ? Apr 8, 2019 23:50 |
|
Found a case of an object assignment passing unit tests because the attribute had the same name as another object; the other object where assignment was occurring was just nullable get; set instead of any actual logic happening. (picture of guy pointing at his head) Can't fail unit tests if you don't emit success/fail messages
|
# ? Apr 9, 2019 00:19 |
|
Scaramouche posted:Found a case of an object assignment passing unit tests because the attribute had the same name as another object; the other object where assignment was occurring was just nullable get; set instead of any actual logic happening. How long before we see a programming language implement first class unit test testers?
|
# ? Apr 9, 2019 00:35 |
|
Huawei may well be a Chinese espionage front company, but that hardly matters. More to the point they're in the telco business, which is a hive of scum and villainy no matter what the other context is.
|
# ? Apr 9, 2019 02:12 |
|
Scaramouche posted:Found a case of an object assignment passing unit tests because the attribute had the same name as another object; the other object where assignment was occurring was just nullable get; set instead of any actual logic happening. He's not some guy, he's Lt Commander Geordi La Forge!
|
# ? Apr 10, 2019 18:41 |
|
Janitor Prime posted:He's not some guy, he's Lt Commander Geordi La Forge! No he's not.
|
# ? Apr 10, 2019 19:10 |
|
Hammerite posted:Assert(Elon Musk is a dumb rear end in a top hat) Dumb Lowtax posted:Stackoverflow.com, the coding question/answer website, just released results of a massive survey of its members about things like most popular programming language, demographics, etc. This question stood out:
|
# ? Apr 11, 2019 19:43 |
|
laffo at that "me/myself" line
|
# ? Apr 11, 2019 19:44 |
|
elon musk at the top and ajit pai at the bottom is very revealing
|
# ? Apr 11, 2019 19:50 |
|
|
# ? May 21, 2024 03:52 |
|
Well it's not me or Evan You.
|
# ? Apr 11, 2019 19:55 |