Recent submissions

Comment · 2 years ago
You can expose the browser port via ssh, with a command line flag like `-L 8080:127.0.0.1:8080`. So you can still preview locally
Comment · 3 years ago
This is just another tool to find people you follow on Twitter that migrated to Mastodon. So it's still the first sentence you said.
Comment · 3 years ago
Well I think the joke is that your skin will let you know once you pass the ivy whether it's Poison Ivy or not.
Comment · 5 years ago
Depends - on YouTube, there's definitely a lot of channels that encourage engineering and science of some kind, though not always in a safe way. We had Shitty Robots into just general engineering with Simone Giertz, William Osman and Michael Reeves with their dumb robots.

I would definitely include some of Simone's builds in the super serious club especially now, but Mark Rober and Build Stuff Better definitely have a more engineering focus to their videos.

Comment · 5 years ago
Most other compiled languages do dead code elimination, which sounds similar but is a little different. Think of dead code elimination as removing code that doesn't change the output, while tree shaking instead includes code that could run.

To apply this to python is interesting - if you were creating a packaged version, I could see "compiling" the code to a separate package with only the required imports.

Comment · 5 years ago
Don't worry, won't be likely to happen - the ads that are displayed now as banners are literally bid on when it's loading, so at most the ad serving code would be bundled, but you would still be able to block the binaries they load.
Comment · 6 years ago
Comment · 6 years ago
Comment · 7 years ago
Did they finish rolling them out? I know that is (was?) the plan, but when I interviewed last year at the Santa Monica location, they only had whiteboard.
Comment · 7 years ago
Not only that, but if you're on Python 3.7 you can use breakpoint() without any imports, which is even shorter.
Comment · 7 years ago
The English language is pretty large. There are a good number of alternatives to using the word he did that would be safe. He didn't have to use that word, but either did because he uses it often and is comfortable with it, or purposefully thought it would be a good use there. Both of which are questionable.

I'd also argue that Patreon isn't obligated at all to help him earn money here. It's not a employee employer relationship here, and they can choose to not to continue to help a person that they deem harmful to other customers.

Comment · 8 years ago
In python 3.6 and up, that becomes

    def example_cheater(color, flavor, age):
      return f'I am {age} years old and I like to wear {color} hats and eat {flavor} icecream'
Even nicer!
Comment · 8 years ago
It blows my mind that the original link wants to charge 35 dollars for one day of access for this.
Comment · 8 years ago
Instagram actually has a program for stubbing existing code called MonkeyType. It requires running your code to collect the data, and then after your run finishes you can then apply the new inferred types to your program.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton