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 Estela
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #286974 |
Indeed they are distinct. Different is the word I used. The common "Do you know C/C++?" question is way missguided. They are however way closer than C++ and C#. The similarity goes beyond sometimes having similar semantics. The C++ language standard specification references the C specification. See s... (more) |
— | over 2 years ago |
Edit | Post #286979 |
Post edited: |
— | over 2 years ago |
Edit | Post #286979 |
Post edited: |
— | over 2 years ago |
Comment | Post #286979 |
The standard states in 6.2.6.1 5 when UB happens with trap representations. There are 2 scenarios. "is read by an lvalue expression that does not have character type" does not apply to the question at hand unless the variable is volatile. "is produced by a side effect that modifies all or any part of... (more) |
— | over 2 years ago |
Comment | Post #286979 |
No, it is not an over-simplification.
The standard states in 3.17.3 that *unspecified* values are valid. Hence they can be used in all scenarios where valid values can be used.
This does not contradict your scenario. It just means that in your scenario the the variable cannot be holding an *unspeci... (more) |
— | over 2 years ago |
Edit | Post #286979 |
Post edited: |
— | over 2 years ago |
Edit | Post #286979 |
Post edited: |
— | over 2 years ago |
Comment | Post #286974 |
This is for PLC code.
Global variables associated to I/O are defined in a file which is not C code. But they are available for C code. The freestanding C compiler for the PLC deals with that.
It is possible to have different configurations in the build environment. And those configurations may incl... (more) |
— | over 2 years ago |
Comment | Post #286987 |
Excellent answer which shows how easy it is to get the standard wrong, as I did. (more) |
— | over 2 years ago |
Edit | Post #286979 | Initial revision | — | over 2 years ago |
Answer | — |
A: Cast uninitialized variable to (void) Yes, it is safe unless the variable is volatile. The term used in the C99 standard for the value of an "uninitialized" variable is indeterminate. From C99 standard: Section 6.2.4 Storage durations of objects (emphasis mine): > 5 For such an object that does not have a variable length ar... (more) |
— | over 2 years ago |
Comment | Post #286974 |
I wonder if I should also tag this C++ also. The answer *might* be different for these different languages. But the question is going to be exactly the same. (more) |
— | over 2 years ago |
Edit | Post #286974 | Initial revision | — | over 2 years ago |
Question | — |
Cast uninitialized variable to (void) Is it undefined behaviour to cast an uninitialized variable to (void)? Example: ``` int main() { int x; (void)x; return 0; } ``` (more) |
— | over 2 years ago |
Comment | Post #282129 |
@Lundin I do not have a preference for Discord. Y wrote just what is being used right now in Codidact. There are plans for integrated chat but not right now (https://meta.codidact.com/posts/278018#answer-278018) . And yes, after searching for it, I agree about Discord being spyware (https://spyware.... (more) |
— | over 3 years ago |
Edit | Post #282129 | Initial revision | — | over 3 years ago |
Answer | — |
A: Etiquette for posting comments Proposal: > Can Include > A link to a chat room related to the question or answer. Even if tangentially. I've always found SO to be too dry. Sure, pleasantries are as helpful in a question or answer as finding them in each page of an encyclopedia. But some times you find someone with a com... (more) |
— | over 3 years ago |
Comment | Post #281810 |
That being said. And this applies to office tools. I would say that Turning Completeness is sufficient to qualify but not necessary. So if something, like VBA, is Turing complete we need look no more. It belongs here. (more) |
— | over 3 years ago |
Comment | Post #281810 |
... doubt relevant here. Same happens with regular expresions, which are not turing complete but are a programming language. Hmmm, yeah, scrap my idea. (more) |
— | over 3 years ago |
Comment | Post #281810 |
batch script is Turing complete. HTML... I am not an expert, but it is or it was a *description* language as opposed to a *programming* language. So asking if HTML is Turing complete is like asking if an apple is Turing complete. It still has a place here because programming is not the only thing rel... (more) |
— | over 3 years ago |
Edit | Post #282087 |
Post edited: |
— | over 3 years ago |
Edit | Post #282087 |
Post edited: |
— | over 3 years ago |
Edit | Post #282087 | Initial revision | — | over 3 years ago |
Answer | — |
A: Do we need more specific up/down vote reasons for Software Development community? I prefer the current way. Regarding tooltips Experience shows that tooltips can survive a lot of time being obsolete. In SO in meta they have "This answer is useful" and "This answer is not useful". But that is not really what it means in meta there. It is ok to downvote if you disagree while t... (more) |
— | over 3 years ago |
Comment | Post #281810 |
Regarding the frontier. I would put it at Turing completeness. So Excel's formulae (without LAMBDA) go to Power User. VBA to Software Development. That being said... Using a limited subset of the features of a language can make it non Turing complete. And people commonly using such subset will feel t... (more) |
— | over 3 years ago |
Edit | Post #282067 |
Post edited: |
— | over 3 years ago |
Edit | Post #282067 | Initial revision | — | over 3 years ago |
Question | — |
Tools for debugging coredumps For debugging running programs I often use whatever is integrated with the IDE I am using. QtDeveloper right now, but also used Eclipse, Netbeans and others. Most of them just use gdb under the hood though. Or I use gdb directly if working through a ssh connection or in an embedded system. For de... (more) |
— | over 3 years ago |
Edit | Post #281992 |
Post edited: |
— | over 3 years ago |
Edit | Post #281992 | Initial revision | — | over 3 years ago |
Answer | — |
A: How to copy a PostgreSQL database to another machine. On the server I dumped to a file using these commands ``` user@server:$ sudo -i -u postgres postgres@server:$ pgdump databasename > dumpfile ``` Then I copied dumpfile to my machine and executed these commands in my machine ``` estela@mymachine:$ sudo -i -u postgres postgres@mymachine:$ psq... (more) |
— | over 3 years ago |
Edit | Post #281991 | Initial revision | — | over 3 years ago |
Question | — |
How to copy a PostgreSQL database to another machine. I have to debug an error which seems to only happen with some set of data present in our PostgreSQL []()database. I'd like to copy said database to my local machine so I can perform tests without affecting real production servers. (more) |
— | over 3 years ago |
Comment | Post #281585 |
I agree with hkotsubo. The preview should be consistent with the resulting HTML. But I also agree with ArtOfCode, the issue is not important enough. Even the consistency is not important enough. As for how to show an example... The same way that C++ examples are shown despite C++ code not running dir... (more) |
— | over 3 years ago |
Edit | Post #281760 |
Post edited: |
— | over 3 years ago |
Edit | Post #281760 | Initial revision | — | over 3 years ago |
Answer | — |
A: Is it OK to use abusive content on code? Yes, that particular post should be marked as abusive and the code replaced by. ``` if(a==b){ print("We have a problem, a is equal to b") } ``` Assuming that indeed the code is dealing with a situation where a==b is a problem. Would need the whole question and answer to know for sure. I d... (more) |
— | over 3 years ago |
Edit | Post #281728 |
Post edited: |
— | over 3 years ago |
Edit | Post #281728 | Initial revision | — | over 3 years ago |
Answer | — |
A: How do I get the error message out of a requests exception? The documentation for requests.RequestException > requests.exceptions > > > This module contains the set of Requests' exceptions. > from urllib3.exceptions import HTTPError as BaseHTTPError > > > class RequestException(IOError): > """There was an ambiguous exception th... (more) |
— | over 3 years ago |
Comment | Post #281417 |
@artaxerxe I've fully reworked my answer. (more) |
— | over 3 years ago |
Edit | Post #281417 |
Post edited: |
— | over 3 years ago |
Edit | Post #281417 | Post undeleted | — | over 3 years ago |
Edit | Post #281417 | Post deleted | — | over 3 years ago |
Comment | Post #281415 |
Ok, so a line with id=X childId=C and parentId=P means that C is the child of P. I was understanding that C was the child of X and P the parent of X. Another question. Is the relationship transitive? That is, in your example, since 5 is the child of 1 and 1 is the child of 3. Does it mean that 5 shou... (more) |
— | over 3 years ago |
Edit | Post #281417 | Initial revision | — | over 3 years ago |
Answer | — |
A: How to break infinite loop in CTE I have not managed to make an answer with standard SQL. I've had to resort to using arrays. And I don't have a Microsoft SQL Server RDBMS at hand. So I've done it instead in PostgreSQL. You'll just need to use whatever equivalent array functions sql-server has. ARRAY(SELECT XX) : constructs an arra... (more) |
— | over 3 years ago |
Comment | Post #281348 |
Cool, `<span>` renders exactly what I want and conveys intent properly. (more) |
— | over 3 years ago |
Edit | Post #281344 |
Post edited: |
— | over 3 years ago |
Comment | Post #281347 |
@ArdOfCode `dead.sh​` works fine indeed. That is a good enough answer for me. (more) |
— | over 3 years ago |