2
votes
11answers
274 views

Build functionality around the design, or the other way around?

When you build an application, is it better to design the UI first (in Photoshop or whatever), then implement the functionality following the UI you just designed, or do the programming and build the ...
3
votes
3answers
342 views

Separating the UI from its event handlers and database queries

Is it a good practice to separate the handlers and database queries in different classes? There will be a separate class containing all the necessary event handlers, and there would also be another ...
4
votes
4answers
1k views

Trailing forward slash in directory names - good programming practice?

I want to ask the user of my bash script to pass a directory path as argument. Which one of the following is a good programming practice - to require that the user enter a trailing / (forward slash) ...