|
xkcd today:
|
# ¿ Aug 9, 2018 01:06 |
|
|
# ¿ Apr 30, 2024 04:37 |
|
https://twitter.com/mattblaze/status/1034844783691190272
|
# ¿ Aug 30, 2018 01:59 |
|
Anybody who can do data science can learn SQL.
|
# ¿ Sep 3, 2018 14:38 |
|
You can store the CSVs from a given run, which makes reproducing/debugging significantly easier. If you're going to talk to the database directly, you'll need some way to recreate the state of the database at the time a model was run to reproduce the run.
|
# ¿ Sep 3, 2018 22:21 |
|
https://twitter.com/emilymhorsman/status/1037499651925127168 C++. My God.
|
# ¿ Sep 8, 2018 04:09 |
|
C++ is a coding horror.
|
# ¿ Sep 16, 2018 16:19 |
|
Yeah, that looks like an attempt at template metaprogramming. Cool stuff if you can get it to work, but the official recommendation is to delete all your code and start over if there are any errors, so good luck actually using it.
|
# ¿ Sep 28, 2018 19:18 |
|
fritz posted:Why would anybody do this to themselves : Loop unrolling is a legitimate use case for template metaprogramming. Everything else I've seen just feels like someone showing off how smart they are. Yeah, it's kinda cool that you can get the compiler to print an error message for every prime number less than some value, but who really cares?
|
# ¿ Sep 28, 2018 19:48 |
|
OK, but explain the template parameters to B now.
|
# ¿ Sep 28, 2018 20:04 |
|
Absurd Alhazred posted:What's a language with good generics? Haskell.
|
# ¿ Sep 29, 2018 21:15 |
|
Are the powers that be open to process improvements and at least a little bit sane? If not, save your energy. If so, you need to have some concept of a released version of a library. Instead of building against source, you build against the copy in some location that has versions of libraries that have been through a release process. And then you put all of the tests you want into the release process.
|
# ¿ Sep 30, 2018 18:36 |
|
LOOK I AM A TURTLE posted:Haskell's generic programming features are basically perfect. My only complaint is the lack of some sort of variadic type parameter support for tuples. Haskell libraries always seem to end up with a series of functions/types called foo2, foo3, foo4, one for each tuple size. Look at this nonsense: https://hackage.haskell.org/package/lens-4.17/docs/Control-Lens-Tuple.html. If you have nineteen elements in a tuple you should probably be using a record type. Maybe two.
|
# ¿ Sep 30, 2018 21:34 |
|
Presto posted:All right, but why doesn't it just say "The things you passed to std::find are not compatible"? That is what it's saying.
|
# ¿ Oct 1, 2018 03:06 |
|
Athas posted:When you see code checking for NaNs, it is usually either really clever code or really stupid code. Sounds like somebody's never written a quadratic program solver....
|
# ¿ Oct 16, 2018 05:17 |
|
We settled on a standard style at work. I'm not wild about it, but I like having a style much better than I like having every file having a mix of styles, some of which might not be found anywhere else. If you're using git, you can set up the formatter to run as a pre-commit hook, so you can write whatever you want and it goes in as the correct format.
|
# ¿ Nov 3, 2018 21:06 |
|
If your goal is to have your name cursed extra hard, then it's a great idea.
|
# ¿ Dec 14, 2018 16:07 |
|
Joda posted:Someone in my scrum team actually defended calling external web APIs inside of not only a database transaction, but a performance critical transaction. Like in a "we should profile this and see if it's actually a problem" way, or an "obviously this is completely fine and there's something wrong with you if don't see that" way?
|
# ¿ Jan 21, 2019 16:34 |
|
Jazerus posted:there's a certain type of company that would hire you on the spot if you made 4 classes to solve fizzbuzz Why stop at 5?
|
# ¿ Jan 27, 2019 17:52 |
|
This. Haskell is a perfectly good beginner's language, but the vast majority of tutorials and introductions are garbage. HFPP is not, and it's the right place to start.
|
# ¿ Jan 29, 2019 00:53 |
|
It sounds like at least a few of the Elm issues would be resolved if web assembly takes off and you can bypass Javascript. Is that a fair assessment?
|
# ¿ Jan 30, 2019 01:00 |
|
double post
ultrafilter fucked around with this message at 01:03 on Jan 30, 2019 |
# ¿ Jan 30, 2019 01:00 |
|
https://twitter.com/mattblaze/status/1034844783691190272
|
# ¿ Feb 28, 2019 16:50 |
|
Trying to understand the inner workings of anything Microsoft made in the 90s is a bad idea.
|
# ¿ Mar 12, 2019 02:01 |
|
RPATDO_LAMD posted:IIRC C++ has so many syntax ambiguities that in mathematical terms the language is "undecidable". I think C++ is decidable but hard to parse if you disallow templates. The problem is that templates are Turing complete, and that means that determining whether a given program is valid can require you to solve the halting problem.
|
# ¿ Mar 14, 2019 00:23 |
|
It's not that templates allow you to perform arbitrary computations; it's that they allow you to perform arbitrary computations *at compile time*. At some point someone implemented a piece of code that took an int n and produced error messages listing out all of the primes less than n, but I'm having trouble tracking that down.
ultrafilter fucked around with this message at 17:35 on Mar 16, 2019 |
# ¿ Mar 16, 2019 17:31 |
|
Volte posted:Jesus, I didn't know that template instantiation happens during parsing. That is absolutely bizarre behaviour. That's why the body of a template function has to be visible everywhere that it's called, and why templates are a very bad idea if you care about binary size.
|
# ¿ Mar 16, 2019 18:16 |
|
I think I heard that for C++17 or C++20 the standards committee gave up on telling vendors what they should add and just started picking out new features that the vendors had already added.
|
# ¿ Mar 18, 2019 02:49 |
|
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 |
|
You say that, but lerzfijglpFiji-j is apparently Perl in moderation, and that's not fine.
|
# ¿ Apr 6, 2019 05:11 |
|
Jeb Bush 2012 posted:elon musk at the top and ajit pai at the bottom is very revealing It's almost like these people have no idea how things actually work!
|
# ¿ Apr 11, 2019 23:55 |
|
Munkeymon posted:Packing multiple declarations on to one line could save hundreds of byte of precious disk space on a large codebase! I'm not sure if any C programs were written on punch cards, but the language was probably designed with that use case in mind.
|
# ¿ Apr 25, 2019 15:30 |
|
iospace posted:We have such sights to show you: https://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest At one point, there was an obfuscated Perl contest.
|
# ¿ Apr 27, 2019 16:13 |
|
Yeah, I couldn't help but be reminded of this the first time I saw that.
|
# ¿ Apr 27, 2019 16:33 |
|
Today I learned that the IBM C++ linker only allocates 64k for its TOC unless you specify -bbigtoc on the command line. That's not a thing I should have to think about.
|
# ¿ May 10, 2019 00:12 |
|
If you compute the length of a list in Haskell you're probably doing something wrong.
|
# ¿ May 16, 2019 00:55 |
|
I'm sure someone will get fired over this. Not anyone who actually deserves it, mind you, but someone will be for sure.
|
# ¿ May 27, 2019 20:46 |
|
Write tests. Not too many. Mostly integration.
|
# ¿ Jun 3, 2019 00:01 |
|
Something I've been thinking about lately is metamorphic testing, which involves looking at how the output of a function/program changes when the input changes. In a lot of cases it's much easier to reason about what those changes should be like than to figure out what the output should be for a given input. I have a program that takes in a bunch of (x, y) coordinates and fits a curve to them. For various reasons, I can't use anything off the shelf, and as a result there really isn't any gold standard for what the answer should be. However, I know for a fact that if I go from (x, y) to (x, y + 1) that the output curve should move up by one as well. That's a very simple example (and the actual tests would be a bit more complicated), but I think it at least hints at how useful this is for the problems that I'm working with. ultrafilter fucked around with this message at 19:03 on Jun 3, 2019 |
# ¿ Jun 3, 2019 19:01 |
|
redleader posted:tldr: software is hell, testing won't help, hail Satan. Hail Satan.
|
# ¿ Jun 4, 2019 04:57 |
|
|
# ¿ Apr 30, 2024 04:37 |
|
Floating point is hell, testing won't help, hail Satan.
|
# ¿ Jun 6, 2019 04:13 |