Readit News logoReadit News
varrock commented on Baltimore's Key Bridge struck by cargo ship, collapses   wbaltv.com/article/baltim... · Posted by u/tbihl
naasking · a year ago
Indeed, the whole bridge failed because the impact didn't exceed the impact strength of the bridge's material, which means the whole bridge bent until the deflection exceeded the tensile strength of the material. A missile impact with the same total energy would exceed impact strength and would probably have destroyed only part of the bridge.
varrock · a year ago
Thank you for breaking it down like this. As someone without an engineering background, your explanation (along with some Googling for terms and definitions) really helped me grasp what happened.

You got me wondering:

> the whole bridge failed because the impact didn't exceed the impact strength of the bridge's material

When I first read this, it initially threw me off. The cargo ship's impact not exceeding the strength of the bridge sounds like a positive thing, but upon closer reading of your comment, it sounds as if it was the catalyst to the entire bridge collapsing.

So, how do engineers balance these properties of impact strength and tensile strength, especially considering large ships channel through these bridges near their pylons frequently? How much engineering goes into the possibility of large structures hitting their pylons?

varrock commented on Show HN: magick.css – Minimalist CSS for Wizards   css.winterveil.net... · Posted by u/magistr4te
varrock · a year ago
This is a great example of how a font can really compliment the style you're going for. It fits so well that you hardly notice it at all.
varrock commented on Storybook 8   storybook.js.org/blog/sto... · Posted by u/unleashit
unleashit · a year ago
Haven't used MSW, but don't people use it for mocking APIs? Isn't that apples and oranges? If your stories need data, you can always still use MSW. But otherwise when it comes to testing (in the app vs. Stories) I'd agree. Not exactly testing, but the play feature beats E2E if you want to show a smooth demo for clients/fellow devs.

As far as live reload, you're right but only once you've achieved the state. If you're firing up storybook or moving between components, you can already have any state ready to go (or quickly set with the controls). If you're in the actual app and don't have something like Redux Dev Tools, you have to manually go through the steps.... which can be a pain.

That said, so far I'm only using Storybook for the "component library" use case. And for that it's a big improvement from the previous DIY app I had.

varrock · a year ago
> Haven't used MSW, but don't people use it for mocking APIs? Isn't that apples and oranges?

At first, I was confused by what OP meant, too, but I think the point is that if you can mock your data easily, then getting your app into the desired state is straightforward enough that Storybook becomes unnecessary. At least, that's how I interpreted it.

varrock commented on From engineer to manager: what I love, what I hate   thoughtspile.github.io/20... · Posted by u/signa11
hiAndrewQuinn · 2 years ago
>The single most transferable skill I know in this industry is Linux internals.

I'm glad it's not just me who has noticed this!

varrock · 2 years ago
Would either of you mind expanding on this? What kind of roles have you held?
varrock commented on You don't need JavaScript for that   htmhell.dev/adventcalenda... · Posted by u/soheilpro
vertnerd · 2 years ago
I wish someone came up with a better UI than the toggle. Usually, I understand what it means, but I often find toggles where it isn't clear what the state of the toggle is. Right vs left, color vs no color, just isn't obvious to me. A visible check in a box is crystal clear.
varrock · 2 years ago
The article linked by the commenter above addressed your concern. They mention the toggle should have an _immediate_ state change. I really liked the iOS airplane mode example the article used:

> When turning airplane mode on for iOS, Apple provides immediate results by changing the cellular bars in the upper left-hand corner to an airplane icon.

To summarize, it sounds like the toggles you've experienced haven't led to an immediate state change, which likely identifies them as better candidates for a checkbox like you mentioned.

varrock commented on $20k bounty was claimed   prettier.io/blog/2023/11/... · Posted by u/conaclos
thenbe · 2 years ago
While it's always great to see performance gains, my largest pain point with prettier was never performance. Instead my only gripe with prettier is the "line wrapping noise" it creates, illustrated here by Anthony Fu: https://antfu.me/posts/why-not-prettier#the-line-wrapping-no...

Would it be realistic to expect a solution for this issue now that "prettier needs to step up it's game"?

varrock · 2 years ago
Specifically for reviewing a pull request in GitHub, wouldn't the "Hide whitespace" setting reduce some of this noise? I could be mistaken, though, but that's how I interpreted that setting.

0: https://github.blog/2011-10-21-github-secrets/

varrock commented on Calculus Made Easy by Silvanus P. Thompson (1910)   calculusmadeeasy.org... · Posted by u/avinassh
marai2 · 2 years ago
Douglas Downing's Trigonometry Made Easy is also a really great book for non-maths people. Same approach of situating Trigonometry in a mythical fantasy land. I remember Trigonometry as a chore of trying to memorize double-angle formulas and such, but this book really helped connect trig in an intuitive way.

I didn't know he had a calculus book, I'll have to check it out now.

varrock · 2 years ago
> Douglas Downing's Trigonometry Made Easy is also a really great book for non-maths people.

> but this book really helped connect trig in an intuitive way.

To me, understanding math in an intuitive way is actually how "maths people" think about math. The numbers and formulas are just a means to an end to get there.

varrock commented on Stanford is a platform   miles.land/posts/stanford... · Posted by u/rnjailamba
Upvoter33 · 2 years ago
So young and yet already so full of advice …
varrock · 2 years ago
The advice in this blog post is specific to college, and the author of this post is in their last year; they certainly have the qualifications to give advice catered to incoming college students.

For what it's worth, I've been out of college for a bit, and I've had very similar sentiments towards college as the author, but they came to me much later than they did for the author.

I might also resonate more with the article because I was one of those people who fell into the trap of following my peers instead of prioritizing what I was actually interested in.

varrock commented on Just normal web things   heather-buchel.com/blog/2... · Posted by u/vitplister
firefoxd · 2 years ago
One thing that happens when you learn to build web things using React before learning html, is that you don't care about links.

When I joined my team, all links were buttons, random elements, or <a> with onClick. Nobody complained, but that meant ctrl click was useless, right click did not give you the options you wanted.

This is the only thing I'm a dictator about. There is zero room for negotiation when it comes to links.

varrock · 2 years ago
I'd argue the link is the most influential and historic element of the web. Its behavior should rightfully be preserved.
varrock commented on Thousands of subreddits pledge to go dark after the Reddit CEO’s recent remarks   theverge.com/2023/6/10/23... · Posted by u/ValentineC
mlyle · 2 years ago
> The Reddit CEO's negative karma (-111,199 at this time) during the recent Ask Me Anything (AMA) session indicates an overwhelmingly negative response from the community.

The really impressive thing is... if you follow a user profile link to a comment and vote, the vote doesn't count.

And it was really hard to see spez's comments without following them from his profile, because they were so downvoted.

So I don't even know how you get down to -1000 on comments.

varrock · 2 years ago
> The really impressive thing is... if you follow a user profile link to a comment and vote, the vote doesn't count.

I've been a Reddit user for a while, but I never knew this. I tried doing a quick search, but it dates back to 2015 when it seems they were actually disabled all together from the profile page [0].

[0] https://www.reddit.com/r/help/comments/2nzzhg/if_i_go_throug...

u/varrock

KarmaCake day638February 23, 2018View Original