skysight-inc/HackerNews huggingface dataset:
> Integration tests can test algorithmic acceptably well, but unit tests do not test integration code in an acceptable fashion.

True, but you can have both types of tests, which lets you test algorithms (unit tests) and higher level combinations (integration tests) both in the best way. The right tool for the right job.

> Where you have algorithmic and integration code smushed together (this type of technical debt is, sadly, the norm 'in the wild'), again, integration tests work acceptably well whereas unit tests require a mess of mocks.

In many cases, you'd be better off separating the logic, which would let you have both types of tests, each for a different part of the logic.

> Integration tests do not have to be high level or slow.

No, but they are a different tool.
In which Mr. "Grabcocque" takes issue with our regressive gender politics
I actually understand that. But not from any docs I've seen. And then there are open arrays. But only as params in procs.
Overwhelmed, nah, just occasionally annoyed. Mind you, I do like my world simple. Hence my envious looks at the Crystal camp.
I'd love to submit this document to HN, so it has a chance to get a wider audience than provided by this sub thread.

However, the title "Seque" is completely unspecific and hence totally useless. Given that title, I don't see how to submit this to HN in a way that it attracts readers.

This is really a pity.
JBEE – Java Basic Expression Evaluator
Inside North Korea's Bubble in Japan
A very fitting news for Halloween day.
I find the PIC peripherals better. The counter is fully async on the PICs for example which allows you to do very fast (50MHz+) pulse counting.

Agree for getting things going though - definitely faster and none of that PICkit crap to deal with.
"Play store et al already exist, why not use that?"

Play store does not have the content I want. And it seems overly difficult to post the content I want to make. And if I want to pay for engagement with the content, that's not an option.

Patreon is lot closer to what suits my needs. But even that is too inflexible on how to use payments and to what you should pay. So far everybody seems to be making their micro-transaction payment models "flexible" by making the amount paid flexible. But that's exactly the one thing I want to be fixed. I'd like to host my entirely own webpage and patreon just to handle the money from exactly the kind of transaction I want.

"Pirate" is not the thing I would concentrate on. People want to see the stuff before they pay for it. But if I could somehow engage with Slavoj Zizek about the superb youtube video he made, I'd actually pay for it. Or if I could promote that video to people in my home city I'd pay for that also. If some of that money went to Zizek I'd be even more willing to pay, because that would support him to continue. People underestimate the need for other people to be social about the content they consume.

People on reddit are using the reddit gold as super upvote. But that only works in Reddit.
How to import several product images to Shopify from one Excel row?
I thought HTTP2 was born out of the experimental SPDY protocol which was used in the wild for quite some time, maybe 5 years. I think SPDY was released around 2010.

HTTP2 is like the good parts of SPDY and what was learned over that time period (I think).
Sounds like your talking about Elliot Lake. (I'm in Sudbury).

After the boom, Elliot Lake rebranded itself as a retirement community with some measure of success. It hilarious to see the cost of housing there. A 3 bed, 2 bath house built in the 70's goes for $75K. But good luck trying to sell it.

That being said, I like the town. A lake in the middle of town with a natural beach, hiking, bike, cross country ski trails at your doorstop. Minutes away from great fishing, hunting, ATV'ing.. Its an outdoor persons paradise. I have a recurring dream of doing a startup, and attracting tech workers to the area. Imagine the money you could save while I enjoying a very high standard of living. Granted, those attracted to the idea would be 'seasoned', as the lack of access to major events would be a big negative for some.

In the meantime, I'll stay in Sudbury, making 60% of what I should be making, but enjoying the outdoors at my doorstep.
Perhaps it was everywhere: http://www.independent.co.uk/news/world/australasia/bindoon-...
3 speed modes, light, and some diode indicators.

Previously there would be one switch to control light, 3 switches to control speed modes and extra switch that I don't exactly know what it did -- probably it controlled some kind of timer.

The 3 switches that controlled modes were 0/1 (change speed to 1 if anything else than 1, turn off if it is currently 1), and 2 and 3 which would turn on 2 and 3 speed mode.

I have added a 500ms long press to 0/1 switch which means that whatever is happening it turns off both light and fan at the same time. You don't have to turn off light and fan separately and you don't have to press 0/1 twice to reduce the speed to 1 and then to turn it off.

As it was sometimes difficult to figure out which speed it was on without looking at the indicators (on the side and not on the front of the extractor) you never knew you had to press it once or twice which was quite irritating.
And now we are basically told that these actual sufferers described in the article are "colonial oppressors" and sometimes "bigots", equally responsible for whatever is pegged on them.

Somebody have found an excellent way to distribute their responsibility on the whole population when amassing even more wealth for themself.
Huh? I bought The Witcher 2 on release day from GOG with no DRM.
In a sense you are right. That state where you have the complete program as a mental model goes away when you stop for that session. But if you pick it up the morning after that mental model could be reconstructed in < 1hr and you can finish the feature and deliver it as value to a user. If you created good tests (unit/integration/regression) that captures the gist of what the code should do, two-year-older-you or another developer have a good chance of getting a similar mental model in order to change the code with confidence. So i consider "legacy code" as a scale where you on one end go "The reqs have changed, better rewrite it all!" to "The reqs has changed, but I can confidently add this functionality and keep some of the unchanged behavior!"
(I don't actually disagree with your rant, much, at least for a significant subset of the HN community. This particular article is maybe a somewhat tangential prompt for it, though.)
An aspirin a day keeps many cancers away, study suggests
We are working on python3 support and skulpt does have a python3 mode which emulates the biggest differences between py2 and py3. (like from __future__ import).

But it doesn't understand any of the new syntax added by python3 yet.
Thing is, it only works in if and switch statements, you have to be aware of it (I don’t think you can deduce it from docs), and you have to manually trigger it.

It’s ”poor man’s exhaustiveness” and TS will hopefully get better at this
Google-bred Waymo aims to shift robotic cars into next gear
When Gwern expands on a comment expect a book length article with everything remotely relevant cited and leaving nothing but a wasteland for future researchers.
For well-defined algorithmic logic, I'd say one is better off mostly using existing code (usually via a library). If a library does not exist, write the function as stand-alone with tests exercising its API. Preferably release it as open source.
The logical conclusion of this line of argument, which is dependent on the proposition that even bad unit tests have value, is that we could just automatically generate copious numbers of unit test cases for a given code base, and we would have something of value. In reality, this approach would be useless even for functionally-invisible refactoring or rewriting, precisely because it would be at the unit level. For that, let alone any substantive changes, Coplien's claim that higher-level tests are better stands, so this article cannot be dismissed as "beating a dead horse."
Benefits to Buying Your Custom Collegiate Necklace Online
In this day and age, almost everything is available for purchase online. Even jewelry is now sold in a wide range of online shops. If you are looking for custom jewelry, going online is highly recommended. Online shops differ from local jewelers because you no longer have to spend hours at a jewelry store checking out limited stocks. You can simply go online and look for a limitless array of jewelry options. As mentioned above, if you are looking for custom sorority necklace or collegiate jewelry, you can find many online jewelers that can cater to your needs.

Before you order custom collegiate necklace or other types of jewelry online, you can learn more about the benefits it can offer:

Cost Effective

Online jewelers that sell collegiate jewelry can save on the overhead cost of not running a brick and mortar store. Hence, they tend to offer lower prices than local jewelers can. This makes it one of the benefits to the shopping custom jewelry online.

Price Comparison

When you are shopping virtually, it is easier to look through various websites at a time. This will enable you to compare prices with ease and find the best price you could find online.

Online Reviews

There are also several third party review sites and reviews within the online jewelry store’s website. You can use the information provided by other shoppers to make an informed buying decision. Most importantly, you can decide if you must order your custom collegiate necklace or pendant from that store.

Convenience

Shopping from the convenience of your own home is the most distinct advantage over online jewelry stores. You can save time and spare yourself the hassle of traveling from your home to the jeweler’s shop.
The focus of the original comment was on compile-to-JS languages with strong(er) type systems. Scala.js should be at the top of that list.

Try again.
It's like rain on your wedding day?
BrowserCast: A Chrome app which can help you chat in every web site url
Katrina wants to know – #howdoilook
Don't be shy, install it and chat right now.
I assume you are talking about US undergraduate degree (if not, can you clarify). If so, most good colleges give you ample opportunities for additional learning -- go to grad classes, do research -- those avenues are usually very easy to open.

I probably agree that for each student at least one of those 4 years is usually wasted; but this is different than whole program being a waste for a person.
There is a recurrent pite patter of amazing new battery technologies, but of course the question is it can it be mass produced.

Are there any good websites to gauge battery development progress as opposed to the vital, but often ephemeral research progress.
Actually, not having inheritance is what I love the most about go. When I write ruby code, I keep wondering "where does this method come from?" and have to grep my codebase.

"Composition over inheritance" is not a new trend, that was actually mentioned in first chapter of Gang of four's Design Patterns in 1995 [1]. In that regard, I feel like we mostly failed to ever use OOP properly (although, "fail" is probably too strong a word).

I'm actually annoyed that embedded types exist in go because it re-introduces the same problem (but I have an easy fix for that: I don't use them).

But really, what you're describing is a data structure problem. This can be solved without OOP, and structs are especially good at it.

[1] https://en.wikipedia.org/wiki/Design_Patterns#Introduction.2...
Cryptomining and browsers: how long will it be tolerated?
IMHO 3 dimensions are mostly not enough for NN visualisation. Even for education purposes. Right after you finish HelloWorld tutorial its just not going to get job done.
I hope so. I think diplomacy is gradually evolving and adapting to the new times. For instance, Digital Diplomacy is a branch of Public Diplomacy and is quite a new way to interact with non traditional actors. Another factor is that there are new generations of digital native diplomats.
No, it controlled it through a Darlington array controlling an array of mechanical relays. The fan has 3 220V AC inputs and selecting the combination of inputs changes the fan speed.

I haven't looked inside the fan because it worked correctly. I also didn't want to test it to see how it works so I figured it out by analyzing the PCB. Actually that was quite good idea because the relays seem to be connected in such a way as to only allow valid combination to be sent to the fan even in case of invalid input from the microcontroller.

I suspect bad things would happen if I sent incorrect inputs to the fan -- looking at how crappy the board was but at the same time that the person put effort into placing the relays to explicitly disallow invalid combinations of power lines to the fan.
Pretty sure it was LSD (and mushrooms once), I've bought from different people.
My reading of it is that it also increases the utility of centralized resources like CDNs and Google fonts relative to hosting your own resources, which HTTP/2 increases the utility of. In other words, this tends to promote the centralization of the web and is a gift to big tech companies.
No. That's actually almost never true. It certainly isn't what I meant.
"Unit tests are pointless" -- this is often said by developers who suffer Dunning-Kruger syndrome. Except the devs who are actually working on something more exotic that cannot be tested well automatically.
http://www.greencarcongress.com/2017/10/20171031-ecn.html

Green Car Congress provides good context. This is also a potential manufacturing revolution.

But it's a hard problem because of the massive swelling of silicon during the lithiation, I think during discharge.
I am saying, do you buy the new model of the same laptop or monitor every single year?
Physical copies in some countries had DRM because of publisher. There were problems, and they reacted to that poorly (threathening players who pirated). They apologised later.
>True, but you can have both types of tests

You can, but if your code is 95% coordination and 5% algorithmic, at most you'd want 5% unit tests.

>In many cases, you'd be better off separating the logic

Which is refactoring and if you're refactoring you need to have your code surrounded with tests to do it safely.

And, once you've done that, if you've already written integration tests for that logic and they perform acceptably well, there may be no point in rewriting the integration test as a unit test.
How Can I Raise Money for Mobile App Startup?
In Sweden, which I definitely consider to be part of the "civilized western part of the world", getting caught with weed has dire consequences.
Nozxl
Free signup
On this note, one of the divisions of the company I work for is hiring a Python/Django developer in the Syracuse, NY area - https://www.indeed.com/cmp/Noble-Health-Services/jobs/Applic...

Change healthcare, develop for a pharmacy!
I will agree with that. I have investigated other options and always come back to the same place. I am currently trying to unwedge us from vendor specific IDEs to cmake subprojects and submodules. At the moment we have a monorepo but it makes releases of subcomponents a bit sloppy.
If your arm is destroyed in an accident, a robot arm could be an easier-to-obtain alternative, at least until re-growing of limbs is a trivial procedure.
How many times do you need to repeat the review of a given unit of code? (actually, that would have more chance of catching additional bugs than would rerunning the same unit tests.) Once you change the code, the existing unit tests are, by definition, invalidated (i.e. there is no value to being able to rerun them), while most higher-level testing will retain their validity. You have actually created an argument for automated higher-level testing (the author mentions that his position is often mistaken for an attack on test automation.)
Shut up and learn how to program.
> The logical conclusion of this line of argument, which is dependent on the proposition that even bad unit tests have value, is that we could just automatically generate copious numbers of unit test cases for a given code base, and we would have something of value.

I don't think that conclusion is any more valid than the proposition that if we just skipped the developer alltogether and generated both the business code AND the test, we'd have something of value.

> Coplien's claim that higher-level tests are better stands, so this article cannot be dismissed as "beating a dead horse."

i think higher level tests are good, but I don't think that makes lower level tests bad. I think there should usually be a health mix, with systems tested on several levels.
I've had one for the past four years now. I'm an active climber and sailor, and never once has it interfered in my day to day life. The benefits include being able to sort of feel your way around the equipotential lines of an alternating magnetic field. The worst thing that has happened to me was about two weeks into having the implant, I brought my finger to close to a strong magnet used in a menu to stick it to the wall. The magnet in my finger(which is shaped like a small tic-tac) did a 180 under my skin. Ouch.
> Because of an editing error, a previous version of this article incorrectly referred to Abraham Lincoln as a senator from Illinois in 1860. Lincoln never served as a United States senator.

Heh, NYT sure is competent on their facts...
Closing the Simulation-to-Reality Gap for Deep Robotic Learning
Show HN: WebGL Voxel Engine
People don't pay for content, they pay for convenience. When streaming was still non-existent, and if you weren't a college or high school kid, buying an album on iTunes was less hassle than torrenting it (especially for the non-technically inclined). Now that there's Spotify et al, iTunes sales have massively slumped.

The same goes for games: Steam killed a big chunk of piracy, as having to crack the game and crack again after each update (not to mention no achievements and no official multiplayer) is less of an user experience than just using Steam. However, if as in this case using the Steam version comes with a 40% performance cost... then yeah, piracy gets attractive again.
> The only way to prevent it is to raise the standard of living in these African countries so that no one would consider taking a mining job there in their current form.

I just don’t agree with that. There are many ways to improve this situation. Apple has done a lot to improve their supply chains and the conditions workers work there. As far as I know, Apple has gotten completely rid of child labor for their products because of its high standards. If more companies would take that stance, there would a lot less child labor in total. Although I believe Apple made a pretty big difference because of its size.

Furthermore, the government should regulat how imported goods and raw materials should be mined. They should have clear guidelines what is allowed and what is not for raw materials. There should not be a loophole for the supply chain. Every company chooses their supply chain and is thus responsible. If every company suddenly demands that their supply chain will not employ children and use safer techniques in their mines, the supply chain will make sure demands are met.

Employing such regulations is not unheard of either. The US government already is pretty strict about bribery in foreign countries, so they should be able to place similar regulations. Enforcing such a regulation can be hard but it is possible. If companies cheat, they will get chaught eventuall and if they are fined appropriately, it should not be worth the risk.

Even getting right and left wing people to vote for that should be easy. The right wing can use that regulation to keep the mines in the country and protect jobs, and the left wing can say it is better for the environment and humanity this way. The real problem are lobbies, though. There are a lot of companies which would suffer from that a lot and they are willing to spend a lot of money on lobbing. Maybe Apple, combined with Tesla and other environmental responsible companies can make a difference.

Just hoping that the standard in another countries suddenly improves a lot is not enough. We have no control over that country and many thing can prevent that. Furthermore, this just shifts the mining to another country and it will continue there. By applying regulations which set standards how materials can be mined, including requiring a living wage for that country, Afria has a good way to raise their overall standard.
Yes the Navy "trained" me by saying "here are 20,000 pages of documentation on the E-2 Airborne Early Warning aircraft avionics, now go fix it".

That has nothing to do with my CS studies, of which I have learned nothing from college and could have CLEPed a BS degree on day one if it was possible and moved on to a masters where I should have been initially placed.

> I'm sure you don't know everything.

I never claimed I knew everything.
Google Launches Firebase Predictions for User Segmentation with ML
Just... small point, but: side effects can be encapsulated, abstracted, and injected to create testable code in "side-effect" heavy situations.

Complex running dialog with a hardware serial device, for example, could be rearchitected as a component that has a clear-text dialog with a serial device proxy. This would create functional, side-effect free, testable units of code while also maintaining rich side effects in production (handled by pure integration tests).

Essentially: if you _have_ to use an integration test you should almost always be refactoring into something that you handle with unit tests in conjunction with your integration tests. Otherwise you're leaving maintenance developers with too much risk when making changes and no clear separation of your domain model from your application code.
NDA Coaching in Delhi
CRUDE OIL: Retains Broader Uptrend, Eyes the 55.21 Zone
Fully aware that I sounded like a dick there. I even apologized for it.

As for sorting out my threat vectors, I think you should sort out your threat vectors, if you don't consider the biggest data broker on the planet to be part of that.

But even if you yourself are entirely unaware of Google being a threat vector, I do think I made it abundantly clear in my initial comment that I don't want my IP address shared with Google, so then linking me to a Google webpage has got to either be a bad joke or so incredibly oblivious that I very much do think, it warrants a dick response.
I'm afraid we are still having this all across the world, in the form of child protection services.

People who, contrary to their naming, only care about taking children from their parents and putting them in institutions or redistributing them to foster parents.

Whatever tiny grain of trust I had in them burned in many scandals they get themself in and then failed to get out properly.
> but it'd bypass Typed Racket's safety here.

Sort of, but the expansion of any macros is still type-checked.
I wasn't sure why i cant focus on article until i've read this.
I was trying to create some kind of categorization prototype on google spreadsheets but it's a bit hard to squeeze out comparable metrics.

Cost, Reliability, Capacity

You could list cost of materials, number of cycles with 80 percent capacity left, capacity in Wh/kg.

But it would still be incomplete. Maybe some "driving cycle" style standardized tests for various uses. Also manufacturing scenarios.

Hard to create something non gameable.
Obligatory mention of homomorphic encryption [0].

[0] https://en.wikipedia.org/wiki/Homomorphic_encryption
Are you saying that expecting any privacy is unreasonable these days?
Are you afraid of the dark UX patterns at your local brick-and-mortar Target?
That isn't a particularly illuminating article - is there more information elsewhere?