|
Xarn posted:Using ternary operator to assign to a bit field you say? I think I have a new piece of code to scare people with.
|
# ¿ Sep 12, 2018 20:42 |
|
|
# ¿ May 10, 2024 19:29 |
|
ToxicFrog posted:
All software is pretty gross.
|
# ¿ Nov 20, 2018 18:45 |
|
megalodong posted:RE the strncpy stuff from last page, I'm still amazed how often I come across people, supposedly with lots of C experience, using it as a "safe" copy for null-terminated strings... But I guess from that perspective so are while loops looking for null terminators...
|
# ¿ Nov 28, 2018 12:35 |
|
On the topic of quieting compilers, I *love* whiteboard code interviews, as the people that that reflexively use signed/unsigned ints and consider range depending on context are the best. World population is a great one for this. Currency is interesting too, This has gotten harder since 64-bit ints became a reasonable supposition, so I need to constrain the problem set these days, which can telegraph my intent. Relevant because every large codebase I’ve touched is ridden with worthless signed/ unsigned compares that should be unsigned / unsigned.
|
# ¿ Jan 25, 2019 07:24 |
|
iospace posted:There's a significant difference between a traditional diode and a data diode. Efficacy
|
# ¿ May 7, 2019 15:44 |
|
rt4 posted:That's illegal now, too This is cool, I’ve done entertainment stuff forever and have no exposure to this. What’s illegal, segmenting or not-segmenting?
|
# ¿ May 11, 2019 21:29 |
|
Spatial posted:Hardware horror: when you have seven different timer peripherals on a system, and not a single goddamn one of them can generate an interrupt when the time matches a given reference point. you get to solve the problem a different way!
|
# ¿ May 25, 2019 19:38 |
|
Yield keyword? I’ve been doing embedded either too long or not long enough.
|
# ¿ Sep 5, 2019 04:29 |
|
Polio Vax Scene posted:give me one good reason why your system, which stores a decimal value, does not accept my submitted int value. Enter the integer, then look on the right, there’s a pull-down you use to specify if that integer is a representation of the fraction or exponent, then a dialog box to describe how the integer was encoding the fraction (or exponent), a repeat of the controls for the exponent (or fraction) then a radio button to indicate if the base is 2 or 10.
|
# ¿ Mar 24, 2023 15:13 |
|
rjmccall posted:… Agreed, magnificently useless, but wow this is giving me an itch.
|
# ¿ Mar 28, 2023 04:31 |
|
I love the Windows Store python setup, I can send our field support python scripts without spending a ton of time helping them gently caress around with paths and installers.
|
# ¿ Apr 2, 2023 14:19 |
|
Kazinsal posted:
|
# ¿ Jul 16, 2023 14:54 |
|
Oh god this is giving me flashbacks to when my wife taught remote webdev for non-majors, the material was archaic and they didn’t want anything changed. When she complained and even offered to update the course they did that they always do to adjuncts that actually try to make things better and stopped giving her courses.
|
# ¿ Nov 18, 2023 18:44 |
|
I C++ footgunned myself the other day with frigging clamp(). Was in older code and std::clamp() wasn’t there, so I did a template in what was essentially ‘randomUtils.cpp’. Had to touch a lot of older code, so I of course re-factored ton of stuff into clamp(). Oops, turns out that unsigned is a thing, especially if people turn a dial Really Fast and of course when a hosed-up unsigned goes negative things get really interesting. That build never left the building, I’m only posting this here because I know I have one point I posted here my diatribe about using signed versus unsigned for expected values and how that implicit communication is a good thing. Mea culpa.
|
# ¿ Jan 31, 2024 03:57 |
|
|
# ¿ May 10, 2024 19:29 |
|
abraham linksys posted:how soon we forget the incredible technology that was Google Web Toolkit
|
# ¿ Mar 24, 2024 16:19 |