8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 14y ago · link · parent
http://www.bit-tech.net/news/hardware/2012/03/30/linux-atmel...
comment 14y ago · link · parent
Which must be a pretty slow cycle in this space. I recently shopped at a store that I hadn't been to in at least a decade. I was shocked to find they were still using the exact same orange screen terminals that they were using when I was a young child.
That doesn't necessarily invalidate the original claim though. All new POS terminal installations could be using iPads or similar tablet devices.
comment 14y ago · link · parent
Which is pretty much what I was getting at. Consider the following pseudo-code:
Verify account takes an account ID, an optional enabled flag which, if
specified, will only search for accounts that have a matching enabled
status. The default is to search against all accounts. The return
value is true if the account is valid, false otherwise.:
account = new Account(id: 1)
assert account.search does_not_include id != 1
It is human readable and machine parseable. You get your documentation, usage examples, and tests all in a place that is far better suited for the job, in my present opinion. I welcome being swayed though.(I'm not sure that code even matches what your comment describes, but I couldn't really figure out what the comment was supposed to really intend the code to do, which brings me all the way back to my original points. Sorry.)
comment 14y ago · link · parent
To be fair, it is a concept that I still struggle with. My programmer mind is always stuck in "it is either true or it isn't" mode. Things that are only true sometimes do not make sense to me.
comment 14y ago · link · parent
$70K + 5% [1]
$50K living + 3%
-----------
$2.5M saved after 30 years [2]
$70K for life
$20K living + 3%
-----------
$2.7M saved after 30 years
Even a decent rate may not be all it is cracked up to be.[1] For the first 15 years, whereafter you suggest it could plateau (at around $140K, in this case, which doesn't seem unreasonable given the current market and historic income increases)
[2] Assumes all non-living expense allocated income is invested at 5%.
comment 14y ago · link · parent
That only helps if your raise percentage exceeds inflation. Otherwise, you could actually find yourself worse off. e.g:
$100K earnings + 2%
$50K living + 3%
--------------------
$59,756K after living expenses after 30 years.
$70K earnings + 2%
$20K living + 3%
--------------------
$77,177 after living expenses after 30 years.comment 14y ago · link · parent
I will agree that some of that information is worth writing down, but I'm not yet convinced a comment within the code is the right place for it.
> These are extremely important in loosely typed languages where there is little indication as to what constitutes an acceptable argument.
Isn't that just pushing language "flaws" into the comments, not unlike annotations are being used here? I'll grant you that it is pragmatic when faced with lack of tools, but the grandparent suggested annotation comments were a bad idea but comments were a great idea, which seems contradictory to me in light of this.
comment 14y ago · link · parent
As I mentioned before, it seems the number of people who can actually pull off good comments are exceedingly small. I've looked at some prolific open source projects that have a decent amount commenting around method definitions as you suggest is good practice, but found the comments to be no more enlightening than just looking at the source code itself. I will assume they were just poor examples.
I do agree with everything else you said though.
comment 14y ago · link · parent
* Comments that describe what the code does are a complete waste of time. The code already tells you what it does.
* Comments that describe why the code was written has more merit, but I cannot see how the following is any real improvement over the first point:
// Investments of this type have always added the interest
// to the principle. Who are we to question convention?
$balance = $principle + $interest;
I am one of those poor commenters, so I really have no idea what could be said about that line that isn't already known. If you say not everything needs to be commented, then where does the line get drawn? In most cases, the vast majority of your code should be no less obvious than this.* Some suggest the method signature and invariants should be documented, but that seems like just another exploitation of comments to deal with limitations of the language and is no better than putting annotations in the comments.
* I've seen code examples for using a given method in the comments, but that is better left to your test suite. Not only then can the reader see the example, but you can verify your method works at the same time without cluttering up the original codebase to boot.
If you are doing something weird, then yes, I am with you that comments are a big deal. However, if you are doing weird things on a regular basis I have to question your reasons for doing so. You shouldn't have to do weird things 99% of the time.
With that, teach us wise one. How can we all become great commenters so that we do not have to brush it off as something we do not have time for?
comment 14y ago · link · parent
My bet is that even if, say, you spent many years writing Ruby on Rails applications and you are the best there is at it, you still wouldn't get a call back for a job writing telephone systems in Erlang, even if you have enough experience and ability to quickly get up to speed to do the job well.
This seems like also a good explanation for the sharp decline in over-35 programmers. The technologies they grew up on are no longer in fashion, so they are, in general, relegated back to lower-teir talent pools and have to struggle to find work along with everyone else.
comment 14y ago · link · parent
Additionally, it is so easy to gain experience in this industry, just take a month or two to publish your own application and watch the job offers start rolling in, I would imagine these companies consider not having any a bit of red flag. Maybe you can put some of the code you wrote while in school up on GitHub or something to demonstrate that you actually really do have experience? (it doesn't necessarily had to have been for-profit to still count as experience)
Hopefully this doesn't come off sounding harsh, just trying to provide some perspective.
comment 14y ago · link · parent
All of these discussions seem to centre around the idea of women being discriminated in hacker groups. I won't dispute it happens, but that seems orthogonal to learning the skills in the first place. Maybe it is just my privilege talking, but it is really difficult to imagine social pressures applying so strongly when alone where secrets can be kept. Having to keep those secrets is a travesty in and of itself, but quite different to what you were speaking to.
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
[1] http://womenandhollywood.com/2010/03/11/guess-what-women-buy...
comment 14y ago · link · parent
Before I even left home I had already determined what I considered a fair market exchange for the trade with my existing vehicle. I think in the end, they actually ended up doing a little bit better than I had expected.
comment 14y ago · link · parent
Contrived example: Someone who came up with a quicksort algorithm independently, and is completely aware of its operating conditions, but chose to call it mysort instead, would be unable to answer the question in the last test despite having all the theoretical knowledge needed.
There is, of course, still something to be said about being able to use terminology that is shared with others, but that changes the nature of the test in ways I'm not sure the author intended.
comment 14y ago · link · parent
i.e. the developer who chooses the slower zeroarray algorithm that still completes in reasonable time, but provides a better user interface and better feature set is still the better software developer (but perhaps the poorer computer scientist).
comment 14y ago · link · parent
Assuming you've been in the business for a long time, and not just fresh CS graduate or something, what have you done to stay intimately familiar with the concepts that you do not utilize in any regular capacity?