Coding standards a set of conventions and practices used in software, such as naming classes, variables, and files.
1
vote
4answers
125 views
Where to find common database abbreviations in Spanish
I'm doing a little pro bono work for an organization in Central America. I'm ok at Spanish and my contacts are perfectly fluent but are not techincal people. Even if they don't care what I call some ...
3
votes
1answer
54 views
Naming conventions for newtype deconstructors (destructors?)
Looking into Haskell's standard library we can see:
newtype StateT s m a = StateT { runStateT :: s -> m (a, s) }
newtype WrappedMonad m a = WrapMonad { unwrapMonad :: m a }
newtype Sum a = Sum { ...
4
votes
6answers
583 views
Why should one use a single-use temporary variable?
Let's say we have a class called 'Automobile' and we have an instance of that class called 'myCar'. I would like to ask why do we need to put the values that our methods return in a variable? Why ...
5
votes
4answers
74 views
Should Equality be commutative within a Class Hierachy?
It is easy to define the Equals operation in ways that are not commutative. When providing equality against other types, there are obviously situations (in most languages) were equality not being ...
4
votes
2answers
161 views
What should my “large codebase sample” look like?
If an employer asks for a large code sample, one for an entire project, what characteristics should the project have to show architectural skills and the ability to manage a large codebase?
For ...
7
votes
8answers
792 views
Why would an employer ask for a 'long' code sample?
What would a large project that spanned multiple files and >1000 lines show to an employer that a few individual files and a couple hundred lines couldn't capture?
0
votes
3answers
126 views
What is the standard for describing functions and objects?
What is the standard for describing functions/methods (function name, number of arguments, argument type, return type, etc...) in a manner that is language independent?
EDIT: More specifically, how ...
8
votes
5answers
295 views
Should coding standards be enforced by the continuous integration server?
Should coding standards/style be enforced by the continuous integration server running static analysis tools (ex. PMD, StyleCop/FxCop) and failing the build if the standards are not followed? What ...
12
votes
9answers
2k views
Is a coding standard even needed any more?
I know that it's been proven that a coding standard helps enormously. However, there are many different tools and IDEs that will format to whatever standard the programmer prefers. So long as the ...
5
votes
3answers
187 views
How should I get my code ready for OpenSourcing it and putting it on GitHub?
In a few weeks, my project is going to be finished and I want to start getting my code ready for other people to use it.
I am going to be posting everything to GitHub so people can tweak it and ...
1
vote
3answers
337 views
When creating a library for a simple program, what must I do to protect others from its lack of thread safety?
When creating a library for a simple program, is it more cost effective to make it thread safe or is there a way to detect the program's use in a multithreaded program and ASSERT() or otherwise ...
5
votes
1answer
110 views
How to learn what the industry standards/expectations are, particularly with security?
For instance, I was making my first mobile web-application about a year ago, and half-way through, someone pointed me to jQuery Mobile. Obviously this induced a total revolution in my app. Rewrote ...
0
votes
2answers
167 views
Approach on Software Development Architecture
I am planning to standardize our way of creating project for our new projects.
Currently we are using 3tier architecture where we have our ClassLibrary Project where it includes our Data Access Layer ...
1
vote
2answers
106 views
What is faster and preferable way for variable assignment in ruby? [closed]
I am a RoR developer and want to clarify some doubt about ruby variable assignment.
In ruby we have two ways for variable assignment.
str, arr, num = "Hi", [1, 2], 3
and
str = "Hi"
arr = [1, 2]
...
2
votes
2answers
123 views
Case Class naming convention
In my recent adventures in Scala, I've found case classes to be a really nice alternative to enums when I need to include a bit of logic or several values with them. I often find myself writing ...