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
Answer A: What's the difference between Inheritance and Polymorphism?
> Does Inteheritance actually meant return and Polymorphism meant to print out values? This doesn't make the slightest sense... Probably you should forget all you've heard - don't "watch tutorials", start over with a good book on the subject written by an actual expert. To answer the questions,...
(more)
over 3 years ago
Comment Post #282685 You can ask on their meta if the question would be on-topic there.
(more)
over 3 years ago
Comment Post #282708 How can an off-topic answer even be good or of high quality? That's contradicting. Unless our ambition is to create an "ask about stuff" community where literally everything is on-topic.
(more)
over 3 years ago
Comment Post #282685 The question is borderline off-topic... but you might want to consider a format which can be used by parsers to present the text in pretty ways. CSV, XML or Doxygen.
(more)
over 3 years ago
Edit Post #282676 Post edited:
over 3 years ago
Edit Post #282676 Initial revision over 3 years ago
Answer A: Why does this code that uses a pointer-to-pointer-to-int segfault?
Bugs: - `int range = 0;` should be `int range;` and then call the function like ` ftultimaterange(&range, min, max);`. That's the whole reason the parameter is pointer-to-pointer, so that you can return a malloc:ed pointer through a parameter. - `while (min `length`
(more)
over 3 years ago
Comment Post #282567 @#54114 Ignoring the "re-inventing C" argument, then your code is still more verbose than canonical C, which would be `char c = 'A'; say((int)c);`. (Though `'A'` is actually of type `int` to begin with)
(more)
over 3 years ago
Comment Post #282567 @#54114 You don't need to put them in the .c file. Whether to keep them in the .h file or its corresponding .c file is mostly a matter of style.
(more)
over 3 years ago
Comment Post #282558 Indeed. This doesn't seem to answer the question, but just tosses out a bunch of generic opinions about random assorted programming languages, without any specific context in mind.
(more)
over 3 years ago
Edit Post #282567 Initial revision over 3 years ago
Answer A: BMPL: The language I'll bring to life
First of all, I realize that this is mostly a library you've implemented while learning programming, for the sake of learning, which is great. So I would rather not put a "wet blanket" over your attempts of coding and coming up with libraries, keep on doing that! However, I hope you realize that a...
(more)
over 3 years ago
Comment Post #282559 How is one expected to use this library? It is custom for library APIs to have one "super header" including all other headers of that library, so I'd expect to find some "bmpl.h" and only include that one. (Note that "super headers" is generally bad practice except for front-end to large libraries.) ...
(more)
over 3 years ago
Edit Post #282565 Post edited:
over 3 years ago
Edit Post #282566 Initial revision over 3 years ago
Answer A: What compiler options are recommended for beginners learning C?
My recommended beginner setup for gcc-like compilers is: `-std=c11 -pedantic-errors -Wall -Wextra -Werror` Here is an explanation of what these options do: - `-std=c11`. gcc & friends are by default set to include non-standard language extensions. These extensions are known as "GNU C" and ex...
(more)
over 3 years ago
Edit Post #282565 Initial revision over 3 years ago
Question What compiler options are recommended for beginners learning C?
When reading questions about C programming from beginners, I very often see them describing peculiar run-time errors and crashes, segmentation faults and similar. They have spent a lot of time chasing down the bug but failed. Then upon viewing their code, I notice that the code should never have "...
(more)
over 3 years ago
Edit Post #282489 Post edited:
almost 4 years ago
Comment Post #282489 If there's enough interest I could write another of them self-answered Q&A about how to do OO in C. Private encapsulation, setter/getters, inheritance & polymorphism. There's plenty of examples at SO but I find them lacking. I think I've written a few there myself too but I can't find them.
(more)
almost 4 years ago
Edit Post #282489 Initial revision almost 4 years ago
Answer A: constructor in C
The warnings just say that you can't pass a string literal with type `char[]` to a function taking a `struct Book` parameter. The function should be declared as: void initBooktypes (const char title, const char author, int pages); And in the constructor, `aTitle` needs to be `aTitle->title`...
(more)
almost 4 years ago
Comment Post #282486 @#53922 Depends on the context. During declaration of the variable, you can write `Node* ptr`, `Node *ptr` or `Node * ptr`, it's a matter of style. (the former 2 styles are most common). When _de-referencing_ the pointer to get the items it points at, you always write `*ptr`.
(more)
almost 4 years ago
Comment Post #282464 I wrote a Q&A FAQ about uninitialized pointers here: https://stackoverflow.com/questions/37549594/crash-or-segmentation-fault-when-data-is-copied-scanned-read-to-an-uninitializ
(more)
almost 4 years ago
Comment Post #282206 It's kind of strange that tags have case in the first place. I wonder if they were made that way on purpose. If so, we'd need to come up with guidelines for when & how to use upper case. If not, it just seems like a source for sloppy-looking tags.
(more)
almost 4 years ago
Comment Post #282129 I don't like Discord specifically simply for the reason that it's spyware. Scanning which programs you have installed on your computer and sending that information over the internet, for unclear and highly questionable purposes. It would good to have a chat room though. Is IRC still a thing? :)
(more)
almost 4 years ago
Comment Post #281810 @Estela‭ I don't think we can use that as a distinction. HTML, SQL, batch script and so on is on-topic here.
(more)
almost 4 years ago
Edit Post #281810 Post edited:
almost 4 years ago
Comment Post #282044 Check if `root_element` is NULL or not, straight after calling `xmlDocGetRootElement`.
(more)
almost 4 years ago
Comment Post #281859 Well I didn't even know there were tool tips before you posted this. Nor did I know SO had them on the voting buttons and I've been using that site for over 10 years... apparently my brain filters out such things as spam and doesn't register them. So changing/implementing them might not necessarily h...
(more)
almost 4 years ago
Comment Post #281872 My only concern is that it will seem like the site is just about Office questions and nothing else, it will momentarily "drown out" all other content. But the migration is just a single event, so maybe it should be done sooner rather than later.
(more)
almost 4 years ago
Comment Post #281859 Not sure if I'm following, sorry. Are you proposing that we change the tool tips when we mouse-over the vote buttons? Or are you asking if we should implement a specific page for this community to replace the default https://software.codidact.com/help/voting? Or both?
(more)
almost 4 years ago
Comment Post #281872 Well at this point it doesn't look like my proposal for that category is getting any strong consensus, so it's unlikely to be created any time soon. "Software Category" would just be the general Q&A on Power Users. For now, that's the most suitable place to move all those questions. But it will creat...
(more)
almost 4 years ago
Comment Post #281475 @Istiak‭ No. I was just able to reproduce the bug on Firefox & Chrome both using my phone. Latest versions no extensions, no plug-ins.
(more)
almost 4 years ago
Edit Post #281810 Initial revision almost 4 years ago
Answer A: Can we migrate office suite related questions to the Power Users community?
I went ahead and made a proposal on Power User that a separate category for office suites should be made. I suggest that we wait and see where that proposal lands. If a category for these questions is made, we can go ahead and migrate. (Such a category would also soften the "bump blow" that comes...
(more)
almost 4 years ago
Comment Post #281808 Kind of depends on how you define these terms. All of them go back to the earliest days of computing, in some form. Private encapsulation of autonomous "abstract data types" was around very early, long before "modern" OOP emerged in the 1980s somewhere.
(more)
almost 4 years ago
Comment Post #281475 @Istiak‭ The latest version, since it auto updates.
(more)
almost 4 years ago
Comment Post #281784 @Monica Cellio‭ No but they will be plenty and risk to drown out all the other content because of it. Just look at Power Users right now, someone dropped 10 or so questions about MS Word there. The same will happen when we migrate all office suite-related questions from here to there.
(more)
almost 4 years ago
Comment Post #281784 Better wait until their scope has settled. If we are not launching an office suite community then it would make lots of sense for Power Users to create a category for it.
(more)
almost 4 years ago
Comment Post #281640 This post regarding scope is still open for community suggestions [Community feedback: What type of questions can I ask here?](https://software.codidact.com/posts/278648) Or we could start new ones. I suppose it might be easier to overview (and archive) if we post one question per issue instead of th...
(more)
almost 4 years ago
Comment Post #281640 Also, I still think the scope of this site is still too vague for anyone to moderate it. There's a lot of corner cases which the community has yet to come up with a consensus about: tool/software recommendations, asking "where to find documentation" questions, homework dump policy, "how is x designed...
(more)
almost 4 years ago
Comment Post #281640 What about the discussion about the "curate" privilege from meta [here](https://meta.codidact.com/posts/281579)? If it is something similar to "20k+" on SE rather than full moderator duties, then it might be easier to get volunteers. For example, I probably don't mind chewing through edit/close revie...
(more)
almost 4 years ago
Comment Post #281655 Generally, we shouldn't use the worst cases of cursing such as the F word because those collide with the "be nice" [code of conduct](https://software.codidact.com/policy/code-of-conduct). But in some cases the name of programming languages _are_ curses such and then we need to be able to refer to the...
(more)
almost 4 years ago
Comment Post #281606 You simply can't discuss proper program design in vague and abstract terms - that's nothing but a source of pointless & badly designed abstraction layers. _What_ is the data that's being passed around and _why_ does it need to be passed around? Does each node know the destination or is it the server ...
(more)
almost 4 years ago
Comment Post #281520 @dmckee‭ Hmm yeah I just realized I'm not quite up to date with C++. I was thinking `auto_ptr` but forgot there's a better alternative nowadays. Anyway, plain old manual allocation would do the trick too.
(more)
almost 4 years ago
Edit Post #281565 Initial revision almost 4 years ago
Answer A: Etiquette for posting comments
Regarding "snark" - it is very hard and subjective to define. Our overall code of conduct says "be nice", but where do you draw the line. On SO, general gruff attitude tends to be treated very differently from moderator to moderator. That's obviously far from ideal. We would have to be smarter abo...
(more)
almost 4 years ago
Comment Post #281528 @luap42 Ok so I found one of the old posts I wrote at those forums. I've updated it a bit and posted a proposal on meta.codidact here: [Giving question feedback in private - a moderating system to reduce conflicts](https://meta.codidact.com/posts/281546)
(more)
almost 4 years ago
Comment Post #281539 "I can see that what needs to be said has been, and there's no need to join in" We could also move all feedback to a special tab which you only visit in case you are actually interested in helping the OP.
(more)
almost 4 years ago