Better HN
topnewbestaskshowjobs
Log inSign up

mostlystatic

840 karma · joined Oct 18, 2012 (14y ago) · 248 submissions

Founder of debugbear.com.

Email: matt at mostlystatic.com

Submissions

151.

Show HN: An experimental data-flow analysis tool for JavaScript(fromjs.com ↗)

95 points · by mostlystatic · 7y ago · 11 comments

152.

Measuring the performance impact of Chrome extensions(debugbear.com ↗)

1 points · by mostlystatic · 7y ago · discuss

153.

Show HN: See what parts of a JSON object contribute the most to its size(debugbear.com ↗)

3 points · by mostlystatic · 8y ago · discuss

comment 8y ago · link · parent

I'm also in the UK and my experience is similar.

Part of that may be because I've mostly worked as a contractor, where you tend to be a replaceable cog providing 8 hours of service a day. But most of the permanent employees also went home around 6pm.

I don't think the consequences for going home at the end of your workday are very severe. You don't need to stay late if production isn't down. If production is down at 6pm that shouldn't have happened and you need to adjust your process. At my last permanent role I spent a lot of time telling people to stop deploying the daily build after 3pm. (I understand that there's project managers pressuring them, but that doesn't justify ruining anyone's evening.)

If you can't get your work done during work hours you should fix that, not work longer hours.

comment 8y ago · link · parent

Oh cool! I didn't know about that, will add it to the article.

156.

Keeping your JavaScript bundle size in check(debugbear.com ↗)

13 points · by mostlystatic · 8y ago · 3 comments

157.

Show HN: DebugBear – monitor front-end code(debugbear.com ↗)

3 points · by mostlystatic · 8y ago · discuss

comment 8y ago · link · parent

Yes those were fine.

comment 8y ago · link · parent

I tried to use Headless Chrome on Cloud Functions for a project I'm working on, but even on the fastest instances loading pages was sometimes really slow (pages timing out after waiting for 60s).

It seems sometimes JS execution was taking a long time, so I guess that was preventing requests from being made. In a single CPU cloud function you have network requests, JavaScript execution, rendering, and the Node process controlling the browser all competing for resources.

That being said, it was super simple to get started!

comment 8y ago · link · parent

You could offer the owner a fixed payment in return for the rights to future ad revenue from that video.

This assumes the owner is less confident that the video will be popular than you are.

comment 8y ago · link · parent

My approach is similar. I keep plain text notes on my phone where each line is something like "16 haircut" or "12o" (eating out). I have a Node script that I currently run manually, but the problem is that I only run it every couple of months... Using a bot keep track of things is a great idea!

Currently I group everything by month, but using a bot would also allow that to be more granular.

One thing I try to focus on is simplicity of the categories. Instead of spending £5 on toiletries and £3 on fruit I just have on "everyday items" category that I use for everything that I buy at the supermarket. So after every purchase I make I only spend about 5s writing it down, rather than trying to do any splitting calculations in my head.

Here are the result: http://www.mattzeunert.com/money.html

comment 8y ago · link · parent

Hi Sarah, thanks for answering questions. It's great to see pricing upfront!

Could help me clarify my principal residence? I was actually looking to buy insurance a few weeks back, but not knowing the answer to this questions stopped me and I didn't hear back from the insurance company when I asked them.

"Your principal residence where you receive regular mail"

I used to live in country A, where I have a forwarding address for most of my mail. But I don't live or have health insurance there.

I'm currently in country B but will leave soon and travel to various other countries. I want to buy health insurance for after leaving country B.

What should be my principal residence?

comment 8y ago · link · parent

People could submit their phone number anywhere that collects leads (be it dentists, charities, or SaaS companies), wait for a call, and then press the button to get the money.

comment 8y ago · link · parent

I think it applies only to foreigners. http://lawandborder.com/temporary-residence-registration-for...

Normally the hotel does it for you.

After getting an apartment here I didn't register for about a month. I had to spend some time at the registry office to get a warning. They said if it happens again there'll be a fine, and if it happens a third time you presumably have to leave the country.

On your arrival/departure form it also says:

"Aliens who do not lodge at hotels, guesthouses or inns shall, within 24 hours (72 hours in rural areas) of entry, go through accomodation registration at local police station.

165.

When to write tests(mattzeunert.com ↗)

3 points · by mostlystatic · 8y ago · discuss

166.

V8 memory quiz(mattzeunert.com ↗)

87 points · by mostlystatic · 8y ago · 11 comments

167.

Better types of debuggers(mattzeunert.com ↗)

1 points · by mostlystatic · 8y ago · discuss

comment 8y ago · link · parent

Capturing the callstack with `Error().stack` is expensive and it's done for every DOM manipulation.

The idea is that you'll only enable the extension when you're mystified by a DOM change, so if the page loads half as fast it's not a big deal.

169.

Show HN: ElementHistory – See what code created or updated a DOM element(github.com ↗)

1 points · by mostlystatic · 8y ago · 2 comments

comment 9y ago · link · parent

My last three Show HN submissions:

3 points -> 10 views

1 point -> 25 views

1 point -> 24 views

None of them made it to the Show HN frontpage.

171.

Show HN: Remove timestamps from conversation copied from Slack(mattzeunert.com ↗)

3 points · by mostlystatic · 9y ago · discuss

172.

How to write a JavaScript-free todo app using just HTML and CSS(mattzeunert.com ↗)

149 points · by mostlystatic · 9y ago · 46 comments

comment 9y ago · link · parent

“Ultimately you want consumer spending and standard of living to grow in lock step but it does not[2].”

This is often said, but even after reading the linked article it’s not clear why that’s desirable.

Why not for example keep growing exports instead of domestic consumption?

174.

Show HN: See data flow from JavaScript code to the DOM(fromjs.com ↗)

1 points · by mostlystatic · 9y ago · discuss

comment 9y ago · link · parent

GiveDirectly and Animal Charity Evaluators (ACE).

For GiveDirectly or other charities recommended by GiveWell there seems to be a reasonable amount of evidence that they actually create a meaningful benefit for the people participating in their programs. And where that isn't that case at least they try to generate new evidence about what works and what doesn't.

ACE is different in that there's a lot of justified criticism of their methodology and accusations of overinterpreting the data they have. But I hope that given resources and time they can improve on that.

176.

A quick look at how Chrome's JavaScript code coverage feature works(mattzeunert.com ↗)

2 points · by mostlystatic · 9y ago · discuss

177.

Show HN: See where a JavaScript object's properties were assigned(github.com ↗)

2 points · by mostlystatic · 9y ago · discuss

178.

Lazy JavaScript Parsing in V8(mattzeunert.com ↗)

2 points · by mostlystatic · 9y ago · discuss

179.

Preventing callbacks from accidentally being called twice(codereadability.com ↗)

1 points · by mostlystatic · 9y ago · discuss

180.

What's a statement completion value in JavaScript?(mattzeunert.com ↗)

3 points · by mostlystatic · 9y ago · discuss

1
56789