|
Like the brainfuck examples, you can write "good" code, or at least, understandable-the-best-you-can code in assembler using the same approach. But one of the main benefits of C over assembler is that the structure provided by the language itself goes a long way to making the code understandable without having to duplicate all the logic between generally-opaque instructions and the explanatory comments. And basically every systems language since C has been designed to make it easier to write increasingly-complex applications that are both understandable and correct (or at least, with better fail-safes) than the last.
|
# ¿ May 10, 2022 12:02 |
|
|
# ¿ May 17, 2024 01:24 |
|
BigPaddy posted:I looked into that abyss for but a week and came away scarred.
|
# ¿ May 13, 2022 15:34 |
|
Wonder what his interview was like.
|
# ¿ May 19, 2022 15:08 |
|
He's definitely rogue. Look, I'm not a fan of nodejs either but I don't go around replacing production systems that are working just fine for the sake of it. That said it's pretty strange he was hired with his particular skillset and then quickly given such level of access with little (official?) oversight.
|
# ¿ May 20, 2022 12:33 |
|
Volmarias posted:Depends on which judge you get too; the judge in the Oracle vs Google case about whether Java APIs can be protected IP, who actually took the time to learn enough programming to understand the concepts being argued, or... pretty much any other judge. And yet I totally agree that most judges wouldn't give two shits.
|
# ¿ Jun 8, 2022 19:09 |
|
Dr. Arbitrary posted:I feel like the curriculum for the Java class I'm taking might be a little out of date:
|
# ¿ Jun 26, 2022 12:05 |
|
duck monster posted:This fucker codes on the production server.
|
# ¿ Sep 12, 2022 14:16 |
|
If the server timezone is anything but UTC then it's probably running Windows and PHP on Windows explains the rest of the horror.
|
# ¿ Aug 15, 2023 02:36 |
|
Mellow_ posted:I'm moving a Linux system still running on 2.2.14 (and the build scripts and such are basically untouched since 2002 or 2006 or whenever that kernel came out) Mellow_ posted:(Why use git branches and commits? Just comment everything out.)
|
# ¿ Aug 29, 2023 20:50 |
|
Volguus posted:Now, as far as I can tell I have a few solutions to that: You could also create a new network namespace and use nsenter when lauching the IPTV software to place it in the new namespace. This is closer to what the container solution does. Also the container solution is fine, but if running it fully in a container presents other problems there's a few alternatives.
|
# ¿ Aug 30, 2023 15:05 |
|
smackfu posted:I worked on a product once where all the timestamps were stored in the database in local time.
|
# ¿ Sep 4, 2023 03:57 |
|
Unity is why a 850 MB pixel art game takes up 7.1 GB on Nintendo Switch. Absolute weird bullshit engine.
ExcessBLarg! fucked around with this message at 18:31 on Sep 26, 2023 |
# ¿ Sep 26, 2023 18:28 |
|
Volte posted:I was very curious about this so I obtained a ROM of the Switch version and unpacked it. Volte posted:Not sure why the Switch version is only 3.5GB instead of the 7+ reported elsewhere, unless that's just a 2x size buffer to account for patches or whatever. My point though is that it's unfortunate that Unity's "default" (or at least, most straightforward) asset management approach is recognized as so woefully inefficient that it's not recommended for use, and that while better solutions exist you have to go out of your way to make use of them.
|
# ¿ Sep 27, 2023 02:24 |
|
It's really a privilege to be able to "modern" code. There's so many times when you're stuck with ES5 or Java 8 or C89 even due to aging infrastructure and requirements. And being able to meet those requirements--even if they're ridiculous--is still important. Also I wouldn't really evaluate a CS program based on their webdev course unless it's required form some reason.
|
# ¿ Nov 18, 2023 05:33 |
|
Ihmemies posted:Ok we're at uni's datastructures & algos course. Also, I don't think an autograder running on a correct, but inefficient program should result in a failing grade unless the student has access to the autograder ahead of the assignment due date (it wasn't clear to me if this was the case here), and even then I'm not sure it should do that. Like, a student inefficiency using an O(n) search where a O(1) lookup is warranted is a common mistake to the point that the autograder should be aware of it.
|
# ¿ Dec 9, 2023 22:39 |
|
senrath posted:On the other hand, you have to set the autograder to time out eventually,
|
# ¿ Dec 9, 2023 22:53 |
|
senrath posted:It really depends on what the grading criteria was.
|
# ¿ Dec 9, 2023 23:04 |
|
RPATDO_LAMD posted:Also how would you teach stuff like trees and linked lists in a 'friendly' language without pointers like java or python?
|
# ¿ Dec 10, 2023 06:19 |
|
GABA ghoul posted:Now that I think about it, their approach to throwing an exception in case of a missing keys actually makes a lot of sense. For value types anything a GetKey method could return for a missing key could be confused for an actual value, i.e. am I getting back a 0 because the inventory for this productID is 0 or because the productID is not in the hashmap at all?
|
# ¿ Dec 11, 2023 17:29 |
|
leper khan posted:"Return value will be indexed from the map. In the event the key is outside the map, the return value will be parsed from the memory immediately following the map"
|
# ¿ Dec 11, 2023 18:45 |
|
leper khan posted:Horror from the thread and all, but I never understood the appeal of option types. Doesn't give any more information than a pointer. leper khan posted:Oh you have to check HasValue everywhere instead of != NULL. Wow great good job.
|
# ¿ Dec 12, 2023 16:44 |
|
leper khan posted:If they happen sooner, you're converting from a nullable or reference type to a non-nullable value-type. Checking for a value has similar semantics and failing to do that in both cases throws an exception.
|
# ¿ Dec 12, 2023 17:26 |
|
Athas posted:Also, when you have code like that, it is usually because it is generated, and then it can be very annoying to run into those arbitrary restrictions.
|
# ¿ Dec 18, 2023 17:16 |
|
Volte posted:if (opcode == FOO) { ... } else if (opcode == BAR) { ... } else if ... Athas posted:Yes, I would expect the compiler to compile it efficiently, based on its knowledge of the target architecture.
|
# ¿ Dec 18, 2023 18:34 |
|
Volte posted:Nobody has argued that it's the only way to write it, just that it is a place where it could conceivably come up in a non-horror situation. Which is to say that the limitation itself may be defensible.
|
# ¿ Dec 18, 2023 19:56 |
|
Volmarias posted:Write Four Billion Conditions
|
# ¿ Dec 31, 2023 02:11 |
|
|
# ¿ May 17, 2024 01:24 |
|
I wrote a for-case loop the other day for a project. At first I felt pretty bad about it but it's way better than these case-for shenanigans.
|
# ¿ Apr 11, 2024 00:56 |