Top new questions this week:
|
Lately I've been trying to split long methods into several short ones.
For example: I have a process_url() function which splits URLs into components and then assigns them to some objects via their …
|
I am in a position where I have been asked to review some code that fixes a problem that I don't believe exists.
The fixer, who is more senior than me, insists his fix is necessary but it appears …
|
I'm a CS student and I have been coding for a few months shy of a year now, and I seem to have developed what I think may be a "bad" habit and I'm wondering if anyone does the same (or whether it's a …
|
Reading the comments to this answer, specifically:
Just because you can't write a test doesn't mean it's not broken. Undefined behaviour which usually happens to work as expected (C and C++ are …
|
During the current (2013) Google Code Jam contest, there was a problem that took C++ and Java people 200+ lines of code as compared to Python people that solved the same problem only using 40 lines of …
|
Before asking my question, I must explain the situation.
I'm working for a company as a junior software engineer. One of the seniors always stops me when I finished my development and wanted to …
|
Now, when I make a programming mistake with pointers in C, I get a nice segmentation fault, my program crashes and the debugger can even tell me where it went wrong.
How did they do that in the time …
|
Greatest hits from previous weeks:
|
During a job interview, I was asked to explain why the repository pattern isn't a good pattern to work with ORMs like Entity Framework. Why is this the case?
|
I hope this isn't too general of a question; I could really use some seasoned advice.
I am newly employed as the sole "SW Engineer" in a fairly small shop of scientists who have spent the last 10-20 …
|
Can you answer these?
|
I am working on a CMS that is starting to evolve a bit.
We started off with content that had the following priorities ( columnn in the db on the content table): HIGH MED LOW. Data was fetched by …
|
Recently I have "discovered" the virtues of dependency injection and I absolutely love the way it has affected my code - all the pieces are simple, focused and decoupled; I can now mock all the …
|
I would like to know if there is such widget in tk (or in any different standard Python 3 module), or how to create it:
Of course it doesn't have to look like this, but it should offer same …
|