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 Martin Bonner‭

Type On... Excerpt Status Date
Edit Post #285105 Post edited:
This is C not C++, empty parens imply an arbitrary number of arguments, not "no arguments".
over 2 years ago
Suggested Edit Post #285105 Suggested edit:
This is C not C++, empty parens imply an arbitrary number of arguments, not "no arguments".
(more)
helpful over 2 years ago
Comment Post #284193 I would argue that _exactly_ how the rounding is to be done needs to be specified in the terms and conditions of the investment product, and the implementation needs to follow that specification.
(more)
about 3 years ago
Comment Post #283852 This certainly does _not_ apply in python. The natural way to do this in python is to place the functions (as standalone functions) in a module, import the module, and use the functions. Indeed to continue your analogy, there _is_ a module called `math` which contains a whole bunch of mathematical ...
(more)
about 3 years ago
Comment Post #282566 "Unless you're compiling code that is 20-30 years old by now" - you say that like it is unlikely. Some of the code in my employers codebase was checked in more than 20 years ago. It gets compiled every time I do a build. (I believe we have moved on to at least C99).
(more)
about 3 years ago
Comment Post #283058 It's really hard to remember that "this whole Unicode mess" (a description I wholeheartedly endorse) really _is_ an improvement over what we had before.
(more)
about 3 years ago
Edit Post #281906 Initial revision over 3 years ago
Answer A: Did functional programming predated Object oriented programming or rather the opposite?
I would argue that functional programming predates functioning computers. Alonzo Church developed the Lambda Calculus in the 1930s. This may be a fairly austere form of functional programming, but I think it qualifies. As noted in a comment, Lisp (which was heavily influenced by the lambda c...
(more)
over 3 years ago
Comment Post #279597 Will also match `x1=y2; x1=y2;` (which is I suspect why it is being downvoted).
(more)
almost 4 years ago
Comment Post #280214 I would strongly recommend that the customer can log in with their email address - they will be able to remember that, but can easily forget a login ID. (Unless you mean _you_ are going to generate the password for them.)
(more)
almost 4 years ago
Comment Post #279772 There might be some heuristics available based on the actual application. For example, if this is a carousel of tools for a CNC machine, then you probably want to cluster course tools together for the initial rough cuts, and fine tools together for the finishing passes. (Of course, the tool change ...
(more)
almost 4 years ago
Comment Post #279762 1. Try your test program creating a symlink from "/home/ray/Projects/vpanel/ttymxc4" to "/dev/pts/5". What is the behaviour? Does your `.exists` test also succeed in your test prog? If you wait 10 seconds, does the `.exists` test still succeed? (Is something destroying the symlink?). What happens...
(more)
almost 4 years ago
Comment Post #277331 @chris barry - `arr - 1` is undefined behaviour. On some architectures/machines it can trap at run-time. (I'm not sure any such machines are widely used these days, but they have existed, and they may do so in the future.)
(more)
almost 4 years ago
Edit Post #279773 Initial revision almost 4 years ago
Answer A: What's the difference between null pointers and NULL?
To answer one specific part of the question: > Does this have anything to do with some systems allowing a different representation of the null pointer other than zero? Sort of. A null pointer constant is zero or zero cast to a `void `, but that doesn't mean that a null pointer is necessarily ...
(more)
almost 4 years ago
Comment Post #277288 Why can't a repository be a sub-module in two different repositories? I'm not aware of anything that would make that difficult. (No comment on sub-trees because I'm not familiar with them).
(more)
almost 4 years ago
Comment Post #278907 Err, Python is the counter example to this question. You don't add the braces because the indentation is semantically significant.
(more)
almost 4 years ago
Comment Post #279081 Buffer overruns very much *are* covered by MISRA-C. Also, I'd argue that there is quite a lot of embedded code running on a RasPi or similar spec machine, and outlawing dynamic memory may not be appropriate there either.
(more)
almost 4 years ago
Comment Post #279364 The other "good reason" is when a module may or may not be present, and you need to cope with both situations. Both of these are rather unusual cases.
(more)
almost 4 years ago
Comment Post #279364 "A good reason" for not doing `import` at the top of a module is when you have a *lot* of imports which are slow and rarely used. Only doing them when required can speed up the normal case. `import normal_caveat # premature optimization is the root of all evil`
(more)
almost 4 years ago