Travis Bernard

1.3K posts

Travis Bernard

Travis Bernard

@TravBern

Solutions Architect | Accepting new Clients

Austin, TX Katılım Ocak 2018
123 Takip Edilen384 Takipçiler
Travis Bernard
Travis Bernard@TravBern·
@SergiiShymko This happened the same way that 1/4lb burgers are only 1/4lb before cooking. 2x4 used to mean the size after finish planing. Along the way it started meaning that was the size of the rough cut board blank before final milling. Over time the defacto became what we have now.
English
1
0
1
39
Sergii Shymko
Sergii Shymko@SergiiShymko·
Everybody’s making fun of measurement units in the US. But have you tried buying lumber? Say, you need a 1-inch x 4-inch x 8-feet board. Guess what? The board marked 1x4x8 actually measures 0.75x3.5x8 - completely arbitrary size! The label 1x4x8 is meaningless in any units!
Sergii Shymko tweet media
English
3
0
2
256
Travis Bernard
Travis Bernard@TravBern·
@CreativeMarket your store has been unusably slow for several days now. I assume you're aware. Might want to do something about it ASAP.
English
0
0
0
9
Travis Bernard
Travis Bernard@TravBern·
@McLarenF1: makes a bad strategy call, Lando loses. Also @McLarenF1: makes a bad strategy call in Lando’s favor, then calls team orders so that he loses…. Work.. it.. out..
English
14
0
0
9
Stanislav Sm.
Stanislav Sm.@st4nsm·
Question of the day: “dad, how to configure WiFi in Arch Linux” 🫠
English
1
0
1
135
Travis Bernard
Travis Bernard@TravBern·
Signed into an AWS console for the first time in over a year. What a nostalgic trip that was - at least for the first 5 minutes.
English
0
0
2
91
Stanislav Sm.
Stanislav Sm.@st4nsm·
@blanklob That’s super cool! This year becomes more and more busy 🤪
English
1
0
1
180
youness
youness@blanklob·
This is one of the biggest Shopify technical updates this year. Functions can now fetch data. Already played with new pickup points generator 🙌
youness tweet media
English
4
0
33
3.8K
Travis Bernard
Travis Bernard@TravBern·
@deitel In high-school I taught myself to program with the fourth edition of this book (stole it from my brother who was in university) and with @mark_overmars GameMaker. Changed my life. Appreciate so much that these resources existed for me.
English
0
0
1
35
Deitel
Deitel@deitel·
You don’t see one of these every day! This is a 1993 pre-publication spiral-bound copy of C++ How to Program first edition, which was our second book in that series.
Deitel tweet media
English
3
3
36
1.3K
Travis Bernard
Travis Bernard@TravBern·
@DenishaRot78408 Tried installing it yesterday and the extension did nothing… like the commands weren’t even in the menu. Others have reported the same. I’ll try again today though, it looks cool if I can get it to work.
English
0
0
0
11
Travis Bernard
Travis Bernard@TravBern·
Anyone know a #VSCODE refactoring tool for extracting a chunk of #REACT #JSX into it's own FC? <div> {leave me alone} <div id="extractme"> {I'm with them ^} </div> </div> Internet is suggesting glean but that project's been broke and dead for a while now.
English
1
0
3
220
Travis Bernard
Travis Bernard@TravBern·
I think these years of layoffs, job automation, and the tightening of investment should be referred to as "The Techoning"
English
0
0
1
89
Travis Bernard
Travis Bernard@TravBern·
Today I realized I could deref the first element of a nested array as `const { rows: [record] } = object`. And I kind of love and hate it at the same time. Help me decide... A, B or C??
Travis Bernard tweet media
English
1
0
0
115
Travis Bernard
Travis Bernard@TravBern·
Just wrote this little nugget of future tech debt that I'm not proud of. Then again it was a 1 line fix to a minor problem...
Travis Bernard tweet media
English
1
0
2
125
Egor Egorov
Egor Egorov@egorFiNE·
@TravBern agree. Except users and roles. This part of Postgres is braindamaged to no end. Oh and /usr/bin/psql fighting you on every step. Of course I have to type in the table name in two sets of quotes like ' "Users" '. A perfectly reasonable thing to do.
English
2
0
1
71
Travis Bernard
Travis Bernard@TravBern·
Been a pretty hard core follower of MySQL my whole career. Lately done a bit of mongo. Recently, just to learn, cracked open Postgres on a personal project and woah… shoulda looked into it sooner
English
2
0
1
232
Travis Bernard
Travis Bernard@TravBern·
@fuksito Yeah I’m just starting out. Learning that you can query and aggregate on unstructured json (nosql) and also how to do graph queries with CTEs. Obviously it’s not specialized at those things but very cool to have the option all in the same toolkit.
English
1
0
0
46
Travis Bernard
Travis Bernard@TravBern·
Follow up. I'm currently solving my problem this way... doesn't seem ideal. forwardRef((ref: ForwardedRef<HTMLElement>) => { const divRef = useRef<HTMLDivElement>(null); useImperativeHandle(ref, () => divRef.current as HTMLElement); return <div ref={divRef} /> }
English
0
0
0
30
Travis Bernard
Travis Bernard@TravBern·
IMO forwardRef should be able to use the lower-specificity type. It's saying, hey, I just need the element to match at least this API. So why is the DIV complaining that .align isn't supported, I'm specifically saying I don't care about align. This makes ref types viral...
English
1
0
0
58
Travis Bernard
Travis Bernard@TravBern·
Is #TypeScript broken on #React ForwardRef? I'm using this: export const JobCard = forwardRef((ref: ForwardedRef<HTMLElement>) => { return <div ref={ref} /> } And I'm getting errors around mismatch between HTMLDivElement and HTMLElement. 🧵1/2
English
1
0
3
118