Better HN
topnewbestaskshowjobs
Log inSign up

VBprogrammer

8,523 karma · joined Mar 16, 2009 (17y ago) · 2,630 submissions

Submissions

comment 12y ago · link · parent

I think the most annoying thing about this is that there are still 4 blocks, so why after 20 fun filled levels am I not able to differentiate the colours? I was able to, with some more care, figure out level 20 but level 21 I didn't even move a block before I knew it wasn't going to work.

comment 12y ago · link · parent

Having spent time working on a million line Tcl codebase (for my sins) I can assure you that it is possible, but not in the least bit pleasant!

comment 12y ago · link · parent

I had the pleasure of speaking to a close advisor of Nick Clegg about these new regulations. He spoke at great length of the added protections which are being introduced as part of this bill.

While I'm still sceptical of the need for large scale surveillance I'm glad to see these regulations being moved from shady interpenetration of existing laws to being out in the open.

  - The Bill includes a termination clause that ensures the legislation falls at the end of 2016 and the next government is forced to look again at these powers.

  - Between now and 2016 we will hold a full view of the Regulation of Investigatory Powers Act, to make recommendations for how it could be reformed and updated.

  - We will appoint a senior diplomat to lead discussions with the American government and the internet companies to establish a new international agreement for sharing data between legal jurisdictions.

  - We will establish a Privacy and Civil Liberties Oversight Board on the American model, to ensure that civil liberties are properly considered in the formulation of government policy on counter-terrorism. This will be based on David Anderson's existing role as the Independent Reviewer of Terrorism Legislation.

  - We will restrict the number of public bodies that are able to approach phone and internet companies and ask for communications data. Some bodies will lose their powers to access data altogether while local authorities will be required to go through a single central authority who will make the request on their behalf.

  - Finally, we will publish annual transparency reports, making more information publicly available than ever before on the way that surveillance powers operate.
Taken from here:

http://www.theguardian.com/politics/blog/2014/jul/10/cameron...

comment 12y ago · link · parent

I stand corrected. I'm sure I had read that some time ago but I can't find a reference at the moment.

comment 12y ago · link · parent

While in terms of reliability, simplicity and power to weight ratios turbine engines are great, they still suffer from low compression ratios.

If I remember correctly about 3 to 1, compared to 10 in 1 for petrol engines and nearly 20 to 1 for diesel engines.

Thermodynamically this makes it very difficult to achieve high efficiency.

comment 12y ago · link · parent

The example I gave (happened to be what I was working on) would be quite pointless as a comment. Since the code could easily have been written using the float datatype.

comment 12y ago · link · parent

Yes, they are clearly vastly superior to 'lol', 'meh' or worse 'fix'. Still, I think my point stands that they could be better.

comment 12y ago · link · parent

Yeah, I prefer the issue number in each commit as it makes the commit log more readable to me. But do a decent job of everything else and that is a very small nit-pick.

comment 12y ago · link · parent

As an example of what I'd like to read:

  #2313 Change expected value to a float field.

  django-haystack stores decimal fields as strings internally.
  This means that when we order by expected value small
  values (e.g '9e-08') are sorted before larger values.

comment 12y ago · link · parent

> Good, descriptive commit messages

All of the examples given in the image going that heading I'd say are mediocre at best.

The code changes should tell you what has changed, if I'm looking back through your commit history what I'm usually trying figure out is why you've changed something.

A ticket number is often the single most useful thing, ideally followed why a very brief what you've changed and as much information on why you've changed it as you think would be useful.

comment 12y ago · link · parent

  The Data Protection Act

  Under the Data Protection Act, we have a legal duty to protect any information we collect from you. We use encryption software to safeguard your data, and keep strict security standards to prevent any unauthorised access to it.
I'm lost for words.

comment 12y ago · link · parent

I find when I have to re-factor code around the tests it means the code wasn't very good in the first place.

The author complains about re-factoring code into smaller testable functions. I completely disagree. Code structured as small easily understood functions which do one thing and have obvious inputs and outputs is good code which is much easier to extend and modify.

comment 12y ago · link · parent

Someone I used to work with once left a alert('W.A.N.K') in the codebase. This was in a fairly rarely occurring branch of code and made it all the way to production.

I've taken that as a warning and never write anything I wouldn't be happy for a customer to see in logs, test-data, comments (although handfuls of sarcasm are still acceptable) or debugging code.

comment 12y ago · link · parent

Or a hack which will never be removed from the code-base, depending on your point of view.

I'm intrigued as to why changing to relative domains wasn't possible. If nothing else pushing 'http://www.theguardian.com' out for every link adds to a lot of bytes up for a busy site.

comment 12y ago · link · parent

I'd be willing to bet that the article was written on the 11th or even before that. The campaign started with a nearly impossible goal, unless Obama himself had come out to declare surrender, they were always going to be able to print that.

comment 12y ago · link · parent

I know bringing things from the real world into the digital realm often results in badly overstretched metaphors. Allow me this one; are your belongings really yours if you forget to lock the door?

comment 12y ago · link · parent

I'm pretty sure many more codebases have been lost through failures to secure internal networks by corporate IT departments than through vulnerabilities in cloud hosting providers.

comment 12y ago · link · parent

I'm not sure I fully understand your comment. My understanding of this is that even after the revised accounts the auditor was still unwilling to put his name on the line. The implication in my eyes is that the books are still in pretty bad shape and could be worse.

Is there some reading of this that I'm not getting?

comment 12y ago · link · parent

I don't have linkedin. I don't get any calls from recruiters.

At least I hope that is the only reason.

comment 12y ago · link · parent

That is a sentiment I've often expressed in the phrase "I want to die before someone else has to wipe my arse."

comment 12y ago · link · parent

Not to mention that some people have a dog phobia.

comment 12y ago · link · parent

Just to add the end of that quote, "Democracy is the worst form of government, except for all those other forms that have been tried from time to time."

comment 12y ago · link · parent

Yes, the that was a very simple example.

comment 12y ago · link · parent

Except where writing negative conditionals are clearer. For example turning:

  if(a) {
    if(b) {
      if (c) {
        // Do something.
      }
    }
  }
Into:

  if(!a) {

  } elseif(!b) {

  } elseif(!c) {

  } else { 
    // Do something.
  }

comment 12y ago · link · parent

That's pretty harmless in this case, the necessity of getting though it means they will have to find out what exactly it is.

Perhaps 'hope' would have been a better choice of word.

comment 12y ago · link · parent

What age did you guys actively start searching out pornographic content? I'd bet for a big portion of the male population it is somewhere between 12-14.

I admit things have changed considerably from my days of watching late night tv in the hope of catching something naughty. I still think most young adults will self regulate their viewing habits.

If anything I think we should have introduced a voluntary meta tag for pornographic content. Perhaps even having ratings for different categories of porn.

comment 12y ago · link · parent

Just to expand on that a little, turbo diesel engines are extremely common in Europe in even the smallest of cars. Diesel engines are particularly good candidates for turbo charging as diesel requires more air per unit of fuel to burn.

While significantly noisier these are very fuel efficient and even quite fun to drive due to their torque output.

comment 13y ago · link · parent

Not to mention that these things aren't cheap to develop in the first place. If you factored the R&D costs into the PS4 I'm sure that would add a significant amount.

comment 13y ago · link · parent

For me I think that is very close to the sweet-spot. Both for number of people I can put up with working in the same room with* and conveniently the size of a team which I find work best together.

* Exaggerated a little, I'd probably drive myself nuts in an office alone.

comment 13y ago · link · parent

There is some really weird advice in that article.

  Hey Accountname! Thanks for registering on http://site.com   ( Site world )

  Your account is Accountname and the IP address this was   created from was 2.3.4.5 on 11/10/2013 12:35 ETA. The link to your profile is here :     http://site.com/profile/accountname
 
  If you did not create this account, you can deactivate it by clicking here
Not all startups are aimed at techies, and my mum would be scared and more than a little put off by that.
1
777879
88