skysight-inc/HackerNews huggingface dataset:
I assume your API can be expressed as this function signature:

parseDataFromHTMLResource :: Resource -> HTMLRaw -> Maybe Data

...and assuming we validate the HTML:

validateHTML :: HTMLRaw -> Maybe HTML

I think your question relies on the separation of 'Resource', as a domain separation like right below will probably create a lot of duplication (since any resource is free to structure their HTML within the standard however they want):

parseDataFromGoogleHTML :: HTML -> Maybe Data
parseDataFromGithubHTML :: HTML -> Maybe Data
parseDataFrom...

Perhaps you can reduce the duplication by converging to different fingerprinted resources. So a HTML resource, fingerprinted by style, will then guarantee your data:

data HTMLFingerprinted =
HTMLStyleGoogle
| HTMLStyleGithub
| ...

htmlFingerprintedFromHTML :: HTML -> Maybe HTMLFingerprinted -- So the Maybe will be here
parseDataFromHTMLFingerprinted :: HTMLFingerprinted -> Data -- ...not here

(Note that this may be what the parent means. It helps solving "For me it's usually, "Oh crap that thing I changed I had to change here and here too, whoops its good now... Wait no I also had to change it here... and here... now that we're done with that we should be fine... DAMMIT!"" with "I just create this abstraction".)

I would say if you're able to implement the function 'htmlFingerprintedFromHTML', you deserve the abstraction and thus DRY the codebase on the fly. And this "no pain no gain" mantra is what I personally really like on a 'functional core'. Code stays only duplicated where absolutely needed until you find a solution for the abstraction.

...and I guess implementations of fingerprinting HTML may vary a lot.
SEEKING WORK | PACIFIC STANDARD TIME | REMOTE OR SEATTLE

I'm a front end developer with four years of experience. I'm looking to pick up additional contract work on a short or long term basis. Resume available upon request.

Skill highlights: JavaScript, CSS, HTML, React, Webpack, Python, Node

Contact: northwestbased+hn@gmail.com
The Earth is Flat – The Bible says so – Poll
Is Sweden's tech industry an utter joke, though? Stockholm and Sweden rank very high, both when it comes to old-style tech companies (Ericsson, etc) and startups.
https://www.theatlantic.com/business/archive/2017/09/sweden-...
"Stockholm produces the second-highest number of billion-dollar tech companies per capita, after Silicon Valley"

Also, tech salaries are quite high -- as a consultant, you make more than in London at least.
I made no generalizations. I did exactly the opposite: I pointed out that there are many exceptions to the 1st/3rd world generalizations, rendering them false.
Honest question: how often does the code ambiguity due to lack of semicolons lead to non-obvious bugs?
I'm nowhere close to being a JS expert, but I've done some JavaScript-heavy pet projects and I've got an ambiguous statement interpreted wrong exactly once, and the cause was pretty obvious within a minute of looking at the error.
For some software products, the runtime and output can be measured for quality.
I'm incredibly curious as to how much that cost will be vs. a mid-career employee's 401k. If a middle class family with a decade or so of experience could cash theirs in, would they be able to afford to go?
Raising money from friends and family is certainly a common path to entrepreneurship, but it is far from the only.

My original point was that acquisition entrepreneurship could be an option for someone with a broad skillset like the OP. How I funded the first one doesn't really impact that as everyone will have a different path and I simply took the one that was available to me at the time.

If an existing path can't be found then it will have to be made. That could mean working and saving for a while, starting a side project with the goal of it becoming a profitable business, partnering with a friend and earning equity through sweat, etc.
> we can make it cost very little for society to support non-working people, such that work is not compulsory for survival.

If we are supporting people that legitimately can’t work, sure. But supporting people that can work, but don’t — that’s where I have a problem because my willingness to work, even in jobs I might not like gets punished through taxes. Why do I have a personal responsibility to support others that are unwilling to support themselves. We are talking about grown adults, if they have nothing to contribute to society, why would we subsidize that? Some layabout watching Judge Judy all day gets a free pass while the guy working on a hot roof all day is supposed to pay for that? Who is going to be a janitor if they don’t have to? Producing something of value to society is part of being a part of a society. People have a responsibility to take care of themselves. They might need some temporary help now and then, but making dependency a permanent state is a great way to ensure that government has ultimate control of your life.
> not-too-recent x86 hardware

I don't know much about system development, but aren't most x86 platforms extremely backwards compatible? Would an OS that is not adopted to the latest CPU not load at all, or just wouldn't use that CPU to the fullest potential?
Author here: this is one of those ideas that's been stewing in my head for quite some time and I'm only about 80% happy with how it came out as words. Let me know if I can provide further examples or elaboration.

----------------------

Edit: I wrote this example in response to a comment which has since been deleted, so I'll post it here instead

Let's say your program stores the positions of two entities that can change arbitrarily over time:

let pos1 = { x: 0, y: 1, z: 2 };
let pos2 = { x: 1, y: 3, z: 0 };

And you also want to work with the distance between them:

let distance = Math.sqrt(
(pos2.x - pos1.x) * (pos2.x - pos1.x) +
(pos2.y - pos1.y) * (pos2.y - pos1.y) +
(pos2.z - pos1.z) * (pos2.z - pos1.z));

When do you do this computation?

If "distance" is thought of like any other state, it's unclear, and it's easy for it to get out of sync with the values it's derived from. Maybe you have some sort of core update or rendering phase and you re-compute it there. Maybe you try and re-compute it every time one of the two values gets modified, either by constraining their modification within methods or by somehow observing their changes. Maybe you have a data structure that allows you to easily compare them to the values the previous computation came from. Deciding which of these strategies to take is non-trivial, but you can simplify the question a little bit by seeing "distance" as not being a normal part of state.

If you pull it out into a pure function:

function getDistance(a, b) {
return Math.sqrt(
(pos2.x - pos1.x) * (pos2.x - pos1.x) +
(pos2.y - pos1.y) * (pos2.y - pos1.y) +
(pos2.z - pos1.z) * (pos2.z - pos1.z));
}

then "updating" it becomes a singular, clear action:

let distance;
function updateDistance() {
distance = getDistance(pos1, pos2);
}

And then when it gets computed becomes an independent question from how it gets computed. You can update it eagerly, or lazily, or implicitly. You can use comparisons, or observables, or whatever.

The benefit becomes more clear when the value isn't a simple number, but a whole object or object graph. By making it immutable, you have much more leeway when it comes to "refreshing" it, because you can guarantee you won't be losing any meaningful information.

None of these ideas are especially novel or profound, but as a mental framework they've shed a whole lot of clarity for me in my work over the last year or two.
Computer algorithms beat humans at predicting reoffending rates
I wasn't aware of that. So it's a bad example but the idea behind VC investing still stands.
Making air from Moon dust: Scientists create a prototype oxygen plant
Lane Detection via Hough Transform
"A set of operations on data structures" sounds very much like imperative programming to me.
Sometimes, things happen to be the same now, but they got there for different reasons and are likely to evolve differently in the future.

In that case, there is not a single piece of knowledge being duplicated, but rather two separate pieces of knowledge being possibly unified.
You're going to take even more time to convince people to let go of the control - or at least the idea of control - that comes from driving yourself.
Not all of us have a server in the closet running 24/7, and having to use someone else's computer feels like half the way to using a service like Slack.
I hear that these situations exist, yet this is the complete opposite of what I was taught, which is that (at least !) the project manager had to have frequent and direct contact with the customers starting from trying to figure out what their real needs are - for the project to have any hope to succeed?
Nature and Growth of Modern Mathematics by Edna Kramer. If you love history and mathematics, this is a good combination from what I remember, sort of alternating between historical placements and biographies with actual mathematical content explained.

I read this decades ago before I learned advanced mathematics and I found it enlightening and inspiring at the time though I have not revisited it since though it is a cherished memory. The book's age prevents it from covering the many modern innovations since.
I'm also salty. What's your plan? I'm either gonna migrate to git (and use a different host), or self-host something like hetapod.net
CPU isn't the problem. Peripherals (GPU, network/WLAN cards, storage controllers, ...) are.
Keep looking for excuses, you'll find them. I mean that in a firmly supportive way.

I'm not suggesting every deal can find a team. If it was already cashflowing and has assets, it is much easier to put a deal together. Software startups, conversely, often have neither and compete in a non-local market.
I'm not following -

Is it your claim that among FAANGs it is a normal practice to say "This will take X weeks" when in reality it will take Y weeks to implement and K weeks to refactor something else where Y + K is X?
Did you actually attempt to read the article or did you just come here to spew out needless negativity?
This appears to be the only comment from a Swedish employer who had to carefully manage finances.
Not if you actually did something with that time.
Go Programming Blueprints is from 2015, have you had any issues with it feeling out of date?
Of course Zuck wants you to think he's a utility, essential and ubiquitous like electricity and running water. Absolutely not a predatory and amoral monopolist, no sir.
So, computers, phones, internet, electricity? I agree to an extent, but there comes a time rolling your own is nonsensical.
Having previously been in the adult biz it is now considered a black mark on your resume. It was all mostly black hat work at one point or another.
This is basically me and my skillset and trajectory but UK based. Its something i'd love to do with others. I noticed you're in Seattle so not in the same country or i'd get in touch to talk.

If anyone like this is in the UK and wants to get in touch, email in profile.
Wow a pizza compNy that delivers and cooks on the way to your house, all done by robots. I can see the pitch. All cooking is automated and in a few years we will become a self driving car company also and automate everything from taking order to cooking to even delivering to the door. There will be no human involved except to refresh the bank account to look at the money we are making!

Instead they ended up increasing their costs multiple times by cooking in parking lots and delivering over scooters. Wow. Classic example of not understanding what they are doing. Both the founders and investors have no understanding of either the tech or pizza marketplace and blindly jumped in. I guess it’s great for the founder. They make money almost for free.
Bitbucket (mostly via Atalassian) worked very hard to chase everyone off their platform in the vain hopes that the OSS community would start using Jira. Clearly they bet wrong, but unfortunately they aren't going to get any users back for a very long time.
Ah, thanks! It seems I should've tried a few more search terms.
The way to do automated pizza is to miniaturize and streamline like what Wozniak was great at doing at Apple. Retain the storefront and physical location. Push the storefront to be more community driven as an open plan restaurant and pickup location. Develop tech to generalize automated food prep and inventory storage. Build up from the basics engineering disciplines for a fully custom assembly pipeline.

You don't want to lose the place in the community or the accountability of having humans to hold responsible for your food. A storefront can carry that. I don't understand buying a robot arm and calling it a day. Or cooking pizzas in black-box trucks that may arise suspicion in their cleanliness or quality. Being able to see your food being made adds a lot.

How you do all that and compete with the big dogs is an interesting question.
> Hate being the smartest person in the room.

More likely than not this is not true. Dunning-Kruger effect and all that.

Especially if, by your own assessment, you are "proficient" in devops and sales.
>This is only weird if you don’t understand the concept of object permanence. If a red marble and a green marble are in a bag and you take out a green marble, you can be certain that the marble in the bag is red. Entangled particles are like this because when they are ‘born’ they are automatically opposites and they remain opposites as long as they are not disturbed. This only doesn’t make sense if you do not understand that there are initial conditions about which you do not and cannot know.

The above is only an "explanation" if you don't know about Quantum Mechanics...
Those pizzas were not good but I don't think it had much to do with the robot. I don't know why they didn't just spend a bit more on ingredients.
https://forum.privacytools.io/t/wire-swiss-gmbh-is-now-owned...

Wire Swiss GmbH is owned by a U.S. company.

> Can you link to these issues you mention?

https://crysp.uwaterloo.ca/opinion/wire/

The Wire client authenticates with a central server in order to provide user presence information. (Wire does not attempt to hide metadata, other than the central server promising not to log very much information.) The Wire whitepapers spend an unusual amount of space discussing the engineering details of this part of the protocol. However, the method of authentication is the same as it is on the web: the Wire client sends the unencrypted, unhashed password to the central server over TLS, the server hashes the plaintext password with scrypt, and the hash is compared to the hash stored by the server. This process leaks the user's password to the central server; the server operators (or anyone who compromises the server) could log all of the plaintext passwords as users authenticate.

This particular report is what caused them to open up the server.
You shouldn't be surprised at all. The higher up you go the wider the range is.

The range for a senior SDE at my company in my city is 250-400 (according to blind).

So you absolutely can have some people making $250k and others $350k for the same position at the same company.

Having said that.......by and large.....it's deserved. It is INTENDED to be merit-based.

But how fair is that merit-based system? Are people being shafted? Absolutely. International transfers. Those that don't negotiate well, or don't know their worth.
> That’s unfortunate but that’s what you need to handle if you are an employer.

100%, and we managed because I had taken into account all of that stuff. But people cant claim that this place is great for business while exposing startups to these massive risks.

> I’m not sure how you ended up managing a company with several employees while seeming surprised by the labor laws in the countries where it operates?

Plenty of these laws came to me personally as a shock because it isn´t really easy to know all of your obligations ahead of time especially when there are thousands of things to take into account.

It saddens me to say this but every time I hire someone I have to put aside 125% of their salary aside for both employer taxes as well as a "rainy day fund". Imagine claiming that such a place is business friendly. That´s my beef, nothing else.
Any Sweden does _____ is immediately BS. The five hour work day was BS, this is too.
I still think that's a silly reason not to hire their programmers, unless they played a role in creating weak security.

Security is often a whole company exercise that needs to be prioritized by management, putting blame on some individual programmers seems to show a lack of understanding of how infosec works.
A bash one-liner solves this problem for you. If you think it's "cool" to execute JS as a bookmarklet you are free to distribute your own version of the library. The original commenter was the one "putting people down" by demanding the author do it "the right way".
> like taking money from a loan shark

A loan shark that owns the air you breathe.
Makes perfect sense. Thats when you know you need to short the stock in the LONG RUN. Because all they know is taking orders from someone and running it.
This is the same with all companies. If Mark Zuckerberg steps down from Facebook, you can pretty much know, it's going to go down.
Productivity is why US software developers can earn so much. Not because they're so much more productive in lines of code versus the rest of the world. Rather, because software developers at US tech companies produce very large economic outcomes on average.

So do software developers in many other parts of the world. The difference is more that employment is a competitive market and the market rate for a decent software developer in the US tech hubs is recognised as being much higher than most other places so people moving jobs expect higher rates. Sadly, those rates do not necessarily need to be tied to productivity in any meaningful way, and so in much of the world software developers continue to be paid far less than the value they can generate because they don't negotiate well or bargain collectively to push salaries up.

However, it's not really a fair comparison. For example, in the UK, a lot of us solve that problem by going independent at some stage. At that point, you are dealing with clients on a business-to-business basis where fees charged can be related to value generated, and if you know what you're doing and get results, you can far exceed the income that almost any salaried software development position will offer.

Similarly, there are a lot of small tech firms here that are not SV-style startups with big funding and aiming to be the next unicorn or to fail within a relatively short period. They're just a few people who've got together to take on bigger projects or invest in more infrastructure or otherwise scale up, and they're happy to be doing that indefinitely and again making better money and enjoying better conditions working for their own business than they would likely get working for someone else's.
Hello, Are you tired of seeking loans or are you in any financial mess? have you been turned down constantly By your banks and other financial institutions, We offer any form of loan to individuals and corporate bodies at low interest rate of 2%. If you are interested in taking a loan, feel free to contact us today. Email: (masfinancialservices11@gmail.com.)
What are your Financial needs?
Do you need a business loan?
Do you need a personal loan?
Do you want to buy a car or a house?
Do you want to refinance?
Do you need a mortgage loan?
Do you need a huge capital to start off your business proposal or expansion?

Do you need to pay medical bills, Have you lost hope and you think there is no way out, and your financial burdens still persists? Please do not hesitate to email us at: (masfinancialservices11@gmail.com) for your loan application form.

Thanks and looking forward to your patronage ...
Mariangel Feinberg
In my experience people are afraid to ask that question. The answer to that question may lead to questions around total addressable market which could cause uppermanagement to question the viability of the product or at least the cost / benefit of having a big development and product management team in the first place.
iOS 13 Design Guidelines, Templates, and Downloads
Why can't people they just quit their job for the duration needed, do the startup in their spare time using their own money rather than taking advantage of someone else who is already successful?

They want to be called entrepreneurs - why would they not grow balls, take risk like proper entrepreneurs do and not hide behind socialist populist state?

Looks like a lot of people on HN have left-leaning views despite the name "HACKERnews"
When an Uber driver also drives for Lyft — even within the same hour, isn’t that the very definition of independent contractor?
Meh. We chase old renters out all the time and they don't get hundreds of thousands of dollars in windfall profits along the way.
Sure, but when you start building your business you'll probably do some kind of risk analysis and the risk that electricity is no longer available is catastrophic but unlikely, while the risk that Microsoft discontinues a struggling in-app ads system they built as part of their largely failed UWP initiative that they've been signalling backing away from for the last four or five years is both catastrophic and obviously going to happen. Ditto all the Facebook game companies that got eaten when that platform collapsed.

I know not every dev can afford a PM but every dev can afford to take a few minutes to do a risk document and check in with it every month or two. It seems to me there really was not a good business case for investing in Microsoft's ad platform to begin with.
Personally I appreciate the questions that are

1) open ended design questions
2) here's some broken code, fix everything
3) probe depth of understanding of tools/language

I always feel the Algo whiteboard questions feel like a "did you take the same DS class I did" round.
Parental leave pay is 79% or something, not “full salary”
Kiruna Mine
A frequent*, bite-sized newsletter about fitness and nutrition
Nothing. I spent 4 years working at the largest ones in San Francisco and it was an amazing experience. =)
Funny enough, I just outsourced a bunch to Vietnam and am in the process of moving the rest to eastern Europe. The only part that will remain here is the sales division because that needs to be here.

So yea, looks like the laws are working as intended... amirite?
That's not the same as "full salary no work" but ok. It sounds like she is taking care of the family full time.
I am honestly surprised that nobody mentioned the critical quote:

"The fund is less than three years old and we’ve already had eight IPOs and returned $10.6 billion to our limited partners."

I would be willing to believe that. Maybe SoftBank is making money and paying out profits, despite some of their companies publicly failing in spectacular ways. In that case, they are absolutely correct to ignore public opinion and continue doing what they were doing before.
I understand your point. My point (which I didn't really explain, so that's my fault) is that SoftBank is an especially terrible VC firm - at least when it comes to making money.
Oh boy, bad time to being saying this. All of the Americans on here have been hearing that Sweden is just better...it is so easy, "free" healthcare, "free" everything...build a wall, make Goldman Sachs pay for it.

The reality is somewhere in the middle. Generally in Northern Europe, excluding UK, you have a history of huge (monopolistic) companies that dominate the economy. So you end up with labour policies that reflect that...which is kind of terrible for the way the world is going. If you could take the job market flexibility and social policy without the freeloading, that would be something...I am not sure anyone has done this. And btw, this model would bring the US to its knees. It will be interesting to watch if it occurs...but I also hope it doens't.