Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 14y ago · link · parent

You theoretically can on the 8-bit ATMegas, so I don't see why not. Using it in practice, though, is another matter.

http://www.bit-tech.net/news/hardware/2012/03/30/linux-atmel...

comment 14y ago · link · parent

I too find it difficult to find things on Netflix to watch, but I can get lost in video podcasts for far too long. There is a lot of great programming suitable to my tastes there.

comment 14y ago · link · parent

And businesses only upgrade when they must.

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

> Remember that comments and documentation are no substitute for proper testing that will expose usage errors.

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

The law is about intent. Writing out a number isn't illegal, but writing out a number with the purpose of carrying out something that is illegal is.

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

The 2% was made up for demonstration purposes, I'm not really sure how it plays out in the real world. It is a good question. Though consider this:

  $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

> As if I don't understand how compounding my raise percentage works over the course of my career

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

Unless you happen to own a quantum computer.

comment 14y ago · link · parent

Do scholarships qualify? Maybe everyone in Minnesota can automatically receive one for use at any otherwise free institution.

comment 14y ago · link · parent

Navigating to /500.html is another good way. Most people do not remove it and most other frameworks/people do not create it in the first place.

comment 14y ago · link · parent

Wouldn't that kind of information be better expressed in machine-human-readbale formats outside of the code that can be used to not only convey the information to the reader, but also verify that the description does as it says it does?

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

I would love to see a good example of your first case. It is difficult to imagine and learn from it without seeing it action.

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

To be fair, writing meaningful comments is really hard. So hard that the number of people who do it well is a small fraction of even the otherwise best programmers. To make matters worse, poor comments are worse than no comments at all. I can see why many programmers shy away from them.

* 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

I feel the reality is that there really is not a shortage of programmers in general, just a shortage of programmers who have extensive experience in technology X, Y, or Z that is presently in demand. If a company has to fall back on "second-teir" talent, I expect the pool is vast and the competition is stiff. I'm not sure where to find data to back that up, unfortunately, but the anecdotes I see do support it.

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

I don't think it is lack of faith, just the fact that college was never meant to be vocational training in the first place. While it is an amazing achievement for you, I'm sure, it doesn't mean much to the rest of us.

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

I came away with similar thoughts. The article made it seem like becoming a data scientist is far easier than I ever imagined.

comment 14y ago · link · parent

I can easily imagine that my career was influenced by my location/gender/race/sexual orientation, but my "hacker skills", for better or worse, were gained in solitude. There would have be no direct social repercussions for girls my age to do as I did, because in reality nobody ever needed to know. It was something even I kept hidden until I started to become confident in what I was doing, and additionally, wasn't really exposed to anyone else like me until many years later.

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

Hitting print and having a fully-assumbled iPad put on the platter is definitely Jetson stuff, but we do have the technology to print plastics, glass, and even circuit boards. The remaining components needed to build an iPad-like device can be sourced from your favourite electronics supplier. Having all the building blocks to build a tablet at your disposal is still really amazing.

comment 14y ago · link · parent

$190K is the number for that I've always heard thrown around for individuals, which, if both parties in the household are earning that much, easily adds up to $350K and more.

comment 14y ago · link · parent

Or do our sexist views make us believe men are more deserving of jail time? A good example is the way we look at a man raping a woman vs. a woman raping a man. The former is the most heinous crime one could commit, but the latter, in the eyes of many, isn't a big deal, if even a positive experience.

comment 14y ago · link · parent

Your last point seems like it should be a function of market demands. If people wanted to see women talking about something other than men, those movies should dominate at the box office. Since women buy more movie tickets than men[1] and thus movies will be generally catered towards that demographic, if there is sexism at play here, it seems like it is coming from the female gender themselves which brings up a whole new set of "what's going on here?" questions.

[1] http://womenandhollywood.com/2010/03/11/guess-what-women-buy...

comment 14y ago · link · parent

On our farm, we've reached a point where we cannot even justify growing GMO soybeans because the customers are willing to pay far more for non-GMO varieties. If that trend continues, their business model may be at risk anyway.

comment 14y ago · link · parent

I kind of enjoyed buying my last vehicle. For some reason, the salesman had it in his mind that I could not afford the one I was looking at. I was the one trying to talk him into adding options, while he was trying to take them away to keep the costs lower. Once I finally talked him into the one I wanted, he, without asking, starts filling out the loan application. I'm like "umm, I'm going to be paying for it in cash."

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

I did get the feeling the questions were chosen, perhaps unintentionally, to create a natural bias towards those who have a formal CS education.

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 really like the first analogy, actually. A driver who knows all the details of how each engine works will be able to choose the car that provides the best fuel economy and performance, but in the end, the driver's status will really only be judged on the style and features of the car they choose.

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

As a mediocre programmer, I probably could have answered the questions at some point in time, but since they are not applicable to my day-to-day life, much of the information has faded away. This has prompted me to refresh my memory, but it is too late for this quiz, as per the requirements.

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?

comment 14y ago · link · parent

I was writing software professionally in high school. Second year undergrad seems a little late in life to be learning this stuff, if it is critically important.

comment 14y ago · link · parent

From what I remember of that image, it was a Photoshop job where the exact same screen was found in Apple's marketing materials, but it was posted on Samsung's official website for the device for a period of time.

comment 14y ago · link · parent

My third-party iOS browser uses its own renderer and they don't seem to have issues with it. However, it is designed for niche cases and does not implement the full W3C spec., so I guess that is what they really have issues with?
1
232233234
256