skysight-inc/HackerNews huggingface dataset:
Funnily enough, I have recently had great success by reversing the "best practices" on a distributed "micro services" architecture application into a single big Java file.

Best practices were the usual suspects DRY, IOC, SQL + NoSQL, separation of concerns, config files over code, composition over inheritance, unexplainable overlapping annotations, dozens of oversimplified components doing their own thing, and some $something_someone_read_on_a_medium_post

The Single Java File was around 500 lines no db, lots of globals, a dozen or so classes and some interfaces, Threads for simulating event based concurrency, generous use of Java queues and stacks but i specifically made it static with Zero dynamic hashmaps.

It actually runs in my IDE, I can understand what the hell the product is supposed to do what component is doing more than it should and more valuable was to predict what could break if I change that value in the helm chart from 5.0 to 5.1.

It is quite useful and pleasing, I can actually reason about things and I have new found use and appreciation for Type Systems and compile errors. And I can write tests that run in under 3seconds.
Are there wikipedia servers being hosted in Russia or something? Otherwise I don't see how this fine can be enforced. And if that IS the case, they should switch it to have Russian requests served by Ukraine /s
It gave them a positive feedback loop and gave them a safe space to become more extreme and weaponize their own stupidity.

You can easily see this to a lesser extend by going to any sports team subreddit and then going to the subreddit of the league that team plays in. The voices will be much more uniform and arguments more minor in the team subreddit for the most part... and views that are freely expressed and thought to be factual in the team subreddit may not be at all popular in the league subreddit.
Sure, smartphones brought a bunch of idiots.

But they also made the Internet so much more diverse and non-tech centered. Which is really beautiful.
It's not "companies" as a whole. It's a small department who comes up with these ideas and uses misleading, short-term metrics such as open rate or "cooking the books" by misattributing future revenue to their efforts ("this user who we spammed 3 years ago suddenly signed up - see, my marketing strategy is great, now give me a raise!") to justify their salaries. Their incentives are rarely correlated to those of the company, so every short-term trick that they can use to justify their salary is good even if it will be damaging to the company in the long term (by that time they'll already be on their next project with a successful achievement on their resume).
i don't hear the reverb, but...it helps to remember the SID ADSR envelopes are a mix of linear and exponential...can't remember which is which. i believe AD are linear and rel is exp? but since reverb decay is more linear than exp, a linear env can sound a bit like 'verb.

one thing im noticing in this is skipped ticks in the player... mysterious brief random pauses in the sequencer, ouch, heh.
"Flat is better than nested" - The Zen of Python

I had an "everything should be broken into a hierarchy!" stage back when I was learning to code, and boy was I off track. In my defense, at the time (and this dates me) OOP was all the rage.
It's a pain to get the top of second calibrated on a ceasium beam clock.
Published April 1st. Ooh, nice try.
> What is the moral of the story?

Either figure out how to improve the situation, or leave.
Russian influencers desperately scramble to maintain their followers
> Yet, two weeks to flatten the curve somehow turned into two years of flailing about aimlessly with ineffective measures.

1) Whenever someone mentions "flatten the curve" in that way, the implication always seems to be the CDC et. al should have had this novel disease figured out from day one, but that's an unreasonable expectation.

2) A big reason those measures were as not as effective as they could have been was that people were actively undermining them pretty much from day one.
> People would rather downplay the harms caused by the pandemic to avoid guilt.

The pandemic had nothing to do with keeping kids out of school for more than a year. That was all humans doing. The virus didn't wake up some morning and tell us to shut down down schools.

Lockdowns and government caused virtually all of the lasting side-effects from the last two years.

It is my strong opinion that history will not look kindly to almost every single thing humanity did the last two years. They were humans at their absolute worst... Making knee jerk decisions based on fear and panic never end up well...
New component based web starter templates
Ironically, this is a description of hacker news itself. https://github.com/shawwn/arc/blob/arc3.1/news.arc

(HN has indentation, though.)

It’s important to realize that this is good design. It’s hard to separate yourself from the time you live in, but the rewards are worthwhile.
This is my first time hearing about Playwright. Curious to know what you like about it over other frameworks? I didn't glean a whole lot from the website.
They're not mutually exclusive. You can achieve local + staging environments at the same time. Stable local env + staging. Local is almost always the most comfortable option due to fast iteration times, so nobody would bother with staging by default. Make it good, people will come.
I wrote a blog about this for anyone who would like to learn more.

The query strings get you around the paywall if it comes up:

https://freedomben.medium.com/the-rules-of-clean-and-mostly-...

If anyone doesn't know what migrations are:

https://freedomben.medium.com/what-are-database-migrations-5...
Whatever helps you rationalize that we basically destroyed the younger generation in hopes of saving the old/dying generation
Maybe he can channel those regrets into actually making things better by cracking down on white supremacists, even if it comes with some personal cost? https://www.businessinsider.com/twitter-algorithm-crackdown-...

In short, Twitter has had the ability to algorithmically filter white supremacists for years, but they haven't enabled it because GOP politicians are white supremacists.
> the days of usenet, irc, the web...even email (w PGP)...were amazing.

usenet, irc, email with PGP... these still exist, and many people still use them.
I don't have an answer or even a guess really, but I want to bring up that "autism" shows a strikingly similar trend in google searches and searches for "depression" kind of go down starting at the same time.
Because the title uses the word "several". Had it been replaced with "a few", the reaction would be consistent with what the reader would feel after reading the full article, and the statistics.

original > Young women earn more than young men in several U.S. cities

vs.

alt. 1 > Young women earn more than young men in a few U.S. cities

or

alt. 2 > Young women earn more than young men in some U.S. cities
IME, when you are not webscale, the issues you will miss from not testing in staging are bigger than the other way round. But that doesn't mean that all the extra efforts you have to put in the "test in prod only" scenario should not be put even when you do have a staging env.
> So for clarity, they will jump to do 10 hours for 5-7 technical interviews at $0 but won't do 10 hours of paid contracting work where they get $2,000?

It's a 30 hour contract, or at least the comment I was reading said that.

I would. I can just stop showing up to interviews if I don't like the company via the normal interview process. Once I agree to a contract, I have to do the whole thing (I take my contracts fairly seriously).

> That's $192,000 a year if you put in 20 hours a week (half the normal 40 hours that most folks put in).

192k presumably 1099 work. Which is roughly equal to 95k W2 work. Even with that it's not the same. They aren't offering me a guaranteed 20 hours a week of work ever week for a year. If they were, that might be something I would take (unless I particularly disliked the company for some reason).

Extrapolating out a short term contract to full or part time work is dishonest, it ignores all the work you have to put in to find that many short term contracts (lowering your effective hourly rate).
You can get away with a lot on a single developer project and best practices aren’t in place solely to make code functional.

That application would likely fall apart if multiple developers of with diverse backgrounds had to maintain it and add new features.
YES! As the article made plain, she had a LOT of equity in her house.

Now equity isn't as good as cash, but there's at least 10 ways to convert it to cash so you can pay your taxes. In her case, I'd think a reverse mortgage would be the best bet, but maybe a secured loan, etc., etc. She needed financial and legal advice - in a case like this get a lawyer.
Late to the party, but here's an eclectic mix:

- Logbook of your work, plans, thoughts; use whatever tool that you know will be around the longest. Be it git, apple notes, or any other. Make sure it has a search, and keeps track of dates.
- Somewhat related; an infinite terminal history. You may have the best one liners, but you don't want to keep rewriting them. Also, know your unix tools.
- Computer Science; as covered in GRE computer science; those are just fundamental, if you try to find your way around learning them, you'll just waste time and effort; just go through the learning. This is assuming you are a software engineer.
- Competent peers and good ways to review work, and collaborate in general. Code reviews are great, but they are just a small fraction of what you can achieve with a team. Retros, design reviews, pair coding, planning for common objectives are all productivity multipliers.
- A focus on objectives; this is a basic one, but not an easy one. You'll be making many decisions when you code, design, review, discuss, communicate, argue, negotiate, etc. if you don't keep track of the various objectives, you'll waste time and effort either immediately or in the long run. In a time crunch, stop and think about your objectives, and whether you can work towards them more effectively.
- Basic drawing and handwriting; you need to get comfortable with using a pen or a marker, and the ways of putting your ideas on a piece of paper or whiteboard. I've witnessed many impenetrable computer science theory or just basic design problems turn to dust when beaten down on a whiteboard by clear minds.
- Regular breaks, walks and occasional coffee. Being tied up on a (hard) problem for many hours without breaks is usually a waste of time, also unhealthy for your body.
- Knowing your data; if you are trying to solve a problem with ML and you don't know what your data looks like, you are wasting your time. Understand your data first. This requires experience, looking is not seeing or understanding. Also, know your objectives, see above.
- Know your sources of wisdom; these could be people, books, or search tools. You are unlikely to be the first to run into the same problem. If you are looking for a novel problem or solution, it is mandatory to check what has been done before. If you are dealing with a tough problem, you might get insights from others. If you are looking for better documentation, maybe it's out there somewhere. Don't forget to check before you get lost.
The sad reality of tech companies is that there is little incentive or bonuses for improving the situation. You won't get a bonus for cleaning up the code or for rewriting rotten code.

Hack at the code for 4 years, collect your options and leave the mess to someone else.

To be honest, a hacky codebase written fast is not the worst codebase to deal with. The worst type is when someone had the time to overarchitect and overengineer things.

Following references across 200 different files, tracing calls through hundreds of microservices. Graphql servers with complex resolver logic.
You’re correct that they don’t have high margins, but what you imply by it is wrong. People commonly confuse margin and markup. Markup is the difference between the cost of the goods and their sale price. (Net) margin is unrelated to the cost of goods and is simply the profit generated as a percentage of revenue.

These businesses have extremely high markups because they spend lots of money on marketing or marketing-adjacent things, plain and simple. It’s typically quite easy to see - around the same time that they’ll shift from made in the USA with a lifetime warranty they’ll start paying “influencers”, hiring marketers, sending things to blogs, maintaining a beefed-up social media presence, increasing ad spend etc. They simultaneously cut material costs by outsourcing and raise marketing spend. Their profit margin may not even be changed - but with the higher growth rates that the marketing spend brings the business is more appealing.

There’s no reason you can’t get quality goods at reasonable prices. LL Bean, although not cheap, was reasonably priced before they slashed quality a few years ago. Darn Tough is not cheap but the prices aren’t crazy and they’re made in the USA with a lifetime guarantee. American Apparel was 100% made in the USA until some years back and was solid quality. Los Angeles Apparel is 100% MiUSA and solid quality, prices are fairly reasonable. Clothing just doesn’t cost that much to make; MiUSA and good quality is possible, it just needs to make a comeback.
Yes, I have, maybe 20-30% of them but not zero as your comment would seem to imply.
This isn't true. There is evidence they are regrouping and the approval rating of Putin in Russia is increasing.
Levi’s are my baseline; they seem to last 1.5x as long as Nudie jeans before getting holes in the thigh or crotch.
> We, as OpenBB, would like to personally thank you...

What dishonest fake-friendly BS. An automated email isn't personal.
Presumably VB.NET? Because the VB6 IDE wouldn’t let you write more than 65534 lines [1]. Don’t ask how I discovered this.

[1] https://docs.microsoft.com/en-us/previous-versions/visualstu...
One of the things with hustlers is they need to encourage people to play and bet. So you never know when a hustler is just letting something happen and hoping that when you win a bet or game, it will encourage you to start betting and then they'll make more serious money. Which isn't saying this is what happened, just sayin' you don't know for certain that isn't what happened.
Curiously the elderly seem to feel the most robbed. In my family, the young locked down while the elderly went about as normal.

Discussing this today, the predominant feeling amongst the over 70 cohort was that they had at best a few more years of health with everyone and didn’t want to spend that in lockdown.
Well put. Mostly agreed.
If it’s running in Chez, it’s probably compiled: chez, sbcl and other lisps often compile everything before executing it.
Ah, that takes me back. Commodore 64 freeware games written in Basic.

Ya, you could just go in there and mess with the code all over the place.
Yeah, and not achieving 100% parity is definitely not worth throwing away the benefits from, say, 80% parity.
It actually just got funded as its own org this year [1]. It was a community until that happened.

1. https://blueskyweb.xyz/blog/2-28-2022-how-it-started
To be fair, the first step towards refactoring is understanding the existing code -- ideally, knowing everywhere it is used, all of its behaviors, and importantly, its history, so that you don't break anything, and so that you don't reintroduce bugs that have already been fixed over the years. Or, in lieu of all that, a robust automated test suite.

This cannot be done with a file containing 28k lines of code. That is an insurmountable task. They may as well have been asked to start from scratch and build a new engine.

I'm curious what the purpose of this ritual was. Was it just hazing, or was the thought that someone might actually be able to accomplish this?
Thanks for your response Troy!
We will have another one within 10 years.
there is scant evidence hospitals ever were at risk

I know several people who had to delay surgeries and other medical procedures because of hospital capacity due to COVID.
* Editor support for perfect semantic navigation may not be taken granted

* Compiler support for function-level incremental may not be taken granted

* Editor shows a nice file tree (although you can do that with symbols too)

* Working with git is easier

* Reading code on site like GitHub is easier
> I think it's too much to expect staging to match the load and access patterns of your prod system.

For a lot of things, this makes staging useless, or worse. When production falls over, but it worked in staging, then staging gave unwarranted confidence. When you push to production without staging, you know there's danger.

That said, for changes that don't affect stability (which can sometimes be hard to tell), staging can be useful. And I don't disagree with a staging environment for your usecases.
For those that don't know: Concentrated sugar solutions are indeed hydroscopic.

So it will indeed absorb water out of the atmosphere.
It's still doubtful that it will do it fast enough to create any significant pressure differential though :)
> people were actively undermining them pretty much from day one.

As they should. I didn't sign up for two years of this nonsense. We didn't know any of it would work but we knew it could cause serious harm to society yet we choose to it anyway. I'm not some lab-rat who is forced into participating in an uncontrolled experiment performed by a few cherry picked "experts" and their political backers.

Most people are absolutely not at risk of serious covid issues. We knew this even in the first month or two of this adventure but it was taboo to discuss. You'd actively be shamed, mocked and humiliated if you ever discussed actual public data showing covid isn't the monster the media and self-appointed "experts" made it out to be.

It scares the crap out of me how many people willingly played along for two years. Do people not question anything?
It's so weird that supply and demand doesn't fix this. there's no real barrier to becoming a house builder other than learning the trade, but it's not rocket science.
racket/stream is lazy, so you only ever generate values when they're directly asked for, and in this case they get discarded almost immediately. This means that the two sequences (fibonacci-sequence and even-fibonacci-sequence) use very little memory at any one point in time. If you switched from a lazy stream approach to a naive approach generating every single Fibonacci number below the threshold and then filtering and then summing, you'd see much worse performance. By using a lazy stream approach you end up with something that should be roughly comparable to this C-ish pseudocode, but still has the appearance of the functional map/filter/reduce style:

threshold = whatever;
accum = 0;
for (a = 0, b = 0; a <= threshold; a, b = b, a + b) { // parallel assignment invalid in C, thus pseudocode
if (a % 2 == 0) accum += a;
}
return accum;

Untested, so assuming no errors in my pseudocode. Note how this only ever has two values of the Fibonacci sequence in memory at any one point in time. The lazy stream version should be equivalent to this since it's only when you actually ask for an element of the even Fibonacci numbers that anything should be generated at all from either sequence.

Also, there is a shortcut to generate only the even Fibonacci numbers. Should reduce your execution time by a bit. Since the even Fibonacci numbers are every 3rd entry, this means you can cut out 2/3rds of the generated values and the conditional checking if a value is even or not.
> adults in their lives telling them, I got into UCLA, why can’t you

Not just adults. This is a difference even compared to students who graduated in 2019, which would include siblings and other near-peers. We're in the middle of the college selection process for the HS class of 2022 right now. Many colleges are getting record numbers of applications, because of all the deferrals and transfers from the last two years. That intensifies the competition for this year's kids, leading to a lot of waitlisting and outright denials even from schools that would have been fairly safe bets any other year. Just about every kid has had to lower their sights an extra notch, and some who didn't apply to enough safeties are facing unexpected gap years.

> Many are going to bed after midnight every night.

Some aren't? Between extracurriculars and homework loads for the more advanced classes, any kid who hopes to get into a first- or even second-tier college doesn't have much time to socialize or play games etc. any earlier.
> There was a period of time where social media was just starting out where the filter has essentially been removed (anyone can easily join and start producing & consuming content) but harmful content wasn't yet encouraged.

Prior to social media there was usenet, specialized forums, imageboards such as 4chan, and mass use of IRC. The average social media user would recoil in horror at the 'divisive' content that was common to that time period. REAL neonazis spread their message with impunity, anarchists gathered and distributed tutorials on how to make homemade weaponry, illegal pornography was rampant, and mass shooters were glorified. The 'divisive' content of today is quite tame and is focused primarily on promoting the interests of one of a handful of relatively similar political parties over the others. My point being that social media has amplified the voices of billions, but the money machine behind it has toned the violent poltical rhetoric of the net down to a dull roar. Anyone claiming otherwise is either misinformed or has something they want to sell you. </rant>
> Source code distributions were awkward;

Tapes by mail was a thing ...
They're trying to avoid Gtk bloat by delegating the file chooser to the desktop environment. How is this "destroying Gtk"? They're finally freeing it from the specifics of GNOME design and letting just be an efficient toolkit!
lim = 10**1000000
a, b = 1, 2
acc = 0
while a < lim:
if not a & 1:
acc += a
a, b = b, (a + b)
print("done", flush=True)
print(acc)

For a baseline this trivial python implementation does it in 34 ms for 10^10000 and 2m55 for 10^1,000,000 on a ryzen 5.
Because the fibonacci sequence is increasing roughly exponentially, the iteration count scales
roughly linearly to the number of digits. Then it just goes down to the number crunching speed of the bignum implementation?
(Calculating the exponent also takes multiple seconds, as well formatting the number to a string takes around 10 seconds as well.)
> Chez Scheme compiles source forms as it sees them to machine code before evaluating them, i.e., "just in time."

https://cisco.github.io/ChezScheme/csug9.5/use.html

There is no such thing as a “compiled language”: some languages are implemented as compilers and some as interpreters, but nothing prevents writing a compiler for most languages.
It's originally written in LISP and this is why it's a single C++ file. However, I believe that it's now being maintained in its C++ form.
But what's the difference between file1.c ... file50.c vs cat file*.c > onefile.c?
"The ability to play chess is the sign of a gentleman. The ability to play chess well is the sign of a wasted life." - Paul Morphy

There’s absolutely no limit to the amount of time your could spend getting better at chess. I personally lost interest due to the excessive levels of memorisation involved, which was also one of Fischer’s main complaints about the game.
>> [Column A] People dying because hospitals filled up and cases climbed is permanent.

> [Column B] Dead kids are also pretty &¤#&%#!" permanent.

> And this is the thing that's been missing for the past two years: A sensible cost/benefit discussion.

So, which is higher: Column A or Column B? I haven't checked the numbers, but I'd be astounded if there wasn't at least and order of magnitude more COVID deaths during this pandemic than total number of teen suicides (i.e. all of them, not just the increase due to the pandemic).