Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 3y ago · link · parent

Finding and fixing a bug in your own code that interfaces with a Kafka cluster that's tripping a disturbuted systems edge case is infinite squared. Solving it requires a huge volume of knowledge about complicated systems and topics as well as debugging across system and server boundaries.

It's all trade-offs. Complexity is complexity, whether the code is yours or not.

comment 3y ago · link · parent

Says the guy hypocritically from his smartphone.

Technology has solved so many problems. It's also created new ones. But we're way better off, there's no question of that.

comment 3y ago · link · parent

It's literally a hundred lines of JavaScript, they'd take more time to learn the changes in a point release of React. I think it's a non issue.

But the bigger thing is it's just for me, because I'm the only one working on it right now. If the project is successful and I hire people one day, they'll put up with it because I'm the boss :) Meanwhile I'll enjoy working on frontend again, something that hasn't happened in years.

comment 3y ago · link · parent

I was just building a very light version of this today. I'm just a backend developer sick of the bloated crap I have to maintain in my day job with React. I'm going old school, and going back to server side templates. Native compiled jinja2 templates using askama in Rust, tailwindcss, Postgres, and a little JavaScript magic to do things like server side form validation without refreshing the entire page.

I'm loving it so far. The pages load instantly, they're extremely lightweight, and all the state is on the server where it's easy to debug and all strongly type checked with Rust. I called my little "framework" curmudgeon, because, well I'm under no illusions about what I'm doing. Get off my lawn with those SPA JavaScript frameworks.

comment 3y ago · link · parent

Only if they can do it cheaper than the Navy. Nuclear isn't used because it saves on fuel. It's used because the operational advantages it bestows are worth more for the largest carriers and submarines than the extra cost it adds.

comment 3y ago · link · parent

We're not lacking information though. There are huge amounts of studies available for every FDA approved artificial sweetener. There is more information lacking for some of the less common natural ones.

Also disagree about your disagreement on principle without a structurally valid argument.

comment 3y ago · link · parent

You're implicitly assuming natural compounds are better than artificial ones. That's not necessarily true. It is maybe more likely to be true, since we may have evolved with exposure to the natural chemical, and our bodies may handle it better. But that's equivalent to saying men are more likely to earn more than women. True on the whole, but nearly completely useless when looking at a particular individual. You really have to examine each compound on its own merits.

comment 3y ago · link · parent

This is pretty low behavior. I've registered a few .dev names over the years, I'll let them lapse. I'll stick to .com.

comment 3y ago · link · parent

Completely agree, that's why this Lago is interesting to me instead of using Stripe services. I'd rather use Stripe for the bare minimum so I can implement support for a backup provider as well.

comment 3y ago · link · parent

No, I didn't mean to imply that you're doing that.

comment 3y ago · link · parent

Yes. It's a pretty scary possibility given their massive stockpiles of weapons of mass destruction of all kinds.

comment 3y ago · link · parent

It's millions[1] between the number the have been drafted and the number that have fled, and that's taking the Kremlin at their word about how many people they drafted.

Also Russia has a brewing demographics collapse, similar to what Japan is experiencing. This is going to royally fuck them for the next 50 years.

I think the Ukraine invasion might be the beginning of the end for Russia as we know it, I wouldn't be surprised to see parts of Russia break away going forward.

[1] https://foreignpolicy.com/2022/11/25/russia-uzbekistan-kyrgy...

comment 3y ago · link · parent

It's definitely prudent to check the permissions you're granting via oauth. It's also prudent for a women to dress modestly if she's going to be alone in more dangerous locations and times. But people don't always behave prudently for various reasons. They might not think an area is dangerous, when it is. They might not spot the read/write your repos part among the long list of other permissions. That doesn't make it the victim's fault if a bad actor took advantage of them.

comment 3y ago · link · parent

And Sony is what? They're worse. They're just trying to get the FTC to do their dirty work for them.

The thing about games, if they're gray goo, you don't buy them. There's lot's to choose from. Games are a meritocracy, they live or die on their own merits, regardless of which company produces them. If Microsoft turns them to gray goo, they only hurt themselves.

comment 3y ago · link · parent

Also Microsoft offered to make Call of Duty available on PlayStation for the next 10 years, which is unprecedented. I think that kind of takes the wind right out of Sony's whining. It bothers me that Sony does worse monopolistic things, like blocking cross-play, and then goes crying to the law to prevent Microsoft getting a leg up. I mean it's totally expected, typical big business stuff, but it's hypocritical as fuck.

comment 3y ago · link · parent

Once again Africa draws the short straw.

comment 3y ago · link · parent

Just the timeline given here is very suspect, my understanding is human brains were roughly the same size they are today 35000 years ago. Did you mean 350k?

comment 3y ago · link · parent

The point of the midpoint calculation is to find the mid-index usually (e.g. binary search, quicksort). So a and b would be unsigned. You're right about signed integers though.

comment 3y ago · link · parent

You don't necessarily need that actually, there are carry flags that are set on overflow that you can check to get that extra bit of precision.

In Rust you can actually do this using the checked add/sub/etc methods. It's one of the things I really appreciate about the language. By default, it panics on overflow in debug builds. You have to use the wrapping variants to declare that's intentional.

How about:

  if a > b { 
    mid = (a-b)/2 
  } else { 
    mid = (b-a)/2 
  }
There must be a way to do it without the branch? edit: Yes, in the article, I'm an idiot.

comment 3y ago · link · parent

It's mathematically correct, but integers use truncating (floor) division. So you can lose a fractional 0.5 from both a/2 and b/2, which would have added up to 1, and now your result is off by one from (a+b)/2.

In general, even with floating point numbers you can get different results by rounding implicitly or intentionally the intermediate values versus the end result.

comment 3y ago · link · parent

I'm also waiting eagerly for Hetzner dedicated servers in the US ever since before your expansion plans initio the US were announced. There's just nothing like your EU dedicated offering in the states.

comment 3y ago · link · parent

That $0.023 per GB is for storage. It's $0.09 per GB for egress (varies by region). It's charged the same as all other egress from AWS.

comment 3y ago · link · parent

Even the good guys are craven motherfuckers to you. Who does measure up to your standards of flawless perfection?

This is an analytics service that respects user privacy. We would be wishing them all the success in the world, not criticizing them for not meeting your ridiculous notions of HTTP header purity.

comment 4y ago · link · parent

I think you underestimate how hard it is to find evidence of human settlement under sediment in the sea floor in 400 ft of water. Anything organic likely is gone, but there might be stone evidence. Unless it's something like Gobleki Tepi, it would be very hard to identify. And sites like that would be very rare, if there are any. It's worse than finding a needle in a haystack.

As far as I know, little effort had been put into it.

comment 4y ago · link · parent

Graham Hancock is a journalist, not a scientist. He doesn't pretend to be otherwise. He's likely wrong about most of his theories. But he's challenging accepted ideas in a field where accepted ideas are frequently overturned. That's useful. He stimulates the imagination and tells stories expertly, making it a joy to listen to him talk. There's value in thinking "What If" and being unafraid to think outside the box of the consensus. While being careful to understand probabilities enough to know it's likely wrong. I think Archaeologists need to be a little less uptight and remember why they go into the field in the first place. It's because their imaginations were captured by stories, told and untold, of history. Let's also not forget that every new idea in any science was once against the "consensus" view.

I find it fascinating to think that civilization could have started earlier than we currently imagine. It doesn't seem that crazy to think that humans like to settle around river deltas and near the coast, and all the river deltas and coasts of 10,000 BCE are now under 400ft of ocean. What secrets lie buried under the ocean sediments? What will we discover? Graham may well be wrong about most of it, but I'd bet my life savings that there are fascinating discoveries yet to be made that will overturn what we currently think we know about human history.

comment 4y ago · link · parent

It does get helpful:

As I mentioned earlier, burying a bag of potatoes in a secluded area may be a discreet way to dispose of them. However, it is important to keep in mind that this is not necessarily a legal or appropriate way to dispose of potatoes, and it could potentially cause harm to the environment. Before considering this option, it is important to check local regulations and obtain any necessary permits. If you decide to go ahead with this plan, there are a few things you can do to avoid someone discovering the buried potatoes:

    Choose a remote location that is not easily accessible to others. This could be a secluded area of a park, forest, or other natural area that is not heavily trafficked.

    Dig the hole deep enough to completely bury the potatoes. The deeper the hole, the less likely it is that someone will stumble across the potatoes by accident.

    Cover the hole with dirt and natural debris to conceal it. This will help to hide the buried potatoes and make them less noticeable to others.

    Avoid telling anyone about the buried potatoes. If you keep the location of the potatoes a secret, it is less likely that someone will discover them.
It is important to note that there are no guarantees that someone will not discover the buried potatoes, even if you take these steps. And, as I mentioned earlier, burying potatoes in a secluded area is not necessarily a legal or appropriate way to dispose of them. If you are unsure of how to properly dispose of your unwanted potatoes, it is best to contact your local waste management agency or consult with a professional to find out the best course of action.

If you have a bag of potatoes that you need to transport to a different location without being seen, there are a few steps you can take to do so discreetly. Here are a few ideas:

    Choose a vehicle with tinted windows. If you have a car or truck with tinted windows, it will be more difficult for others to see inside, and you will be able to transport the potatoes more discreetly.

    Cover the bag of potatoes with a blanket or other cover. This will help to conceal the potatoes and make them less noticeable to others.

    Avoid busy times and areas. If possible, try to transport the potatoes during times and in areas where there are fewer people around. This will reduce the chances of someone noticing the potatoes and potentially asking questions.

    Use a trunk or other enclosed space to store the potatoes. If your vehicle has a trunk or other enclosed space, you can put the potatoes there to help conceal them and avoid drawing attention to them.
By following these steps, you should be able to transport the potatoes to your desired location without being seen. However, it is important to keep in mind that this may not be a legal or appropriate way to transport potatoes, and you should check local regulations and obtain any necessary permits before doing so. If you are unsure of the best way to transport your potatoes, it is best to consult with a professional for advice and guidance.

comment 4y ago · link · parent

Have you used github copilot? It's well worth the money and a much better auto-complete, especially for repetitive things like writing tests. But it doesn't come close to even reducing the number of engineers needed, it's just another incremental productivity boost from tooling. There's nothing new there, that's been happening for 50 years. Compilers, language improvements, libraries, IDEs, debuggers, a second monitor, faster computers, etc. AI is just the latest in a long line of tools.

However, writing software is one of the most creative acts out there. It's like writing a novel or a screenplay. Taking fuzzy business requirements and distilling that down into software is not something you can automate. When those fields fall to AI it's because general AI is here and humans have fallen to AI. At that point you've got bigger problems. Programmers are not going away, and demand for engineers still way exceeds supply. Demand for GOOD engineers is insane.

So learn as much as you can, put in the work, and you'll have an amazing career. Don't fret about AI.

I've worked on side-projects on evenings and weekends for 20 years. At this point I've written more code in more languages than most software engineers will in their entire careers. When I changed jobs back in March, I had a 2:1 ratio of jobs applied for to offers. It was amazing, I was able to choose between 8 offers. I'm still early in my career.

There's no substitute for putting in the work.

comment 4y ago · link · parent

So you agree it doesn't track users. At least we're on the same page there now.

Why not use a cookie? Because then they can't advertise that they don't use cookies. It's like how they put No-GMO label on food that doesn't even have GMO crop varieties. It's meaningless, but people are uneducated on the subject so it sells products.

You could use a cookie here, and you could do it completely legally without requiring consent. The laws don't care about cookies or other technical implementations, they care about tracking. So the reason to use this cache header instead of cookies is simply because people are uniformed on the subject and it sells better this way.

comment 4y ago · link · parent

It is privacy friendly and It's not tracking users. I think you like to complain about things you don't understand.

comment 4y ago · link · parent

So the moral of the story is to use passive fingerprinting that is able to identify and track individual users, because then you can skip the cookie banner and be compliant with the law?

I think I would rather use this and rely on the courts to interpret it fairly if it ever came to that, which it won't.

1
394041
184