Tagged Questions
0
votes
2answers
231 views
Need some advice and feedback on my code's design
I am looking for feedback on the design of my program.
I have a shell script call function.sh that defines a lot of helper functions. My intent is to use those bash functions defined in functions.sh ...
3
votes
1answer
335 views
Why Doesn't Java Allow Default Parameters/Arguments [closed]
Basically something like
public void jumpToRoom(String roomName = Rooms.DEFAULT_ROOM)
would be convenient.
Many languages nowadays seem to support it (Ruby, PHP, even C#).
What is Java's ...
1
vote
4answers
235 views
Long lines of text in source code [duplicate]
Possible Duplicate:
Is the 80 character limit still relevant in times of widescreen monitors?
I used to set a vertical line set at 80 characters in my text editor and then I added carriage ...
8
votes
7answers
206 views
How does a “Variables introduce state”?
I was reading the "C++ Coding Standards" and this line was there:
Variables introduce state, and you should have to deal with as little state as possible, with lifetimes as short as possible.
...
-1
votes
2answers
259 views
How to mix different styles of programming on several languages?
I know that Senior Developer doesn't use only one language and only one platform or IDE.
Can you advise how to mix different styles of programming to make efficient code?
For example, best mixing is ...
3
votes
7answers
1k views
What is the benefit of multiple return values
I feel as if a return statement should only return one value. When it returns multiple, things get confusing. I know since the return type in Java has to be declared, this is difficult to do, but in ...
11
votes
6answers
953 views
A defense for boilerplate?
To me, boilerplate code is obviously bad. However I've met a developer who displays resistance in any attempt to reduce boilerplate. I realized I didn't have a readily formed, well thought out ...
4
votes
8answers
767 views
What are the benefits of using comments
I just accepted a new job. Our application is in the 50,000 lines of code area. None of which is commented. I am finding it difficult to understand how the application works. Id like to prevent this ...