Better HN
topnewbestaskshowjobs
Log inSign up

VBprogrammer

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

Submissions

comment 6y ago · link · parent

Recycling is such a farce. Anything where you have mixed streams going into the recycling bin is quite likely to end up buried somewhere in a developing country. Even when they are recycled they end up being turned into insulation or some other secondary product.

Growing up in Scotland we had a recycling system which was great. Irn Bru bottles were glass bottles with metal lids. The lid proudly announced that you could get 20p back for returning it (in the form of credit towards other purchases). The same trucks delivering stock took the empty bottles back to the distribution centre when they were cleaned, inspected and reused.

comment 6y ago · link · parent

I've been taking Vitamin D supplements for a few months. It started after reading a few articles on HN about how the RDA for Vitamin D was too low. Then I came across the NHS guidance which say in effect that everyone should consider taking a Vitamin D supplement, especially those who don't get out in the sunshine much (like most developers). Since there is basically no downside I started taking them.

Anecdotally I feel less lethargic when I remember to take them than when I slip out of the habit. I'm not sure whether that is just the placebo effect but the cost is low enough that it's worth it in either case.

comment 6y ago · link · parent

Assuming it's the BMJ that I know of that's the 'British Medical Journal' which is highly regarded.

https://en.wikipedia.org/wiki/The_BMJ

comment 6y ago · link · parent

One of the early limitations of aircraft was their wooden construction and the lack of water resistant glues.

Of course, aluminium was the perfect material and one of the most abundant elements in the earth's crust. However it was so rare and difficult to extract that that the Washington monument is capped by a small piece.

The Bayes process and subsequent improvements have since made it common and relatively cheap.

comment 6y ago · link · parent

I've come across this problem a number of times. The same applies in, for example, passing IDs across in JSON where I use strings if at all possible.

Even money amount are typically challenging to treat as numeric as often that drops them into a float when you shouldn't be processing money amounts as floats.

comment 6y ago · link · parent

> one plane landing every 5 minutes 12 hours a day is how much additional CO2 emissions

That's quite a reductionist view point. Operating Heathrow at something near 100% capacity, as it currently does, means that aircraft spend a huge amount of time queueing on the ground (burning a surprising fraction of the fuel they'd use in the air), going around a holding pattern or being vectored all over the sky.

comment 6y ago · link · parent

"Runways don't cause climate change; airplanes do."

I applaud the ingenuity of whomever managed to come up with and press home this argument but it feels like a stretch to me.

As someone who lives under the flight path of Heathrow I can't say I'll shed any tears if the third runway is permanently blocked by it though.

comment 6y ago · link · parent

I've considered whether a hot or not type system could be used to rate the priority of bugs / tickets. It would present a summary of two tickets and make implications based on which one the user said was more important to order the whole backlog. I'm sure there is a fundamental flaw somewhere but I like the concept.

My main issue with allowing people to define the ordering is that, in my experience, enevitably you have some stuff at the top, some stuff in the middle and a big mostly unordered heap in the middle.

comment 6y ago · link · parent

Unless I'm missing something no one has mentioned the effort to fix a problem? I've seen cosmetic issues (using the wrong masculine / feminine form in French place names for example) which would have taken a huge amount of time to fix correctly and internal server errors which where the result of someone accidentally including a comma after a value in python, turning it into a tuple where one was not expected. At some point that should be factored into the order of priority.

comment 6y ago · link · parent

I propose "Granshaw's law". Every time the value of unit tests is discussed the debate over static vs dynamic typing must be looming eerily in the background.

That said, as someone who has spent the majority of his career writing dynamically typed code I can definitely recall far more instances where statically typed code has run and worked first time vs times when I've written some code with unit tests and it worked first time.

comment 6y ago · link · parent

There is also the chicken and egg problem where it's hard to write good unit tests for code which is poorly abstracted and in need of refactoring.

comment 6y ago · link · parent

I don't even think that is the problem. In my career I've seen full blown arguments over loops which, as a worst case, could only ever contain a handful of items, or are only executed once per user action. That's not facebook scale or not, it's just worrying about the wrong things.

comment 6y ago · link · parent

Also, smoking. Worth bearing in mind that salt, one of the primary means of storage was a precious commodity often shipped to the north of Europe from salt pans in the med.

comment 6y ago · link · parent

At a guess I suspect they mean more the route finding than the map part e.g. maybe don't send me on that nice shortcut across a mountain range if there is a blizzard up there. Part of me suspects google maps would figure this out by proxy in the same way it magically knows about traffic jams before you get to them but there are probably pathological cases where because no one is stupid enough to try it google don't have enough information to not recommend it.

1665.

737 Max: Debris found in new planes' fuel tanks(bbc.co.uk ↗)

48 points · by VBprogrammer · 6y ago · 7 comments

comment 6y ago · link · parent

Your milage may vary but my experience of the GA community is that their concern is more based on being being 'busted' for any minor infraction of airspace rather than their neighbours knowing where they are flying too.

It's a bit like having a box in your car which automatically alerts the authorities every time you exceed the speed limit.

comment 6y ago · link · parent

It's a kind of interesting point. At the time ADS-B was conceived they would have been aware of the lack of security I'm certain. However, the privacy element has, for the most part, only become relevant because of practically disposable Software Defined Radios being mass manufactured (actually repurposed TV dongles). At the time they created the spec I'm sure they considered the cost of buying a niche set of radio hardware a barrier to the general public having access.

comment 6y ago · link · parent

Computer vision is commonly used already in industry for quality control. Most of the parameters can easily be controlled with deterministic algorithms e.g. my crisps (chips) aren't too burnt or too raw based on simple colour ranging, my biscuits are the correct shape etc.

comment 6y ago · link · parent

Genetic algorithms might have fallen out of favour recently but I don't think anyone would exclude them from AI as a category. The field in my experience has always contained a lot of planning and inference which you seem to be excluding.

comment 6y ago · link · parent

It's very easy for these kind of dependancies to creep into the build process. If the worst case cost of not being able to create a new build out-weights the cost of rearchitecting your build process then it's something you should seriously consider. On the plus side it also brings additional benefits like faster builds and resilience against packages being unilaterally removed.

comment 6y ago · link · parent

As someone who suffers form a colour vision abnormality these things make me happy; if the world is so messed up for normal people then who cares that it's slightly more queer for me.

comment 6y ago · link · parent

Sure but neither of those explanations immediately scream you can use this to filter high frequency noise or you can use it to cause a phase shift in an AC signal (like in a mechanical electrical meter or a start winding in a single phase induction motor).

Maybe 'trick' is the wrong way of looking at it, I guess the real issue is that from seeing a single component in a circuit diagram you can't know which of the effects of a component is being utilised.

comment 6y ago · link · parent

I think for me some of the difficulty in understanding electronics comes from the way components are often used in ways that don't make any sense unless you happen to know the 'trick' involved. For example, using a reverse biased diode as a constant voltage reference, using an inductor to create a high voltage pulse etc.

Also, for what it's worth, "Practical Electronics for Inventors" is one of my favourite books on electronics. It's well balanced between theory and practical applications.

comment 6y ago · link · parent

If there is a sidewalk offering her a lift is patently ridiculous.

comment 6y ago · link · parent

> The situation was not dangerous, her actions were dangerous.

A situation cannot be simultaneously dangerous and not dangerous. Perhaps her actions caused the situation to be dangerous but surely you wouldn't hold that against her child?

I say this as someone who rides motorcycles, drives a car and even a Japanese import campervan, the driver of a vehicle is the one in charge of a potentially lethal machine. One of the first lessons you should learn as a driver is to be able to stop in the distance you can see to be clear ahead, if you do that then the chances of having to swearve to avoid people walking in the lane or having to think about the consequence of killing a mother and child are practically nil. That is what I mean by driving responsibly.

Anyway, I fear the cultural gulf here is too great.

comment 6y ago · link · parent

The part where he all but threatened to kill her with his 2 ton box for having the indecency to go about her life.

comment 6y ago · link · parent

If I felt it was so dangerous that I needed to stop and offer unsolicited advice to someone I didn't know, I would feel responsible for their safety if I didn't offer them a lift.

Besides, a world where well intentioned people self-censor themselves from being kind to strangers is a bit self-fulfilling isn't it?

Driving your 2 ton metal box in a way which doesn't endanger the lives of others, especially children, would also be a good lesson to teach to children. In fact since it is a vastly more real danger than "stranger danger" it probably do more good.

comment 6y ago · link · parent

Stopping to lecture an adult in public is rarely well received. Had you instead said "hey, this is a dangerous road to walk on, would you like a lift to the end?" The chances are that she would have refused but your chances that she took something away from the conversation would have been much higher.

comment 6y ago · link · parent

> I stopped and asked her what if I hit her?

Why not stop and ask if she needed a ride somewhere? You might even have made the world a better place than stopping to hurl abuse at a mother and child.

For bonus points, try slowing down and passing pedestrians when it is safe to do so.

comment 6y ago · link · parent

You can't out statistic physics. Energy goes up with velocity squared. A small reduction in velocity means a lot less energy involved which delivers better outcomes for all involved.
1
555657
88