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 aghast‭

Type On... Excerpt Status Date
Comment Post #290786 Here's an excerpt from `man tar`: > ## NOTE > This manpage is a short description of GNU tar. For a detailed discussion, > including examples and usage recommendations, refer to the GNU Tar Manual > available in texinfo format. If the info reader and the tar documentation > are prop...
(more)
about 1 month ago
Comment Post #290786 No. GNU decided at some point that man pages were "so last century," and that all the good info would be in ~~emacs~~^W^W in the "info" browser. So if you check "man some-gnu-program" there's a fair chance the last paragraph will be something like "we've provided this man page as a courtesy, but the ...
(more)
about 1 month ago
Edit Post #290786 Initial revision 2 months ago
Question What guarantees does Bash make about order of :- Parameter Expansion when it is not in POSIX mode?
I tried to check `info bash` but only got a copy of the `man` page. This is when I learned that I could `apt install bash-doc` to get the "full" Bash manual. After checking both the info pages and the man page, I found this is pretty much the only description of Parameter Expansion: > In eac...
(more)
2 months ago
Edit Post #290783 Initial revision 2 months ago
Answer A: What is the difference between hashing and encryption?
I would say the difference is one of intent. In encryption, the objective is to hide the information contained in such a way that third parties cannot get it, but approved second parties can retrieve it (with the key). In pursuit of this, security is the primary goal, with performance as a second...
(more)
2 months ago
Comment Post #290316 I suspect that if you go far enough back, `stdin` was probably an expression macro, like `&Global_file_structs[0]` or some such. So this is probably the case of some early library corrupting the standard. They probably could have done a better job of *allowing* the name to be a macro without *requiri...
(more)
4 months ago
Edit Post #290316 Initial revision 5 months ago
Answer A: What is the purpose of having underscored names and then defining a non-underscored alias to it?
Quoting here the 1999 C standard, as being close enough to "this century" while also being hella old. Source: ISO/IEC 9899:1999 > 7.19 Input/output > 7.19.1 Introduction > 1 The header `` declares three types, several macros, and many functions for performing input and output. > ... > ...
(more)
5 months ago
Comment Post #290215 When I say `gcc -E -xc -` and type: #define FOO(x) x+1 #define BAR(x) x,1 int y = FOO(BAR(10)); I get back: int y = 10,1 +1; If I say #define LIST3(delim, a, b, c) a delim b delim c #define INIT3(a, b, c) { LIST3(COMMA, a, b, c) } #define COMMA...
(more)
5 months ago
Edit Post #290215 Post edited:
Add tips about stringizing, code
5 months ago
Edit Post #290215 Initial revision 5 months ago
Answer A: When should I parenthesize macro arguments in C?
With macros, you are better off using parens at any time you use one of the parameters in an expression context. The problem with operator precedence is not limited to + and . Did you know that comma (`,`) is an operator? Did you know that comma has a lower precedence than assignment? Did you know...
(more)
5 months ago
Edit Post #287136 Initial revision over 1 year ago
Question How do I (compactly) initialize a 2-d array of structs with the same value?
I learned about the `` operator for array-repeat, and I love it. I have a struct that contains a 2-d array of inner structs, like const D1 = 30; const D2 = 40; const Inner = struct { .a: u32, .b: bool }; const Outer = struct { // ... .array: D1Inner, ...
(more)
over 1 year ago
Edit Post #286625 Initial revision almost 2 years ago
Question How to pass in a readable file (stream) to a Zig function?
Most of the example code in the Zig online docs is in the form of test blocks. Sadly, this means there aren't quite enough examples of how to write functions. Given that one has a readable file, possibly including `stdin`, what is the "ziggy" way to pass that to a function that will read input fro...
(more)
almost 2 years ago