skysight-inc/HackerNews huggingface dataset:
You are right!
I work on test automation for end-to-end testing. I dare say my work is very useful and has prevented a lot of bugs from hitting our prod. But at my workplace we also all agree on the fact that it is often quite painful to locate the cause of the bugs that I report, precisely because we don't have enough unit tests on our old code.

Since we live in a world of limited budget and time to spend, I agree with the conclusion of the article: "use unit tests where it makes sense". It is what we try to implement on our new code (and when refactoring legacy code).
"When the selfish miner pool finds a block, it is in an advantageous position
with a single block lead on the public branch on which the honest miners operate.
Instead of naively publishing this private block and notifying the rest of the
miners of the newly discovered block, selfish miners keep this block private to
the pool. There are two outcomes possible at this point: either the honest miners
discover a new block on the public branch, nullifying the pool’s lead, or else the
pool mines a second block and extends its lead on the honest miners."
As Enterprises Go Multicloud, They Must Be Cloud-Aware
The Forwardable Module in Ruby: Part I
5 Massive Announcements Made by Google at 2018 I/O Conference
Webpack4 got much slower with startup and recompilation of TS compared to 3.
Nice try, Apple...
I was confident that people would post other solutions here.

I'm thinking of a bash script that takes a title starts a text file in the folder ~/.plan with filename generated from the title but prepended by date in yyddmmhhmm format. Might get me recording more things.

Like others, I use paper for the doodles and diagrams.
Is that a big problem for you? The OSM operations working group is run by volunteers, on semi-donated hardware. They don't offer SLAs, they don't offer uptime guarantees. If you create an app that's (say) responsible for a 20% increase on load, they'll block you. If you're that popular buy a tile service from someone else.
I hear this argument a lot, but I do not think it is valid. What happens is that you simply put in the time before a bug occurs with every unit test that you write. Which isn't very efficient, seeing as not all of your units will lead to bugs. So yes, once you have all of your Units covered 100% it will be easier to find bugs, but you have invested a lot of time in order to get here and in order to keep the unit-test-suite maintained.
> and use social media?

I'd argue it is not that straight cut. Just like you can tune do not disturb to allow important people to reach you, most social media sites allow fine tuning of notifications (except facebook, they don't give a shit[1]). For example, I use twitter to interact with other developers from around the world, and after configuring twitter to only notify me about interactions with people I follow, I'm never bothered by notifications from it either.

[1]: Perfectly satirised by The Onion: https://www.theonion.com/new-facebook-notifications-alert-us...
The 2G did not have an app store, it had no killer features. It was a nice device to use when it could be used. But it wasn't often that one could.
"who are you" implies I should have some special status to give my opinion.

But the fact remains that they don't run after the ball themself. They don't make any effort in this competition. They don't even have any personnal relationship with the players.

I don't deny it's fun.

You should have fun.

But it's no more real than a movie.
Hhgjh
Ad 1) Two five-star reviews on amazon UK:

https://www.amazon.co.uk/Algorithmic-Problem-Solving-Roland-...
Another interesting validation library (in early alpha/beta stage, though) is cross-check:

https://github.com/cross-check/cross-check/tree/master/packa...

It supports 'draft data', which can be used by auto-safe functionality or similar.
6 Startup Boosts to Get You Up and Running
Providing Customer Support at the Next Level of Excellence
That's right. The phone is only a tool and it's only up to you how much you let it intefere with your life.

Though, I guess for some the issue is willpower. E.g. if they use Facebook then they can't stop checking it.
That's exactly what the article is saying. Also, your point about unit tests assumes that tests cost the same to write. Sure, a unit test will have ten times better locality than an integration test, but you have to write ten of them to catch a bug. Also, unit tests don't catch bugs where they're very likely to crop up: the boundaries.
> I write this to point out that, in the US, people will treat any crank seriously if he has enough money or enough prowess in another field.

I once attended a lecture given by Donald Knuth on the topic of a verse in the bible. The first thing that he said was "I'm not sure why people would come to a computer scientist for his thoughts on religion".

The celebrity effect is real; by being a celebrity you can venture in to worlds you know nothing about and people will take you seriously.

I know why I went to see Donald Knuth that day, and I got to hear his reviews on his religious life. Even though I recognized him for his work in comp sci I still listened to him. (Not that I will accuse him of not knowing what he was talking about, I'm the one unfamiliar with that topic.)
Somewhat interesting but calling an old idea something catchy isn't really revolutionary.

The article makes a lot of assumptions like "In practice, most agree as most projects set the lower bound for coverage to around 80%". Most projects where, which industry, who are these 80% that agree? This is just taken out of thin air in this case. It might be true but should we take the author's word for it?

There are also some psychological arguments. For
example, if you value unit-testability, you would prefer
a program design that is easier to test than a design
that is harder to test but is otherwise better, because
you know that you’ll spend a lot more time writing tests.

This is very subjective without examples. The opposite argument can also be made that code which is easier to test is sometimes better. It felt like reading a collection of quotes and articles by other people.

I think TDD, unit, integration and E2E testing works. How much of which to apply is entirely project and industry specific and it's up to teams to decide what testing strategy works best for them.
If you're on Android, you can do this today with Termux. I believe you can also set up shortcuts (so you could have a home screen widget to open your TXT file).
Python is an object-oriented BASIC.
PostgreSQL Event Based Processing
Thanks for the detailed explanation. I'll surely learn Haskell now, after I'm done with this book.
Show HN: RTB, real-time protocols benchmark
For a professional, that's a few days of work. Over 5 years, after tax etc etc, it's still a blip for what is effectively one's main tool.

An IT pro must invest in three primary tools: chair, monitor, and laptop. A £5K budget to amortize over 5 years is fair game, and in the grand scheme of things (traders etc) is actually very very low.

If it's to watch movies and play games, then of course it's insanely pricey; but then you don't really need 32GB, nor a MBP in the first place.
Python reminds me more of an object-oriented BASIC. Mostly imperative control flow. Lots of assignments. Lots of state manipulation.
Bots of the Internet, Reveal Yourselves
Lhjhh
The shortest guide to testing Ethereum smart contracts
No, the owner can sign the dns records and also sign the absence of a record, and if the censor tries to tell the browser that there is no SNI key, without being able to produce the signature to prove that, the browser can just treat this as an MITM attack. This only work on signed DNS entries though.
Always with the hyperbole. How would you feel if your laptop suddenly increased 2mm in thickness but didn't gain any weight? Most people wouldn't even notice the difference if you didn't point it out to them.
10 Amazing BMW Ui Designs for Inspiration
There's two things that humble me on a daily basis, in no particular order: collaboration and testing.

While I use all sorts of testing, I still write a good amount of unit tests. For whatever kind of tests I write: not a day goes by without tests or the act of writing them exposing bugs that would otherwise have moved on to the "next level". Doesn't mean they'd have ended up in production, but they'd still have been a lot more expensive to fix.
Well eventually we'll get AV1 hardware encoding so I'd say in 5 years smartphones will encode AV1 in real time
Australia's new e-health platform crashes as people rush to opt-out
That reads so much like an ad. But again it's hard to make the difference between hard fanboyism and paid content nowadays.

And i say that while i have one plus 6, and want to try out android p.
Jhfgj
Yep. You build your event loop to take structs implementing the Future trait. The futures don't care about the executor, and it's easy to switch from an event loop running on the current thread to a thread pool, if needed.
Happened to me (in Europe).

Keyboard was replaced twice. Logic board died too (along with the data on SSD since it's soldered on).

All repairs were done for free by the Apple store, but of course I lost about 10 days of work (or at least I didn't have my main laptop).
What is a pity is that only mention of JC Bose happens is when he proves that Plants are living things. Thats it. 12 years of studies, 8 years with Science as subject and he gets just a paragraph at best.

PS: This is from State board in India.
> It would seem that everyone is deeply flawed in some way.

It would seem that Musk is deeply flawed in some way.
I have ~7k reputation there, that should be a pretty strong signal, but apparently it's not.
This changed in TLS 1.3. The server cert is now encrypted.
As far as I know, high cholesterol only correlates with heart attacks and strokes. there are also people who have high cholesterol and will not experience a heart attack in their life.
For typical problems (playing chess, tissue segmentation, translation, ...) you have the quality of the solution (sometimes difficult to measure) versus the cost of achieving it (energy/enthropy and maybe time). The cost is important.
Nitpick: here you can use a `case` instead of `if [[ ... ]] elif [[ ... ]] elif ...`:

case "$DATE" in
+*|-*)
DATE=$(date -I -d" $DATE days") ;;
tomorrow)
DATE=$(date -I -d" +1 days") ;;
yesterday)
DATE=$(date -I -d" -1 days") ;;
esac
What does such build produce? A JVM? A bytecode converter which produced code for existing JVMs?
5) advanced: https://www.amazon.com/Science-Programming-Monographs-Comput...
For Notepad++, I'm using a custom "TODO" syntax highlighting [0]. I like this for "temporary" TODOs (mostly work-related stuff to be done today) and as an overview for my scrum dailies.

[0] https://github.com/darekkay/config-files/tree/master/notepad...
The Macbook Air wasn't in any way intended for developers, though. All the people I knew buying Airs (even first gen) were the frequent travelers and types of people who do loads of work involving email, text documents, and slideshows. Nothing that required heavy processing, but work that involves being out of your desk and having to haul your work with you.

A lightweight PC small enough to slip in a folder was what they wanted.

The Macbook Pro was generally for more of the processing-intensive work and development side. Recently I've been seeing/hearing more and more dissatisfaction from that crowd.
Indeed a great idea, do you plan to port it to Firefox too? :)
I have a similar setup. Markdown files published in the open¹ using Hugo. That said, I'd love to have an easy way to add tagging and searching without having to create my Hugo template.

¹ https://davidgasquez.github.io/handbook/
Goes to show this was all about ego for Musk. Instead of being happy that all the children were rescued, his ego got bruised since they didn't use his submarine -- and he attacks the real heroes. Text book narcissistic behavior.
How to change clothes in PUBG mobile
I wrote about something similar in a comment https://news.ycombinator.com/item?id=16322942

It's served me well. I have records from as far back as 2009.
> Integration tests lie somewhere between unit tests and end-to-end tests so they provide the best balance. Therefore, they have the highest ROI.

Being in between does not mean it gives the highest ROI or the best balance. They can easily share the worst of both.

> Lean Testing takes an economic point of view to reconsider the Return on Investment of unit tests.

But does not in any way actually try and work this out, which means that you can't make the conclusions that are in this.

> The Return on investment (ROI) of an end-to-end test is higher than that of a unit test. This is because an end-to-end test covers a much greater area of the code base. Even taking into account higher costs, it provides disproportionally more confidence.

And yet no figures or evidence.

Many e2e tests can cover the same path segments, meaning adding a new test may not increase your confidence by much at all. But they're still taking longer to run, and despite the articles insistence that integration and unit tests are brittle, I've found E2E tests are also brittle, just in different ways.

I shouldn't have to change my string normalisation tests just because the website changed moving the resulting output field to a new place on the page. They shouldn't break because the login flow changes.

I have definitely seen (and written) E2E tests that provide almost no real value, and unit tests that provide huge amounts.

> Plus, end-to-end tests test the critical paths that your users actually take. Whereas unit tests may test corner cases that are never or very seldomly encountered in practice

Unfortunately low proportions of errors still can account for extremely large actual numbers of problems. 1/1000 bugs will happen all the time if you've got a reasonable number of users. Those bugs also may happen to most of your users if they're somewhat random, or worse may heavily impact one group.

> For many products, it is acceptable to have the common cases work but not the exotic ones (‘Unit Test Fetish’). If you miss a corner case bug due to low code coverage that affects 0.1% of your users you might survive. If your time to market increases due to high code coverage demands you might not survive.

Or if roughly one in 1000 customers keep taking your production server down due to a bug you might not, and you may have been just fine waiting another week to go live.

I agree with the idea, you should consider what it is you're trying to achieve and what the best ways of doing that are. What you absolutely shouldn't do is use terms like ROI and economic without any analysis, purely to justify not doing something you don't really want to do.
FYI, your site is kinda broken on my laptop (both Firefox and Chromium), I can only see part of the text at the bottom. You might want to tinker with that middle section with the slides.
How to write a simple but good business plan for your startup
Active Heterogeneous Hardware and Its Impact on System Design
Yea when someone in the public eye forgets the lessons they teach in kindergarten it’s always a little disappointing. I imagine he is mad at the guy, but I wish he would show a little less hubris.

Nobody is perfect. Hope he learns to apologize and be the bigger person because the benefits of that approach for those that are publicly adored cannot be overstated.
https://www.quora.com/What-is-accidental-complexity
Paper : FPGA-based Data Partitioning - https://www.doc.ic.ac.uk/~jgiceva/papers/SIGMOD_FPGA_partiti...
Thesis : Database/Operating System Co-Design - https://www.research-collection.ethz.ch/handle/20.500.11850/...
That’s really the thought that went through my head exactly.
India: Netflix takes a gamble on its next 100m subscribers
How to Buy Bitcoin on Coinbase [beginner's Guide]
But they just want to block it, so if the browser and/or app treats it as a MITM attack, that's fine from the censor's POV.
Show HN: List of Brave browser publishers amongst Alexa's Top 1M websites
Show HN: SPEEDy – a dynamic (WYSIWYG) standoff properties editor
Let's hope we can put some steep fines on the US for inaction, or other penalties (tariffs in other products / technologies) to recoup those investments, done while the biggest polluter is refusing to take responsibility.

The ideal solution would be to tax exporting climate tech to the US, but the world wants a fast adoption of clean technologies, so we need to balance this unfair situation otherwise.
Lol. I find many of them work in tech in New York and San Francisco.

Go to burning man and see if that’s your tribe.
How_to_change_clothes_in_pubg_mobile
> Unit test thus get written for part that we absolutely want to be maximum certain of that it works correctly.

I hear this kind of rhetoric a lot, but rarely do I hear of code that doesn't need to work correctly.
You are not getting a working google maps (or here maps, or bing maps) app for much less.

I have several countries and states on my phone, totaling about 600MB; I download a country on WiFi before leaving for the airport, and I'm guaranteed to have a working map with routing regardless of how well data works when I arrive.

maps.me is really excellent. The only thing is, it's owned by Yandex (the russian equivalent of Google), so your whereabouts are reported to the NKVD/KGB/FSB/whatever-it-is-called-these-days rather than to the NSA.
In one of the tests rav1e encoded 1080p source at 0.013fps (i5-7600K @5GHz). That's half a year for a 2 hour movie.

Private torrent communities are already reluctant to use x265 which provides marginal gains compared to x264 at a great increase in encoding time.

A part of the process in pirate movie encoding (p2p, not really scene) is testing optimal encoder parameters (adaptive quantization strength, psychovisual rate-distortion, quantizer curve compression etc) on short clips meant to be representative of the whole movie (e.g. 60 frames every 4000 frames). If encoding a single test clip takes an hour as with x265 that sure puts a damper on things.

About the only place in movie torrent communities where x265 makes sense is 4K encodes as x265 can retain HDR metadata (h264 can too to an extent with the 2017 revision to T-REC H264 but it's hardly supported anywhere).

This may be different for pirate _streaming_ services.
I think this story demonstrates the difference between quiet professionalism of people like Unsworth and narcistic void of Musk.
Seven years aren't "surprisingly short" just because there are games which development took even longer.
Just take a look at the Lifebook U937/938. Thinner and lighter than the Air, but has 1xUSB-C, 2xUSB-A, SD, HDMI and even RJ45(!). All the while sporting a 15W TDP CPU and slotted RAM. (And yes, battery life is good as well.)
So if the UK courts rule that posting on Twitter/FB is materially different then it's all fine?
Right. Backups are for pussies.
> Its super important to take a second every once in a while to simple write down what you did during the past mental sprint. Writing down what you learned solidifies the knowledge.

Sorry, I didn't get why it's super important.
Isn't it a context switch?
How does it really help to solidify the knowledge?
How often do you review those did files?
How exactly reviewing what you did helps? (I'm thinking of myself reading some "did" from the past and fail to see any benefit).
How this solution is better than using Notes or Google Keep or whatever online tool?
How to manage it across multiple machines and backup it?

If the goal is to solidify knowledge, I can't help but suggest using Anki: there was an article about in HN not so long ago: http://augmentingcognition.com/ltm.html
I assume he must have been heavily intoxicated at that point.

Not trying to defend him or anything... I just can't imagine how any public person could go that low. He must have known how hard that would backlash.
It's unworthy and completely wrong reaction, but it is understandable given the diver's prior attacks on him. Not that it's an excuse.
Facebook has a big movie piracy problem and it plans to do nothing about it
Edsger Dijkstra: "The first moral of the story is that program testing can be used very effectively to show the presence of bugs but never to show their absence." [1]

"I suggest that the programmer should continue to understand what he is doing, that his growing product remains firmly within his intellectual grip." [1]

[1] E.W. Dijkstra: https://www.cs.utexas.edu/users/EWD/transcriptions/EWD03xx/E...
For me, one moral of the story is when approaching any issue in a live system, it often pays to go back to modeling the actual problem instead of iterating on broken assumptions. Good solutions should have documentation which explains their take on the problem and the reason the solution in particular was chosen versus other potential designs.

Of course, outsourcing, interdepartmental or interpersonal politics can create commercial misincentives to remove such time and money saving features...
> The EU increase was a fluke, caused by the drought in Spain

Drought, fluke?

I was of the understanding that longer more severe weather events are predicted by the climate models?

So rather than being a fluke isn't this directly caused by unmitigated greenhouse gas emissions?
NVENC quality is crap.

https://youtu.be/jludqTnPpnU?t=366
One problem I have with the reception of this story is that most people think he attacked one of the British divers that were the first to find the boys, whereas in fact, the diver in question is a different person. The article describes him as "instrumental" but that encompasses a lot of the people involved, including the farmers whose lands got destroyed by the pumped water. I am not trying to down play this guy's contribution by any means but he is not who most people think he is.

That being said, both men engaged in a juvenile uncivilized exchange, initiated by the British diver, so there's no need to get courts involved.
Well the British diver guy, Vernon Unsworth, did start with the innuendo attacks first, telling Musk "he can stick it where it hurts", referring to the sub.

That's what Musk was responding to I think.

http://www.abc.net.au/news/2018-07-15/thai-cave-rescue-diver...
Just doublechecking to make sure I get it, the solution there is to replace the lambda with something like this right?:

lambda x, k=k: x*k
I don't trust any statistic I haven't faked myself.
This is so unbecoming and tacky. He has betrayed an unbelievable level of egotism and immaturity and embarrassed himself permanently.

The problem seems to be he is convinced he is smarter than everyone else and being dismissed obviously did not sit well with him. The most important thing is all the children were rescued safely and obviously the rescuers have distinguished themselves.

This is a lesson for all those convinced about their own smartness not to assume everyone else is stupid, and the importance of humility and maturity.
If you think Webpack is solving an easy problem, you don't understand the problem.
Also the fanboyism behind Musk is a bit unsettling. I made the mistake of viewing the replies to various tweets surrounding this controversy and there's a worrything amount of enthusiastic fans ready to jump in and defend him by sniping at anyone talking negatively about him. Why anyone would feel the need to "white knight" a billionaire is beyond me.
http://todotxt.org has a format for a done.txt list, too. Useful before project meetings to get an overview over what you did in the last days.

TodoTxtMac creates this for me:
https://mjdescy.github.io/TodoTxtMac/

I've been using it together with Dropbox (for access from my phone) for 3 years now.
It wasn't a powerhouse, but it was (the second generation one) the first successful "thin" laptop that made reasonable compromises so that it could be used a development machine.

In an era of remote servers and web scripting languages, not every developer needs a full-blown workstation.

I agree it wasn't indended for developers, but it ended up being adopted by many of them.
Why every startup should adopt Amazon’s 14 Leadership Principles, with examples