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 Hyperlynxâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Question | — |
Continuously read from piped input using Vim In Vim, it's possible to tell it to read from stdin instead of a file, by using `vim -`. This is so that you can pipe the output of one command into Vim, to view/edit it there. The problem I'm facing is that Vim seems to wait until the pipe is closed before starting up and displaying anything. It ... (more) |
— | over 2 years ago |
Answer | — |
A: What are the disadvantages of using static methods in Java? > I think I can access the static method without caring of class, isn't it? No. A static method is still a class method, and you still care about the class. The difference is that static methods aren't used with an instance of a class (an object). > static method can helps to decrease amount of... (more) |
— | over 2 years ago |
Answer | — |
A: Is it a good idea to have a permanent branch for a feature? I wouldn't. Not unless you intend to keep developing on every branch independently! Presumably you're not doing that. In that case, I think it makes your intent clearer to just use a tag to mark the version, then delete the branch. If you ever find that you do need to go back and make some changes... (more) |
— | over 2 years ago |
Question | — |
Freeing sub-process resources? I'm using Python to invoke another program in a sub-process. I've noticed my memory sometimes gets so large as to crash the system, and I'm wondering if I'm not correctly cleaning up the memory somehow. Here's what I have: ``` children = [] fruits = ["apple", "banana", "cherry"] for frui... (more) |
— | almost 3 years ago |
Answer | — |
A: Is it correct to run code inside a method whose object has been destroyed? Yes, it's correct. An object's methods aren't things that exist in memory with the object. They're in a completely separate section of memory, and a method exists exactly once regardless of whether you have one object, a million objects or zero objects. You can even go so far as to `delete this... (more) |
— | about 3 years ago |
Answer | — |
A: How to do "out-of-source" build properly with cmake? Whenever I've worked with CMake-based projects, the structure has been something like this: project src <-------- typically this is a source control working directory CMakeLists.txt project1.cpp project2.cpp libA libA.cmake libA1.cpp libA2.... (more) |
— | over 3 years ago |
Question | — |
List what file(s) an identifier was declared in? I'm using Doxygen to help me figure out some library code. There's an `enum` I know I need to use, but I don't know which file it's declared in. Searching for that identifier in Doxygen yields the page for the whole namespace in which it is declared. If I click on it in the summary at the top of t... (more) |
— | over 3 years ago |
Question | — |
How can I make --reset-author the default? I do a lot of rebasing and amending of my topic branches. I don't think it's especially useful for me or my colleagues to see in the logs what date it was when I first started working on the particular topic - only when I actually submitted it. I know I can explicitly reset the date of my commit t... (more) |
— | over 3 years ago |
Answer | — |
A: Having trouble adding include directories Ah. There's a good reason the compiler says it can't find the file: it's not there. In my particular case, BeepBoop.hpp actually gets automatically generated from other files by the ordinary build process, and I didn't realise this. `includedirectories` is perfectly correct. (more) |
— | over 3 years ago |
Question | — |
Having trouble adding include directories I'm trying to set up a simple test project, to unit test a change I'm working on. The change is to a file inside some existing project. I've tried to set up the includes as the original has it, but I'm still getting compiler errors complaining that an included file can't be found. (This project us... (more) |
— | over 3 years ago |