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 Olin Lathrop‭

Type On... Excerpt Status Date
Edit Post #291047 Initial revision about 1 month ago
Answer A: Email alerts for notifications
Look more closely:
(more)
about 1 month ago
Comment Post #290629 We can't tell what "this" in your first sentence refers to.
(more)
3 months ago
Comment Post #290488 I don't have any data either, but I've often thought that these "strong" passwords were *less* secure than letting me pick something easy. With a difficult password, I have to write it down. If allowed to make something easy to remember, I can write down a short hint that only I would know the mean...
(more)
4 months ago
Edit Post #290340 Post edited:
5 months ago
Edit Post #290340 Initial revision 5 months ago
Answer A: What does "namespace" mean?
A namespace is a category of names within which they must all be unique. This also means that names do not need to be unique between namespaces. For example, states of the USA is a different namespace from countries of the world. "Georgia" has a completely different meaning in these two namespac...
(more)
5 months ago
Edit Post #288928 Initial revision 10 months ago
Answer A: What are disadvantages of static functions (ie functions with internal linkage) in C?
There is basically only one reason not to use static functions in C, as opposed to functions with global scope. That's if you want to access the function from outside the module. Otherwise, if the function is only used in the specific module, then it's beneficial to not export it to the whole wor...
(more)
10 months ago
Edit Post #288208 Initial revision 11 months ago
Answer A: Library that is platform-specific via selective compilation?
The general mechanism you describe has been in use since there were cross-compilers and libraries that were meant to provide the same application interface on different platforms. Your specific example using XML is newer of course. Any competent build system has the ability to switch include file...
(more)
11 months ago
Edit Post #287908 Post edited:
about 1 year ago
Edit Post #287908 Initial revision about 1 year ago
Answer A: memcmp(3) memory containing invalid values
MEMCMP simply compares the memory bits between two locations. This has nothing to do with whatever those bits might mean. Your first example, on the other hand, compares the contents of variable X with the value 0. Doing a MEMCMP with an area of memory with all bits 0 is the same thing, only if ...
(more)
about 1 year ago
Edit Post #287637 Initial revision over 1 year ago
Answer A: Deciding if a concept can be materialized to a tag
The sole purpose of tags should be to help classify posts into what they are roughly about. Being able to easily get the broad topic of posts is obviously useful in searches, but may also be useful for statistics in the future. For example, if a large fraction of posts are about a particular lang...
(more)
over 1 year ago
Edit Post #287596 Initial revision over 1 year ago
Answer A: Should we allow answers generated by ChatGPT?
Now that we've had a few of these answers, I really don't like them. It seems there are three separate problems with the ChatGPT answers we have seen: Quote-only. Just like we don't allow link-only answers, we shouldn't allow quote-only answers. Someone answering here needs to provide insight...
(more)
over 1 year ago
Edit Post #287553 Initial revision over 1 year ago
Answer A: How to proportionally convert a number in the range of -1 and 1 to a number in the range of 0 and 319
You want to scale from one linear range to another. That can always be done with &nbsp; &nbsp; y = mx + b where X is the input value and Y the output value. M is the scale factor, and B the offset. You want to map (-1 .. 1) to (0 .. 319). The scale factor therefore has to be 319/2 = 159....
(more)
over 1 year ago
Edit Post #287482 Initial revision over 1 year ago
Answer A: Are questions about language design on-topic?
This is a good question. It depends on how much this site is about getting language X to do Y versus the higher level concepts of software design and computer science that should largely transcend specific languages. We seem to mostly get the first kind of question here. As a result, I think tha...
(more)
over 1 year ago
Edit Post #287364 Post edited:
over 1 year ago
Edit Post #287364 Initial revision over 1 year ago
Answer A: How would I go about chunk loading around player in a 3 dimensional cartesian coordinate space
It seems I'm missing something since the answer should really be obvious. Nonetheless, I'll answer what you appear to be asking to get the obvious case out of the way. The method has already "fallen apart" due to the extra axis of 2D. In 1D it's nice and simple. You grab N behind and N in f...
(more)
over 1 year ago
Edit Post #287062 Initial revision over 1 year ago
Answer A: C naming convention, module trigrams?
Personally, I don't like the first form (initCanDriver) at all. The routine name is supposed to present some information as to where/how the routine fits into the larger software world. Information is best presented in global to local context order. This is because the local information often ma...
(more)
over 1 year ago
Comment Post #286726 Why not just make DIR the repository instead of MWE?
(more)
almost 2 years ago
Comment Post #285148 <i>"as shown in my code below"</i>. What code? There is no code anywhere in your question.
(more)
almost 2 years ago
Comment Post #286504 I agree that the 8 digits of precision is silly and meaningless, but I'm having a hard time believing that keeps people from using the site. You only see it when hovering over the votes, and it does nobody any harm. Most likely it is the default formatting of the floating point value, and the volun...
(more)
almost 2 years ago
Comment Post #286440 I don't understand what Personal ID or Physical ID have to do with calculating area, nor which of those terms you mean for "pid". Lower case implies it's a word, not an abbreviation, but you seem to be using it as an abbreviation. I can't even guess at a definition of PID that would allow whatever ...
(more)
almost 2 years ago
Comment Post #286411 2 days and no response, so -1 for the dump and run.
(more)
almost 2 years ago
Comment Post #286411 It took me a while to understand your "watertight mesh". Do you really just mean a closed polyhedron? That's what it seems, but it's not clear whether that's all. Your definition in the first sentence is way too hand-wavy. For example you refer to properties of "faces", but nothing previously men...
(more)
almost 2 years ago
Edit Post #286375 Post edited:
almost 2 years ago
Edit Post #286375 Post edited:
almost 2 years ago
Edit Post #286375 Initial revision almost 2 years ago
Answer A: Explaining the result of an arithmetic expression in JavaScript
Now, (x != 42) which is false yields 0 OK so far. so I have expected to get in console "-42" No. As you say, the expression evolves: (x == 42) -1 + (x != 42) x (1) -1 + (0) x -1 + 0 Negative one plus zero is negative one.
(more)
almost 2 years ago
Comment Post #283440 Shouldn't the first example result in uninitialized variable warning?
(more)
almost 2 years ago
Comment Post #286189 My point wasn't about the family part, but the functions themselves. I don't even have clue off the top of my head what atoi, strtol, strtof, etc, do. Anyone else that does C only occasionally probably doesn't either.
(more)
about 2 years ago
Comment Post #286189 A short one-line description of the functions you mention would be useful. I'm probably not the only one that doesn't write a lot of C code, and isn't intimately familiar with the standard libraries. For example, I don't know what the "atoi family of functions" is without looking them up, which is ...
(more)
about 2 years ago
Edit Post #286193 Initial revision about 2 years ago
Answer A: Should I check if pointer parameters are null pointers?
As with most everything in engineering, how much call arguments to a subroutine should be validated is a tradeoff. There is no single universal right answer. Note that checking for null pointers is only one instance of validating information from elsewhere before acting on it. Advantages of data...
(more)
about 2 years ago
Comment Post #286041 Much better. +1 now.
(more)
about 2 years ago
Comment Post #286041 That animated picture is seriously annoying and distracting!
(more)
about 2 years ago
Edit Post #285840 Initial revision about 2 years ago
Answer A: Measuring arithmetic overflow checking overhead in C#
Most general purpose computing operating systems can't be counted on for accurate timing as short at 1 to 2 ms. Any test case should run for a few seconds at least. Those runs should then be repeated a few times to get a sense for how much noise is on the data. Either increase the complexity of ...
(more)
about 2 years ago
Suggested Edit Post #285813 Suggested edit:

(more)
declined about 2 years ago
Edit Post #285728 Initial revision about 2 years ago
Answer A: Why object-oriented instead of class-oriented?
Object and Class aren't necessarily the same thing. Back in the 1980's when object oriented programming started to be talked about by practicing software engineers writing real production code, the word "class" didn't come up much. That got popularized by C++ and Java, where class actually has a sp...
(more)
about 2 years ago
Comment Post #285368 @Monica: I would probably write the script to completely re-create .gitignore each time. It wouldn't bloat, but the list of other files you want in .gitignore would have to be know to the script. You could code them into the script, but I'd probably create a file like .myignore. The script would s...
(more)
over 2 years ago