skysight-inc/HackerNews huggingface dataset:
I'd recommend starting with identifying areas of your life that you want to actively work on improving. In other words, take an hour and zoom out to look at your life as a whole, and decide which areas of your life you want to zoom back in on to actively work on.

One format for doing this is "the wheel of life". There are lots of templates and online guides, but here's one place to start:

https://scottjeffrey.com/wheel-of-life/

I recommend this because people often set goals like "I want to start going to the gym" without connecting that to some larger vision for how you actually want your life to change as a result.
> That all sure sounds simple enough if you handwave over all the inherent complexity

I didn't say it was simple. I believe what I said: "we have no hope of long-term survival anywhere, because of our own stupidity."

> nuclear deterrent is the primary thing that has prevented a great power war from happening since 1945.

A sad statement about humanity. Which is why I said we need to get our shit together.

Do we bring nationalism and nuclear weapons to Mars? How soon after settlement until the first Martian war starts? Could a Martian colony even survive a war, if the life-sustaining infrastructure is attacked? Or do they do it in the style of Star Trek "A Taste of Armageddon", with simulations and disintegration chambers?

> How do you plan to provide food, energy, housing, and health care to eight billion people?

How do you plan it? Hunger, power outages, homelessness, and lack of access to health care already exist.

> Windmills are a hazard to birds, hydroelectric dams are a hazard to fish

We're already killing birds and fish in many other ways more deadly.
The code smell I see is the omitted semicolons. The pitfalls of doing this are well documented. Just don't do it.
Oh yes, chequebooks are still issued, but no one uses them. Chequebooks used to be these thick 50-100 page ones which used to cost a lot too. Nowadays you would be lucky to get a 15 page leaflet
(love)
Unlike GC, RAII is “eager” - which has performance implications.
That's not less complex, that's moving complexity to a different place with different problems and constraints.
A mere possibility of a function throwing an exception is a side effect that an optimiser can't ignore, and this inhibits many types of optimisations involving code motion.
This is for example the main cost of bound checking in Rust, not the branches.
In fairness, you don't have to put your return address on the envelope.

Historically, places could be fussy about accepting checks without an address although I expect that's not generally an issue today. (Of course, lots of other ways to get someone's address especially if they own a house. It's public information in general in the US.)

But, yeah, I've never heard of this account locking thing. I can go to my major brick and mortar bank's web site and add a new payee in 30 seconds. Done.
Where the majority of the complexity was in the backend. Now, the complexity has simply moved.

I'm quite happy I don't need to have two different codebases in different languages for most things anymore. I'm more than happy to offload it to the browser to save me some effort, time and money.
"Stunt" is the right word.

If humans are sent to Mars, the most vivid lesson will be not to send humans to Mars. The most valuable lesson is that life without the ecosystem it evolved to inhabit is unsustainable in some pretty horrifying ways, and humans need to take better care of their ecosystem.

There is already an indictment written in the Earth itself: That time we exploded nuclear bombs in the atmosphere. That time we put lead in gasoline. Those deadly mistakes left permanent evidence of stupidity and arrogance.

That said, if Elon can take a thousand libertarian techbros to a different planet, it will likely end up as an unintended monument to What Not to Do that will last for millennia. I'd give him the Nobel for that.
I think the better question is why haven’t we made front end development toolkits less complex (by pushing a lot of the complexity into the browser itself)?
That's more cryptocurrency than blockchain.

Blockchain as such has nothing to do with the costs of a node and incentives to run one
Show HN: I built Haystack – your own google for scattered workplace knowledge
Hi all!

A few weeks ago I was scrolling through confluence pages trying to
find ssh connection details to our integration machine for 40 minutes
straight, later I discovered my co-worker slack'ed me the ssh
connection string two months ago.

So the same weekend I started working on haystack - a search engine
for workplace apps. that enables you to search slack, confluence,
jira, teams, sharepoint, github, and email in one place.

I wanted it to support natural language queries so a query like: "how
to connect to integ2 machine?" yields:

ssh -i private.pem ubuntu@ec2-integration2.eu-est-1.compute.amazonaws.com

I decided that user data should be stored locally, so all logic is
completely client-sided (including the NLP model) - I don’t want
access to your internal docs, thanks.

I rolled it out to my co-workers a week ago and they thought it's a
hit, so I'm planning on releasing it publicly on March 2023. But if you want to try it out before then it's
available here: https://haystack.it. Thanks!
What are the speeds of other existing methods?
>Finder is an application one would have to pay a team of developers with the core instruction of 'make it a non-intuitive and unusable mess'

Some people seem to hate it but for me it’s absolute joy to use and the only file
manager designed properly and for power users.

Explorer totally falls apart once files in a folder are in the 10,000s performance anside its sorting and search are anemic compared to Finder.
£50M fund will boost UK nuclear fuel projects, ministers say
The great art of not checking names.

https://gluonhq.com/

Now we get to clarify if one means Gluon the Node.js framework, or Gluon the company for JavaFX tooling and mobile GUI development.
I think we will do both - and everything in between! Even just because you can never get all people top agree on something. :)

That's also the best option, not betting on a single idea or technology.
I'm a Windows developer and as such I'm biased, but I think Windows apps are dramatically easier to write than web apps. I still use WinForms professionally to this day. Productivity is absurdly high. The number of concerns to worry about is low. The framework has been stable for 20 years and I know all of its quirks, which never change. Fads are ignored. We can zip around with amazing speed.

On the other hand, our apps are:

- Ugly looking

- Dated looking (this is different than ugly, but our apps are both)

- Full of UI jank (too many WinForms controls take their sweet time painting on the UI thread)

- Non-server-based

- Non-cross-platform

- Non-sandboxed

- Installed from downloaded file that gives scary warnings in your browser when you try to open it

These downsides hint at some of the reasons why I think web-based development is necessarily more involved than for Windows apps.
Maybe he didn't want it getting out that he'd actually been drinking Tsingtao.
Oh, if it's kepler, absolutely. Thought 6 years thus Ampere.
Exactly, those patterns may be good if you know exactly what you're doing.

But in all the other cases, they just make everything more complicated and harder to understand.

I've once worked with a messy codebase, it was written in a very "naive" way, but that was also the strength of that code. Every view was in one file, every action was just one method, so you exactly knew what code was executed when. We tried to refactor it, but it became complicated really quickly (the domain was really complex), so we decided to just adopt to the style. We only split up components that became to big into smaller components, sometimes decoupled things a bit, but most of the time just kept all the logic.

And this product is successfully in use for over a decade now.
So NVLink/NVSwitch pools multiple GPU resources on a single (very expensive) system. A cheaper alternative to that is "offloading", which is a technique that splits the inference process into smaller steps, so it can run on systems with much less resources available... and Petals is a 10x faster alternative to that.

Did I get that right?

This AI stuff is moving very fast and it's hard to keep up, but it's all fascinating.
Therapy, exercise, eating well, working on things that are fulfilling (in my free time)
Care to give cases where it is not a solution?
My understanding is that the spinning dots are dates because they launched a new UI style which uses a different spinner.

They are dated simply because there is something newer.
Giving attention to someone who supports slavery is not a higher standard, so stop incorrectly linking to HN's rules.
To me, constructors are mostly a convenience thing for the simple cases where I declare a quick container on the stack or similar, and don't want to waste keypresses to have it constructed. And to me it's a question of, what does the language want to be -- maybe this kind of code is better served by languages like C#.

There are various practices that handle the problem of having to call a specific function to get an object in a specific state, without requiring language support. You can make the function that should be used stand out in an obvious way. You can hide the definition of a structure, which very

If it is the whole point of constructors to guarantee that the object is in the right state, it could be the best argument why Rust does not have constructors. Programming is chock-full of "this must be called only by that or in this or that context..." and practically speaking, only a part of them can be handled by language objects and construct/deconstruct semantics.

Plus, C++ gives enough escape hatches to get not-constructed objects or to un-construct objects without them going out of scope. These guarantees that C++ provides (but not really), they require a ton of baggage like ridiculous initializer lists or 17 different kinds of constructors (to the point where it's sometimes almost impossible to tell which will be called), or requiring an out-of-band mechanism (exceptions) to signal construction failure.... that's not worth it in my book.
Glade did that decades ago for GTK+ apps too. A WYSIWYG UI editor which prepared all the UI boilerplate code for you automatically.
That's it. It's induced demand. Build roads with more capacity, and more cars will appear to use them. Build frameworks with more capabilities, and more tickets will appear to use them.
This is a brilliant wrap up, but the real gem is the accompanying app ProtoView.

> "The secondary goal of ProtoView is to provide a somewhat-documented application for the Flipper [...] ."

Having a well-documented, not too
complicated and somewhat canonical beginner application is so
important.
In Germany the government asked people not to use electric heaters this winter because the grid could break down.

An ev drains way more power then a 2kw space heater.
Surprised no one is saying... I don't.
There are plenty of website builders that don’t require you to code. Platforms like squarespace or wix make it really simple.
Wouldn't mind a bit more explicaton of exactly what I'm looking at. For example:

> References to other information are represented like *this*[a hyperlink]. Double-click on it to jump to related information.

I remember accessing the web at a pretty early stage by telnet to info.cern.ch which presented a text client pretty much like an old version of lynx, but double clicking on that would get you nowhere. You had to press Enter, iirc.

Does the featured link emulate some internal client at Cern?
React today, Angular before that, JQuery, Knockout, All the gloriously bloated .net AJAX controls from Webforms, etc. There's been ways to wrap AJAX calls pretty much since XMLHttpRequest was implemented.

I'd argue "Wiring it up well" is a task better suited for these vetted and highly used libraries than rolling your own code in vanilla JS.
Oh, they work. They're not for detecting lies, which as you are apparently aware they can't. But they're great at intimidating people into confessing and that's why the authorities use them.
> 1. UI development is hard to do well. Throughout my career I've seen complexity explosions in C++/Win32, C#/WPF, and JS UIs so this isn't a new phenomenon

The people who complain about current front-end complexity are almost always back-end devs or people who don't touch front-end. However, almost every veteran dev who has developed UIs across many media and environments repeats your point.
World War Z Movie Transcript
I keep a detailed daily diary in excel that has a rating system for how I feel in am and pm and any new supplements or medications I take, exercise etc. Your mind changes with whatever you do and a written record you can interrogate later is the only way to improve how you feel and see what works and what did not.

I’ve tried almost all supplements and they all have a negative effect when taken for more than a few days. Things that work for me and make me feel better- low dose testosterone replacement 35 mg x 2 per week, 50 mg prescription Viagra every night, one long run per week of 5 miles. My life is night and day different on or off this regimen. Off, the world is gray and joyless, I feel like Bilbo Baggins when he describes feeling like “too little butter over too much bread.” On this regimen, I feel joy and alive. I feel hope.
It didn't. It just moved to the web. User interaction Is lots of edge cases.
I've used cheques a few times in Europe. They aren't common (especially since SEPA), but they do still exist.
I included the wrong link for Wikipedia and can no longer edit my comment. It's https://en.wikipedia.org/wiki/List_of_lawsuits_involving_Tes...
1. Synthetic fuels still take a minimum of 110g CO2 to produce one MJ of fuel.

2. Synthetic fuels still emit CO2, sox, nox etc. at the tailpipe

3. "Synthetic" fuels still use natural gas as the feedstock in production.
And this is why half of the internet is borderline unusable. Page layout jumping around for 5-10 seconds after what appears to be a full page load, buttons simply not functioning, and god forbid you try to use the back button. I know some expert will say none of those things have to happen and has nothing to do with react, but the reality of it is that these things are incredibly common in modern front end development, and I blame all the over-engineered frameworks.
Well, my bank did not handle them - the cashier told me that there is only one bank that handles them (Pekao SA) so I didn't waste time searching for others.

Maybe your friend has a company/businesses account? The services may be different than for a personal one.
> Unbelievable that anyone still uses handwritten checks. Unbelievable that anyone has done so in the current century. There exist diverse alternatives both more secure and easier to use and they have existed for many, many years.

Can you tell us what these supposedly more secure alternatives are? At least in the US, I don't believe there is anything better at the end of the day.

Credit cards can be more convenient, but not all places accept them and of the ones who do sometimes they charge an inordinate fee.

All the private companies (paypal, venmo, etc) are out because it is well known they'll freeze your account without reason and without recourse. So if you need a secure mechanism, stay away from those.

That leaves checks as the most universal, overhead-free and secure mechanism, other than plain cash but that's inconvenient for large amounts.
It's a good idea. I'm interested to see how much AI can improve UI and its development. Automatic dev aside, there's a whole world of flexibility and dynamicness there that we probably aren't even seeing because it's such a hairball.

Imagine a UI that guesses what you are trying to achieve and optimizes itself appropriately on the fly.

(And yes, tweaks all the fonts, palettes, etc to look nice too).

UI designed by humans could be a thing of the past. We could just feed the AI references to the variables we want the user to view/twiddle and the AI would do the rest.

(I hate writing UI)
No, there are people working on rockets and talking about Mars. Not the same thing.

When is the Mars launch? What's the schedule? It's 100% vaporware.
Tech companies get a lot of subsidies (directly and indirectly) so they develop inefficient practices.
When people don't have profit and loss incentive, where incentive means they are not removed by the market due to losses, human psychology tend to favor bigger, complex things.
there are several, following slightly different designs [0]. entt and flecs (mix C/C++) are currently the most visible [1]. older and more established engines are getting into the game as well [2].

its just a data point that C++ has constituencies that have not given up on it yet.

[0] https://github.com/topics/ecs?l=c%2B%2B&o=desc&s=forks

[1] https://github.com/SanderMertens/flecs

[2] https://github.com/GodotECS
I think 100,000 people on Mars also kinda implies a substantial space infrastructure to support them & possibly a sizeable population elsewhere.

All the space infra could also possibly help detecting and averting space born threats, such as asteroids on a collision course.
> The main reason for Mars is that it is not on Earth

The main reason cited is usually one of species resilience. “Not Earth” is an arbitrary requirement bolted on.

The main risk is that of an extinction-level event, such as large meteor impacts, substantial tectonic activity, or a worldwide nuclear disaster.

All of those would likely have minimal impact on an autonomous underground city with a complete, mostly hermetic air filtering system, with three redundant power sources (say, nuclear, solar, and geothermal). That would also be substantially easier to build than a >1K self-sustaining Martian base.
The grid seems fine from my non-expert view, its sized for peak loads on the highest capacity days. EV charging can be done at night once AC use drops off. In my 5 years in California there was maybe 1-2 days midsummer when there wasn't enough power and still was entirely due to inadequate generation and high usage in neighboring states as well which limited imports.
This feels like inheritance to me, AdminUser inherits from User both have a setup / create method… Or just use a constructor…

For the most part I feel whatever gets the job done in the least lines of code is usually the right solution.

But overall this entire exercise smells suspiciously like a constructor.
Exactly!

I'd think that "send modern probes to every one of the interesting moons of saturn and Jupiter" would be pretty amazing. For all we know one of them could be crawling with life!
how does one manage to break their neck in Antarctica?
I agree with you, got same feeling from reading. When i hear question should I raise only right answer is: it depends, what is your context?

But I guess it is hard to sound smart this way :)
Question 1: On average, yes, but not as much as people think.

Question 2: both?

I started my "career" with an internship job where i had to write deploy some cakephp+sencha extJS with windows server 2004 and IIS (~2013/2014).

The frontend part were "easy" but tedious, it was tables upon tables, a bit of jquery just because, absolutely hideous css (i think at the end i added bootstrap twitter classes on Sencha extJS). the "backend" was handled a bit like today, with a bit of backend work in the "View" part of the MVC (because Sencha ExtJS). Hard to find bugs induced in this "backend" work, because the only tooling you had were the old devtools, the only documentation you had with the official one (and a bit of SO/blogs, but not that much), and since typescript didn't exist, you had a lot of weird type/casts bugs.

I recently started a new job were i also have to do some short interfaces for my step functions, served by lambda (mostly). I had to learn react and typescript from scratch, and thought i wouldn't be productive in months. I was productive after a week, and after a month could confidently say i'm fluent with React router and props, and passable with typescript (Complex union type threw me off for more time than i like to admit). I still don't know if i understand ExtJS :/

By the way: the documentation isn't that much better now, with all the shitty blogs and stuff like "tutorialpoint" on google frontpage, but you can search code patterns through github and gitlab, and this help immensely.
An ontology of hope
I feel like I've done it all but the only thing that has made a difference for me is the amount of time I get to spend with friends. When I have mental stuff now I don't take it seriously, instead I treat it as a generic signal to hang out with people more.
Most of the answers here are pointing to things like inefficiencies, short-sightedness, and over engineering, but I'm not seeing the positive side.

The web is an incredible distribution channel. With decent engineering, anyone can make an app that has access to an enormous marketplace with very little capital costs.

The past 20 years of software have been dominated by this distribution model so it's easy to take for granted, but compared to pre-web distribution that involved manufacturing and much larger differences in user platform, it makes sense that the world is trying to squeeze as much software as possible into this model.

With that comes complexity.
when brain is tired go make meat tired too.
I keep hearing the Java people saying the same.

But there is (almost) no use for runtime reflection when you have proper compile time features.

Of course this is something one can only find out when using a language with those features.

But now I'm curious: What do you concretely need (runtime) reflection for? Maybe it's indeed one of the very rare cases where one would really need runtime reflection.
> JUST STOP MASS BLOCKING. You literally have no reason to. The only reason would be if you have an agenda to stop people from anonymously accessing information

This is my take, who cares were people accessing the site is from. The only places that should kind-of care are Banking Sites.
Amazing mac haters still exist in 2023. The products have proven themselves in the market and with developers. Ignoring that is head-in-the-sand behavior.

edit: 2023!
I've done about a hundred coding interviews in the past couple of years, and one thing I've noticed is that unless you are really, really good at functional programming, don't do functional programming in an interview. Many people try it, because they think it is more impressive or proper or whatever, and then it doesn't work correctly, and they flounder because debugging within a functional idiom is different, if not more difficult. Then they switch to imperative, and things get better. I've seen maybe 2 or 3 people that can handle debugging when using the functional approach.

As a side note, those 2 or 3 were not any more or less capable, in the end, than other interviewers.

I don't quite know what to do with that datapoint, but it is interesting.
What did he expose exactly? As far as I know - according to the US government - foreigners have no rights whatsoever so they could spy on everyone else completely legally. For example - they could install spyware/keylogger on my computer completely legally, because the 4th amendment doesn't apply to non-Americans.
They need to take over the account, vs fake a bit of paper
> If you need something like a check, get a money order.

That would be silly. So now intead of being able to quickly write a check on the spot for free, you'd expect me to go to the post office (or other place that sells money orders), stand in line, pay extra for it? That doesn't make any sense neither from convenience nor cost perspective.
Having trouble parsing this, does this mean there is a liquid fuel thats diesel+cow farts or will diesel engines incorporate compressed biogas injection?