Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for Lundin‭

Type On... Excerpt Status Date
Comment Post #280976 This has nothing to do with software development.
(more)
about 3 years ago
Comment Post #280978 Thanks @Alexei. I think this was really just an accidental slip from all involved, I don't recall anyone actually arguing against troubleshooting questions.
(more)
about 3 years ago
Comment Post #277341 @Ayxan Haqverdili Whereas the proposed `-pedantic-errors` just turn all warnings related to C language violations into errors, which might be more useful. Particularly when you are playing around with other options that come with lots of false positives such as `-Wconversion`.
(more)
about 3 years ago
Comment Post #280967 @Ayxan Haqverdili‭ In order to do that, the compiler would have to implement some crazy scheme to keep the types different and non-compatible internally. And for what purpose, just to break code unexpectedly? Compilers, most notably gcc, has already received a tonne of criticism for strict aliasing a...
(more)
about 3 years ago
Comment Post #280967 @Ayxan Haqverdili‭ It doesn't make sense for a compiler to implement any other character type than `unsigned char` so why would it? If there exists a type `unsigned char` which is 8 bits and another type `uint8_t` which is also 8 bits and neither have padding bits, why would you make them non-compati...
(more)
about 3 years ago
Comment Post #280967 @Ayxan Haqverdili‭ The key here is 8 bit two's complement. Some manner of custom type could in theory have all manner of representations. `unsigned char` can only have one representation and `signed char` can only be 1's compl, 2's compl or signed magnitude. In case the system uses 2's compl and 8 bi...
(more)
about 3 years ago
Comment Post #278172 @Estela The terms operator precedence, associativity and order of evaluation ("sequenced before"/"sequenced after") are the same in C++. The only difference is that in later versions, C++17 and beyond has added well-defined order of evaluation for certain specific operators such as `=`.
(more)
over 3 years ago
Comment Post #280640 @jrh `uint8_t` will have to be a character type if supported, I've written answers explaining why on SO. But please don't derail comments further; this has nothing to do with endianess. If you have a question about strict aliasing, please ask a separate question.
(more)
over 3 years ago
Comment Post #280640 @Chris Jester-Young‭ Furthermore, if you read the actual "strict aliasing rule", it has an explicit exception for lvalue access through a character type. C17 6.5/7: "An object shall have its stored value accessed only by an lvalue expression that has one of the following types: ... - a character typ...
(more)
over 3 years ago
Comment Post #280640 @Chris Jester-Young‭ No, that's wrong. There is a special rule allowing us to inspect any type in C by using a character type (uint8_t is always a character type if supported). C17 6.3.2.3/7. "When a pointer to an object is converted to a pointer to a character type, the result points to the lowest ...
(more)
over 3 years ago
Comment Post #280536 @dmckee‭ Yeah it sucks that various compilers decide to whine about that. It's like they never understood what #pragma is supposed to do in the first place.
(more)
over 3 years ago
Comment Post #280529 This new comment system sounds very promising overall - threaded comments would also be awesome too!
(more)
over 3 years ago
Comment Post #280536 Well, even in old school C you can simply use `#pragma` without any surrounding #ifdef. Compilers are supposed to simply ignore unknown pragmas and not whine about "unknown pragma".
(more)
over 3 years ago
Comment Post #280528 @dmckee Nan is going to be a special case no matter what you do.
(more)
over 3 years ago
Comment Post #280528 Compiler warnings are... compiler-specific :) You should probably manage these through different builds per compiler, if possible, keeping everything in IDE project settings or make files. Asserts in particular should be handled with debug vs release builds. As for exact floating point comparison, co...
(more)
over 3 years ago
Comment Post #280514 I would hope this gets implemented too. Couldn't find any feature request about it on meta.codidact though.
(more)
over 3 years ago
Comment Post #280449 It would probably be easier to generate a S-record or Intel hex file (text file formats). Then just search for the highest address, add this address to the size of the data stored at that address, then subtract the offset for where the flash starts from there.
(more)
over 3 years ago
Comment Post #280380 The terms "fullstack", "back end" and "front end" are only used in certain areas of programming. I think the terms are most commonly used in GUI and/or web applications(?). If you ask me, a "full stack" either means that the stack is full because you pushed too much onto it, or it means that you boug...
(more)
over 3 years ago
Comment Post #279895 The question was why to pick `do { } while(0)` over `{ }`. Your examples work just as fine with `{ }`.
(more)
over 3 years ago
Comment Post #279853 @Alexei It would be a perfectly fine use of meta to ask for feedback about a question draft before posting it live though.
(more)
over 3 years ago
Comment Post #279853 We actually discussed this very early on [here](https://forum.codidact.org/t/communities-dedicated-sites-for-professionals/320) (on the old forums, now closed). This was long before categories were invented though.
(more)
over 3 years ago
Comment Post #279853 As for having a separate newcomer site/category, it has been proposed many times before. I think it is easier to migrate the advanced topic to a separate site/category though. So for this specific site, it would mean that main Q&A should be the newbie friendly one, and we could add an "Expert" catego...
(more)
over 3 years ago
Comment Post #279853 The tabs = what's called categories on Codidact.
(more)
over 3 years ago
Comment Post #279772 Sounds like you can perhaps use some modified version of Prim's algorithm for the most efficient way to connect all nodes to a graph. Or some other manner of "greedy algorithm".
(more)
over 3 years ago
Comment Post #279081 @Martin Bonner As for Rasp Pi, it is a PC toy, not an embedded system. Using it for mission-critical embedded systems is probably criminal. Kind of the same situation as using some "lets play doctor" kit for kids in real medical surgery.
(more)
over 3 years ago
Comment Post #279081 @Martin Bonner MISRA-C covers array out of bounds access, see [Does MISRA check if array index out of bounds?](https://stackoverflow.com/questions/64800766/does-misra-check-if-array-index-out-of-bounds). A buffer overrun is a broader meaning though, it happens on the top application layer, such as sa...
(more)
over 3 years ago
Comment Post #278907 As for safety standards, the good ones focus on "what should we do when this error occurs" rather than "error must not happen". Of course you should prevent errors from happening, but you also need to have a plan of what to do when they happen anyway. This is where defensive programming saves the day...
(more)
over 3 years ago
Comment Post #278907 @Canina Yeah well, mainly "anecdotal" was a just a poor wording, "empirical evidence" is another thing entirely. That is, "I heard it from a guy on the internet" vs "I made field population studies of x cases".
(more)
over 3 years ago
Comment Post #279291 Disclaimer: I'm not a C++ guru and various subtle crap changed from C++11 and beyond. I _think_ I got the C++11 standard right and also that this part holds true for any version >= C++11.
(more)
over 3 years ago
Comment Post #279013 Is STL a thing in C++ still though? Has it not been swallowed up by the "standard library" just like everything else? Why do we need a tag for it to begin with?
(more)
over 3 years ago
Comment Post #278985 I wonder what's the rationale behind any of it. What if I have a question about the MySQL dbms specifically, which is not related to SQL language at all? Does this mean that the site will force me to add the extra unrelated SQL tag?
(more)
over 3 years ago
Comment Post #278978 This might be of interest: https://stackoverflow.com/questions/8295131/best-practices-for-sql-varchar-column-length
(more)
over 3 years ago
Comment Post #278303 @laserkittens Those are borderline on-topic. An excel formula is (arguably) a very limited form of programming. If you think they should be off-topic, you could propose it [here](https://software.codidact.com/questions/278648). However, it has been suggested to either migrate them to either a "Power ...
(more)
over 3 years ago
Comment Post #278952 On SE, unusued tags deleted themselves fairly quick, I think within 24 hours?
(more)
over 3 years ago
Comment Post #278924 Besides, lets say you drop templates and overload int + float functions only. You will most likely need to write the implementation of those functions differently, because these types are compared & promoted differently.
(more)
over 3 years ago
Comment Post #278924 @dmckee DRY is probably the most overrated and dangerous design principle out there, though. Often it causes more problems than it solves, due to overly complex and obscure code. Maintaining a template metaprogramming hell will almost certainly cause more bugs than maintaining 2 functions with code r...
(more)
over 3 years ago
Comment Post #278924 Yet another option is to [KISS](https://en.wikipedia.org/wiki/KISS_principle) and not use templates at all, but to provide & overload functions for the supported types only. Because restricting the type-generic interface to only support certain types kind of goes against common sense.
(more)
over 3 years ago
Comment Post #278907 "Aviation safety is built, pretty much completely, on that kind of "anecdotal evidence"" Well, not really. Rather a group of experts getting together and agreeing on how things should be done. If you can quote for example DO-178, then that's a well-respected standard and canonical source.
(more)
over 3 years ago
Comment Post #278899 Questions about the _use_ of software for other purposes than programming is clearly off-topic. Whether we have somewhere to direct such questions or not doesn't matter. This is not about scripting but about how to use a command line zip program.
(more)
over 3 years ago
Comment Post #278895 If you enforce a style that always uses braces you can check it with static analysis tools though. Unlike using the wrong variable and similar application level bugs.
(more)
over 3 years ago
Comment Post #278896 But in the end experienced C programmers have already been through missing semicolon, missing brace hell. It's an initiation rite that everyone learning C must go through. After you have coded for some 5+ years you can spot and fix these kind of bugs even if you wake up in the middle of the night wit...
(more)
over 3 years ago
Comment Post #278893 So the phantom answer was caused by ‭luap42 is a ghost 👻? Makes sense, [status-haunted] :)
(more)
over 3 years ago
Comment Post #278832 @Peter Taylor‭ Combining several tags to form a meaning rarely ends well. I think making one tag per program will work better in the long run.
(more)
over 3 years ago
Comment Post #278841 Command line is not programming. Everyone else but conservative programmers have stopped using command line, but that doesn't make it programming still. Once upon a time, regular users used command line, in the days of UNIX and DOS.
(more)
over 3 years ago
Comment Post #278847 Threaded comments would be awesome!
(more)
over 3 years ago
Comment Post #278830 Anyway, I think such recommendation lists may work out well if they are extensively curated and there are rules for them. I tried to make a push for quality [here](https://meta.stackoverflow.com/a/379637/584518) but nobody was interested in that. From what I hear the C++ book list is of decent qualit...
(more)
over 3 years ago
Comment Post #278830 I've been fighting a losing battle to get that one as well as the ["list of random books that exist and some might even be about programming"](https://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read) deleted. SE community managers went in and ban...
(more)
over 3 years ago
Comment Post #278830 The C book list on SO is _not_ canonical, it's a complete fiasco and a perfect example of how horribly wrong community-maintained resource collections can go when they aren't actually maintained. Note the "Warning!" disclaimer on top of the post and the meta discussion.
(more)
over 3 years ago
Comment Post #278780 Physical vs virtual memory has nothing to do with the subject. From a general computer perspective, memory segments either reside in RAM or ROM, where RAM is a sloppy but industry standard term for "read/write memory".
(more)
over 3 years ago
Comment Post #278791 Regarding stack & heap specifically, that was a good call. There is the data type stack and there is heapsort. Dynamic memory allocation and heapsort in particular have nothing to do with each other.
(more)
over 3 years ago