Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
SplitDuck.com Use A/B testing to increase revenue
1

Think Java, but interactive

from Probably Overthinking It [alt+shift+b] in science

The online version of Think Java now features interactive widgets that run the code examples in the browser. For readers, it means you can try out the examples, modify them, and test your code. And for us it means we can publish an interactive version of the book without providing servers. The widgets use java-runner, an in-browser Java editor and interpreter developed by Think Java co-author Chris Mayfield. java-runner implements a subset of Java with the features needed for most... Read More Read More The post Think Java, but interactive appeared first on Probably Overthinking It.
22nd Aug 2026

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from Probably Overthinking It

Still Marrying Later: Update With New Data

In December 2024 I wrote that young Americans are marrying later, or never, based on the National Survey of Family Growth (NSFG) from 1982 through 2022–2023. The National Center for Health Statistics has now released the 2024–2025 survey, so I ran the analysis again. The new data lets us follow people born in the 1990s into their mid-thirties for the first time. What changed, besides the data Since the last update, there are two changes in the analysis: The results... Read More Read More The post Still Marrying Later: Update With New Data appeared first on Probably Overthinking It.

2 days ago • 1 votes
Do People Get More Conservative With Age?

There’s a famous (but unattributable) quip that goes something like this: If you are not a liberal at 25, you have no heart. If you are not a conservative at 35, you have no brain. In Chapter 12 of Probably Overthinking It, I used data from the General Social Survey (GSS) to show that the quip is half right. Older people hold more conservative views. But as people get older, their views don’t become more conservative; on average, they become... Read More Read More The post Do People Get More Conservative With Age? appeared first on Probably Overthinking It.

3 weeks ago • 2 votes
New Book!

I am working on a new book called You Would Choose Now: Measuring America’s Progress Toward Fairness and Tolerance. It’s a data-driven exploration of progress (or not) in public opinion and civil rights. I posted the first two chapters as an Early Access edition on LeanPub (a platform for posting work in progress like this): https://leanpub.com/ywcn If you would like to check it out, the “Free Sample” has just the first chapter. If you sign up with an email address,... Read More Read More The post New Book! appeared first on Probably Overthinking It.

4th Sep 2026 • 2 votes
The Frog Puzzle

Here’s a probability puzzle from a TED-Ed video called Can you solve the frog riddle? by Derek Abbott. It came up recently in this Reddit thread: You’re stranded in a rainforest after accidentally eating a poisonous mushroom. To survive the poison, you need to lick a certain species of frog. Only female frogs produce the antidote. Male and female frogs occur in equal numbers and look identical, but male frogs have a distinctive croak. You see one frog alone on... Read More Read More The post The Frog Puzzle appeared first on Probably Overthinking It.

4th Jun 2026 • 1 votes

More in science

New Environmental Regulations Controversy

The economist Thomas Sowell wrote in his 1987 book, “There are no solutions. There are only trade-offs.” In the world of politics and economics, I think this is profoundly true and is a great guiding principle. It is not strictly true in all contexts – in the worlds of science, engineering, medicine and others, sometimes there are genuine solutions, or solutions with only insignificant trade-offs. There is a related piece of social wisdom by Larry David – “A good compromise is when both parties are dissatisfied.” A great example of both of these ideas is the recent Bipartisan American Affordability and Jobs Act, or BAAJA. This was crafted in the Senate by two Republicans and two Democrats, and passed 62 to 33. It just passed the House with the Republicans split 202 for and 11 against, and the Democrats 46 for and 165 against. It now heads to Trump’s desk, and he is expected to sign it. Major bipartisan legislation has been rare in Washington recently. Without getting too deep in the weeds here, this is likely due to the closely contested nature of current politics. Both sides figure there is no upside to working with the other side. The minority party would rather sabotage the majority and then wait until they are in power to pass partisan bills. Congress is also more partisan and extremist (more so than the public they represent), perhaps due to extreme gerrymandering and the current primary system. Perhaps the mood has shifted a bit after the recent midterms. The public seems fed-up and just wants some action, which in divided government (which we will soon have) requires bipartisanship. Despite passing, the bill is controversial, reflecting many of the trade-offs I have been discussing in the context of infrastructure in the US. The bill is essentially about permitting reform, and aims to make it easier to get permits for major infrastructure projects. It is a big and complex bill, and some of the features were not very controversial. For example, it will allow simultaneous review at the state and federal level to speed up the process. This is just a gain in efficiency without much downside. But there are major components that involve serious trade-offs. The bill waters down the ability of environmental and public groups to slow down permitting through lawsuits. It also narrows and speeds up reviews necessary to protect native and culturally sensitive lands. Some environmental groups opposed the bill due to fear it would lead to environmental harm. On the positive side the bill will make it easier, quicker, and less expensive to complete big infrastructure projects. That is the fundamental trade-off – speed vs environmental protection. But the other reason that Democrats and environmental groups were split about the bill is because those infrastructure projects include many green-energy initiatives – upgrading the grid, adding grid storage, building wind farms and solar arrays. The very laws that were designed to slow down the fossil fuel industry are now slowing down renewable energy projects. BAAJA will be a boon to fossil fuel projects and green energy projects alike. If you are a staunch environmentalist, it’s a genuine dilemma. Trade-offs are often about balance, and proponents of the bill were essentially arguing that the balance of protection vs efficiency were way off and needed to be recalibrated, which this bill does. Opponents argue that it goes too far.  Some Democrats were also seduced by the notion that they should kill the bill then draft their own in two years if they capture the White House – again arguably locking us into a partisan doom cycle that gets little done. I am personally conflicted about the bill for all the reasons stated, but I think passing it was probably for the best. The devil will be in the details, and specifically how it is enforced going forward. In the hands of an administration like Trump’s, who thinks that global warming is a hoax and essentially told the fossil fuel industry he would do whatever they want if they supported his campaign, loosening the reigns is concerning. But he will not be in power forever, and is already a lame duck. The Democrats will likely have their chance to push green infrastructure projects before too long. I do think that renewable energy and battery storage now have an advantage in the market, and that advantage will only increase. Trump right now is distorting the market by forcing, for example, coal-fired power plants to remain open when market forces want them to shutter. So I see BAAJA as one component to a suite of strategies to meet our growing energy demands with increasing green energy. We need to free up the market so that it can build and change. We also need to make sure that companies are not allowed to distort the market by massively externalizing the environmental costs of their industry. And we should invest in critical infrastructure. From this perspective, BAAJA can be a step in the right direction. But it also reflects another principle of politics that many people forget – the battle is never over. There are no permanent wins because democracy is a continuous process. BAAJA is therefore not the end of this issue, it is just one step along an endless path, and should be seen that way. That is also my message for many of the voters who are happy with the midterm results. I am hearing a lot of – we the voters did our job, now it’s time for politician to do their job. I think this is misguided. Your job (the voters) is not done. It is never done. And nothing happens quickly in Washington. I would even argue that Democratic voters failed to do their job in 2024, and have now only partially corrected their catastrophic error. It will take many election cycles to undo the damage. But regardless – if you want positive change in Washington, that does not come from one election, no matter how dramatic the results. It results from paying attention, and showing up for every election, especially the primaries and off-year elections where your vote has the highest impact. And this never ever ends. The post New Environmental Regulations Controversy first appeared on NeuroLogica Blog.

2 hours ago • 2 votes
Stop-loss insurance - the product shaping employer healthcare | Out-Of-Pocket

There’s a lot more $1M claims, and a lot of ways you can slice that risk

3 hours ago • 2 votes
Audio Edition: Entanglement Builds Space-Time. Now "Magic" Gives It Gravity.

In holographic theories, physicists may have traced the pliability of space-time to its quantum roots: a measure of quantumness known as “magic.” The article Entanglement Builds Space-Time. Now “Magic” Gives It Gravity first appeared on Quanta Magazine.

5 hours ago • 1 votes
universe gathering in tranquility

Despite belonging to the University of Cambridge this fall, I’ve been living far from its Gothic architecture. Imagine turning your back on the city center’s spires and statues. Walk westward for half an hour, and you’ll reach West Cambridge. West … Continue reading →

9 hours ago • 1 votes
The NIH Glyphosate Report

Is it credible? Let’s look.

2 days ago • 2 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in