1,713 karma · joined April 26, 2009
foreach (var e in employees) {
// ...
}
because the iteration variable is essentially a placeholder. fs.id
,fs.file_hash
and file_name = '.vimrc'
AND fs.id = ot.file_system_id
which has subtle advantages (such as easier editing).Also, I cannot bring myself to writing SQL keywords in all caps. It feels ancient. Just a matter of taste.
However, these rules do not always appear to be consistent with how the code in (most) other programming languages is written. Consider indentation, for example. The usual approach is to line up those elements of the code which correspond to the same logical level of the flow, whether it is C++, Javascript, or Lisp. So rather than (quoting from the article)
SELECT file_hash
FROM file_system
WHERE file_name = '.vimrc'
I would rather see either SELECT file_hash
FROM file_system
WHERE file_name = '.vimrc'
or SELECT file_hash
FROM file_system
WHERE file_name = '.vimrc'
(The difference here is the same as between indented and non-indented braces in C.) I think this is especially useful when we have multiple joins or inner queries.Many suggested rules are indeed consistent with what I have seen to be accepted as best practices. Such as naming a table in singular (more precisely, giving it the name of what a single row corresponds to), or avoiding the infamous Hungarian notation (pretty much an accepted best practice in most languages that I have seen).
Overall, I think, a good first step towards building best practices.
pick the team to join solely based on the manager
My experience too. Of course there are other factors, but this is (arguably) the most important factor of all; the rest are just constraints, and this is like the objective function.My experience is that I seem to prefer a mix of available options. For example, my current office is about 30 miles away from home, and I sometimes work form home and like it, but then I go to the office and like it too. After several days of working in the same environment I welcome the change of scenery.
Also, for the first time in many years, I got a private office, having moved there from a cubicle. It may be a status symbol more than a convenience, but it is a convenience for sure. No problem mixing private and public space as long as I have a choice of both.
coming from someone of your same class/category
I think you make a very good point here: it is coming from a colleague, someone who is on (more or less) the same track as you are, only a little ahead of you in terms of the career path.A side note: when you said "I didn't have to pass a single licensing exam" I immediately thought of the way our profession tends to have that kind of exam every time we interview each other. A big part of interview for a software developer is based on the exam-type material; this is very different from the way other professionals, even engineers, have their interviews. (Does not contradict your message, just a note.)
#pragma warning disable ${list of warnings}
and #pragma warning restore ${list of warnings}
https://msdn.microsoft.com/en-us/library/441722ys.aspxAlthough frankly the list of warnings to disable and restore consists of warning numbers, not names, which is not super convenient.
Harder to engage a remote employee in company culture and values
You know, I am not sure it is such a bad idea. A diversity of cultures can make the work a better place. Besides, what is the "company culture and values" anyway? I am, frankly, more suspicious than curious.Of course, not all components of the prices translate proportionally. Salaries probably do, equipment probably does not.