801 reputation
515
bio website
location
age
visits member for 4 years, 3 months
seen Dec 19 at 11:59

Donate a cup of food for free: Click to Give @ The Hunger Site


Dec
9
comment Why using string[] args in all main methods?
Almost, but not quite. Generally, args[0] is the full executable path of the program itself. in this case, args[1] would be "-title", etc At least for C, and I assume it to be the same for other languages. See publications.gbdirect.co.uk/c_book/chapter10/…
Dec
8
comment How do I review my own code?
plus one for shit key
Dec
6
comment How to programmatically connect to a particular PC of unknown IP from a WiFi network?
Think about it. If you want to sent a letter (how quaint) to that nice grrrl who smiled at you in the pub lat night, your going to have to walk around town pushing a note throw every letter box asking her to get in touch
Dec
5
comment How do I review my own code?
Wah! I didn't know this was " a thing". I just commented above that my comp sci professor recommended this during our first ever lecture, decades ago. He recommended a cat, but I suppose ea rubber duck would do. One thing is sure, it doesn't work without the anthropomorphic sidekick :-)
Dec
5
comment How do I review my own code?
In my first ever comp sci lecture, decades ago, the lecturer recommended we each get a cat. When there is a bug, you sit with the cat and go through the listing, line by line, explaining to the cat "the bug can't possibly be in this line. The bug ... D'oh!". I swear that it doesn't work without the cat. Perhaps the same method could be extended to code review?
Dec
5
comment How to get people to actually do code reviews promptly?
I agree with @GlenH7's answer, however I would also add that the best way to get code reviews done is to both educate developer as to why it is to their benefit AND for management to ensure that they are scheduled time to do the reviews.
Dec
5
comment Separate code coverage reports for unit and integration tests, or one report for both?
I'll plump for separate. I don't think it's enough to say "that code has been tested" without knowing how it was tested. Unit test & Integration test exercise the same code, but in different ways, for instance unit test might use edge case values while integration uses middle of the road ("realistic") values. Same code, very different testing.
Dec
5
comment How to programmatically connect to a particular PC of unknown IP from a WiFi network?
it is the ONLY way to go about it.
Dec
4
comment Programmatically syncing with remote servers
I just notice that this is project of the month at SourceForge. Maybe it can help? "software that helps you synchronize files and synchronize folders for Windows, Linux and Mac OS X" ... sourceforge.net/projects/freefilesync it looks liek I will be using it. Can you?
Dec
4
comment Code First vs. Database First
Errrm, new job? I know that I would. But as a 30 year freelancer I find it easy to walk away before it really hits the fan (some people you just can"t help), but I realize that it is not so easy for all. Stay if you must (no comparable employer in the area, etc), but don't stay if it starts to affect you.
Dec
4
comment How do i wait for all threads in java code here?
Hint, the answer has little or nothing to do with Java and mall or all to do with threading in general
Dec
4
comment How do i wait for all threads in java code here?
Did you even bohtehr to Google?
Dec
4
comment What's the difference between stateful and stateless?
This should have been awarded the answer. It is by far the clearest and most precise answer here.
Dec
4
comment How you return to a code when you don't remember what you were doing?
Put some comments in your code, at the very least (and meaningful variable names help a lot). Write some documentation before you begin any non-trivial project (anything bigger than "hello world") - and keep it up to date.
Dec
4
comment Programmatically syncing with remote servers
Both Windows & Linux allow an app to monitor a file, directory or device & be notified of change. But that, and your point 1, are not necessary here, since he is generating the files & knows when they change. I am assuming push to server, not server polling client for changed files.
Dec
3
comment Are all programming problems algorithm problems?
@Keppla (plus one) ope, it's a requirements problem, the root cause of all software woes
Dec
3
comment Code First vs. Database First
True, but it also makes them believe that the app is as good as done. I have been burned that way before & now demand that we get the requirements straight first
Dec
3
comment Code First vs. Database First
Is this person code, or work? What I really want to ask is if you can refuse to begin (and waste your time re-doing everything later) until the requirements are (close to) nailed down. At which point, obviously, design your db first as part of higher level design (as, it seems, you are wont to do)
Dec
3
comment How to introduce testing in the development cycle
Congratulations, Lorenz, on overcoming your fears & jumping right in. make sure to tun automated regression tests before each commit to version control or release to the customer. And, every time you find a bug, fix it and add a test that would have caught it.
Dec
3
comment What can C++ do that Python cannot?
For such programs, I prefer the simplicity & speed C to C++