Simen Brekken

3.2K posts

Simen Brekken banner
Simen Brekken

Simen Brekken

@simenbrekken

Freelance Frontend Engineer

Oslo, Norway Katılım Nisan 2009
229 Takip Edilen475 Takipçiler
Simen Brekken
Simen Brekken@simenbrekken·
Git still confuses me after decades of trying to understand it well enough to be productive. @gitbutler brings a revolutionary take on version control, especially for working on multiple things simultaneously. youtube.com/watch?v=zZD24I…
YouTube video
YouTube
English
0
0
2
145
Simen Brekken
Simen Brekken@simenbrekken·
After working with React hooks for a few years, I have come to appreciate their intricacies. However, they are a terrible pattern for less experienced developers. Ensuring and synchronizing referential equality using useRef with useCallback is a new level of syntactic hell.
English
1
0
6
448
Simen Brekken retweetledi
Ben Tossell
Ben Tossell@bentossell·
All the best examples of ChatGPT, from OpenAI:
English
367
2.8K
13.7K
0
Simen Brekken retweetledi
isaacs
isaacs@izs·
A better word for what we commonly call "capitalism" would be "capitalocracy". It's not "the idea that people own property and can trade it" which is the problem. It's "rule by those who accumulate the most capital, and rights granted in proportion to holdings" that is so toxic.
Jason Hickel@jasonhickel

People often assume that capitalism is defined by "markets and trade". But markets and trade existed for thousands of years before capitalism. Capitalism is only 500 years old. So what is distinctive about this economic system? Three things (well, more, but three for now):

English
1
11
30
0
Simen Brekken
Simen Brekken@simenbrekken·
@einarwh Indeed, one of my favourite parts working with GraphQL is the notion of keeping IDs, cursors and other information opaque in the eyes of URL consumers.
English
0
0
0
0
Simen Brekken
Simen Brekken@simenbrekken·
@benmvp That difference is subtle but painful when dealing with complex interfaces. I’ve been defaulting to type aliases for a while but this proves interfaces come with fewer surprises. Thanks!
English
0
0
1
0
Ben Ilegbodu 🏀👨🏾‍💻
On the other hand, interfaces are good for extending an object type when we wanna override a property When we use type intersections, the property types are intersected, usually resulting in a `never` type. We _can_ 1st use `Omit<>` to achieve "overriding" w/ type aliase 🧵👇🏾
Ben Ilegbodu 🏀👨🏾‍💻 tweet mediaBen Ilegbodu 🏀👨🏾‍💻 tweet mediaBen Ilegbodu 🏀👨🏾‍💻 tweet media
English
3
2
61
0
Ben Ilegbodu 🏀👨🏾‍💻
Something that always comes up when I teach React + TypeScript is "interfaces vs type aliases" for props & other object type definitions 95%+* of the time they're interchangeable. But let's look at practical cases where we might favor one over the other 👀 /thread 🧵👇🏾
Ben Ilegbodu 🏀👨🏾‍💻 tweet media
English
20
183
999
0
Simen Brekken
Simen Brekken@simenbrekken·
@samelawrence @Cypress_io I was more thinking of contributing a separate filter button with an accompanying dialog that showed filter options. My "plug-in" is terrible enough as it is!
English
0
0
0
0
Simen Brekken
Simen Brekken@simenbrekken·
@samelawrence Glad to be able to help! I thought about it some more after implementing the solution and some kind of persistent filter in the runner sidebar would perhaps be a nice solution. E.g being able to only show clicks, omit page load events etc.
English
0
0
0
0
Sigurd
Sigurd@fosseng·
Har lyst på Wagyu...
Sigurd tweet media
Dansk
1
0
0
0
Sigurd
Sigurd@fosseng·
Når nettbutikken ikke har det jeg vil ha, så søker jeg på det mange ganger for å dytte produktet opp i prioritetslista. 😈
Norsk
1
0
0
0
Simen Brekken retweetledi
Jamie Kyle is on 🦋
Jamie Kyle is on 🦋@buildsghost·
I think if you make it a rule to always use attributes instead of classes to apply CSS to element states (not variants), you’ll force yourself to make your app more accessible (Similar to React Testing Library) If you’re using CSS-in-JS this also helps create more static styles
Jamie Kyle is on 🦋 tweet mediaJamie Kyle is on 🦋 tweet media
English
10
179
1.3K
0
Jason Miller 🦊⚛
Jason Miller 🦊⚛@_developit·
Please don't import SVGs as JSX. It's the most expensive form of sprite sheet: costs a minimum of 3x more than other techniques, and hurts both runtime (rendering) performance and memory usage. This bundle from a popular site is almost 50% SVG icons (250kb), and most are unused.
Jason Miller 🦊⚛ tweet media
English
82
340
1.9K
0
Simen Brekken
Simen Brekken@simenbrekken·
@fosseng I was constantly doing option+space mistakes and ended up creating a custom keyboard layout using Ukelele that turns option+space into a regular space as well as ` and ^ without needing to hold option. Hollar if you want it! :)
English
1
0
1
0
Simen Brekken
Simen Brekken@simenbrekken·
@andersholm1 Prosjektleder kommer inn på ledermøte med to runder tromlet tøy i en balje og begynner å brette.
Norsk
0
0
0
0
Simen Brekken retweetledi
Rachel Tobac
Rachel Tobac@RachelTobac·
2 years ago on stage I was asked “when will Deepfake video/audio impact trust & be believable in social engineering?” My response then was that we were 2 years away from undetectable Deepfakes. I wish my prediction then was wrong. We need synthetic media detection + labels ASAP.
English
388
3.9K
12.8K
0
Simen Brekken
Simen Brekken@simenbrekken·
@buildsghost Hear! Hear! Just spent a few hours yesterday wrangling with Storybook's Webpack configuration override mess just to enable nullish coalescing for a single untranspiled library we were depending on.
English
0
0
0
0
Jamie Kyle is on 🦋
Jamie Kyle is on 🦋@buildsghost·
The JS ecosystem is a house of cards with thousands of hands all over it and we’re all using different sized cards. There is no standardization. There is no “correctness”. There is just a working build or 52 tabs of GitHub issues and stack overflow questions
English
2
1
21
0
Jamie Kyle is on 🦋
Jamie Kyle is on 🦋@buildsghost·
90% of webpack’s users are shipping worse websites because of their use of webpack The natural reaction is “so they shouldn’t use webpack” The problem is that fighting the larger ecosystem of tools and libraries (which do make their websites better) is very hard
English
2
5
63
0
Sigurd
Sigurd@fosseng·
@simenbrekken Må vel lage en AI som screener samtaler før telefonen ringer. Om den starter med "Is this Sigurd .." så spiller den irriterende pipelyder til den som ringer.
Dansk
1
0
0
0
Sigurd
Sigurd@fosseng·
Er aggressiv rekruttering på telefon, telefonsalg? Skulle gjerne reservert meg mot det.
Norsk
3
0
0
0