Jake Federico

5.1K posts

Jake Federico banner
Jake Federico

Jake Federico

@katanadash

Safety engineer for things that move. Worked on robots, linear accelerators, electric cars and drones. Also a digging boar simulator @WholeHogGames

Santa Clara Katılım Ağustos 2011
126 Takip Edilen127 Takipçiler
Jake Federico
Jake Federico@katanadash·
@IceCremeForAll @miltonappl3 It absolutely does not benefit the home owner to have a same day decision. The home owner should collect 3-5 quotes and then get the contractors to bid over the job!
English
1
0
1
32
Connally
Connally@IceCremeForAll·
@miltonappl3 You're the problem. Not them. Everyone in the home improvement industry knows that the WIFE is the most common "objection" and cop-out for not making a same day decision. It benefits both yourself and the company to have a same day decision -which is why they provide the discount
English
2
0
1
719
milton
milton@miltonappl3·
Need new windows. I call a very reputable company: >I see two names listed on the property, is this your wife? >Yes >Will she be available for the estimate >Probably not >We would like her to be there >I can't guarantee that she'll be there >We have lots of available times so we can be flexible >She's not interested in being there >How does this date work? >Ok >We're going to transfer you to dispatch for confirmation Dispatch: >So we're all set for that date to meet with you and your wife. >Raising voice: my wife doesn't want to be there! Sorry for raising my voice. Your other colleague was very irksome on this point >I accept your apology gave a good day Next day, the window salesman shows up. My wife is not there. He's visibly irritated, not interested in measuring windows or anything. >Negotiate >Negotiate >Negotiate >Calls boss: yeah he wants 24 hours to think about this offer can we still hold the offer for him if he calls us tomorrow? Yeah his wife isn't here. >Dude get out of my house
English
246
46
6K
723K
Jake Federico
Jake Federico@katanadash·
@rfleury My mental model for this: Are you putting the mess in a closet, or are you actually organizing the it?
English
0
0
0
266
Ryan Fleury
Ryan Fleury@rfleury·
The first way people usually learn code compression is by pulling common things out into helper functions, but in my view the complexity of adding a new entry point is often overlooked, and things quickly turn into a mess. It’s a useful exercise to try compressing code without helper functions, and instead merging similar work by using loops, tables, and reordering. In my experience this leads to dramatically simpler architecture, and it’s a lot easier to keep the whole picture in your head.
English
35
28
794
44.7K
Jake Federico
Jake Federico@katanadash·
@AlfonsoHegao The other thing, is that for sure half of that 2 feet is insulation that you could cut with a utility knife…
English
0
0
0
104
Jeremiah Johnson 🌐
Jeremiah Johnson 🌐@JeremiahDJohns·
Remembering back to that time when SCOTUS interrupted arguments for a full minute to oooh and ahhh over a new vocabulary word.
Jeremiah Johnson 🌐 tweet media
English
186
977
19.6K
903K
Jake Federico
Jake Federico@katanadash·
@aramh Software engineering is the only discipline where practitioners from different specializations yell at each other for using tools and materials their specialization doesn’t. Imagine an aerospace engineer telling a civil engineer they were an idiot for using concrete.
English
0
0
3
68
Aram Hăvărneanu
Aram Hăvărneanu@aramh·
I use recursion probably fifty times a day. What you are saying is that you are not using a language that has TCO. You claim that "you are not thinking recursively", which means you are not using induction, the most powerful reasoning tool in mathematics and the most common reasoning principle in computer science. You claim "it's not slowing you down", but I'm sure an ancient Roman would make the same claim about Roman numerals. It's not just factually wrong, but it also misses the point. You could in principle design better-behaved for loops that have a form of induction principle, but those are not the sort of for loops found in languages without TCO. When I am forced to use a language without TCO, I very carefully have to translate my mental inductive (recursive) algorithm into for loops.
devleader@DevLeaderCa

How often do you *actually* use recursion in your programs? I'm not sure if I'm the only one here, but I'm going to put it out in the open: I've been programming for 20+ years, and while I understand recursion… I never use it. Ever. Seriously 🙂 I feel like there's a huge emphasis on recursion in computer science topics because there are seemingly elegant solutions that arise with recursion. It seems to make some algorithms align better from a mathematical perspective, perhaps? In reality, debugging recursion is a pain. It's also a nightmare to deal with if you have very deep recursion (your call stack gets ridiculous). I've just never had a need to use recursion in production code. I've found that converting over to an iterative loop based approach is almost always more readable and easier to debug. And I'm generalizing, of course, but this has been my working experience. So after 20+ years of writing code, my brain never thinks about things recursively (even though I understand the concept). But it has also never once slowed me down 🙂 What's been your experience using recursion in production code bases? Do you use it just because it was there, or did you add it in with purpose? I'd love to hear!

English
30
18
197
25.2K
Jake Federico
Jake Federico@katanadash·
@ForrestTheWoods I see your point, but also it sort of doesn’t matter on arm64, both the 4byte and 8byte answers are correct. We use “word” when we don’t care about the actual size, we want the compiler to pick a reasonable size for the architecture. It is ambiguous on purpose!
English
1
0
0
20
Forrest Smith
Forrest Smith@ForrestTheWoods·
@katanadash If you told someone using an arm64 device that some value was “word sized” they would have no effing clue what you meant. It’s too ambiguous. We’re past time to retire the term.
English
1
0
0
24
Forrest Smith
Forrest Smith@ForrestTheWoods·
I abhor that computer programmers still use the term “word”. > Size=2 means a word (2 bytes) Just say it’s 2-bytes. Word and Dword and Qword are stupid terms that should never be used by anyone in 2025. Just say how many bytes and be done with it!
English
110
12
500
106.3K
Jake Federico
Jake Federico@katanadash·
@ForrestTheWoods Most of the time, most people don’t actually care what the supported bit width and alignment of the architecture is, and want to let the compiler deal with it. In this case, you are better off using types that might vary between architectures, rather than prescribing size.
English
0
0
0
18
Jake Federico
Jake Federico@katanadash·
@ForrestTheWoods Sort of. Under the hood, the word is 64bits. The ISA grew from a 32bit one, so there is legacy naming around words and 4 byte widths. The arm64 supports atomic read/write of 1,2,4 and 8 byte widths aligned to that size. Many ISAs don’t have the partial word as atomic instructions
English
2
0
0
28
Jake Federico
Jake Federico@katanadash·
@ForrestTheWoods So if you want the compiler to just pick the fastest, convenient size for you, use “int” or “size_t” Word also relates to the size of pointers on the processor, which you frequently want the compiler to deal with, rather than specifying the size of your pointer in bytes.
English
1
0
0
37
Jake Federico
Jake Federico@katanadash·
@ForrestTheWoods When you say “modern” do you mean application processors, like what runs a cell phone or laptop? There is a whole universe of embedded processors… The ARM cortex processors, have new revisions coming out every year. Have a 4 byte word, and require word writes be word aligned.
English
1
0
0
36
Jake Federico
Jake Federico@katanadash·
@zuhaitz_dev Computer science is a field independent of electrical engineering. Its principals would apply equally if computer were made out of cogs or valves. It just so happens that the best way to implement a computer is with transistors 😅
English
3
1
66
1.4K
Jake Federico
Jake Federico@katanadash·
@Hasen_Judi @tetsuo_cpp You are 100% correct to hate linters. The problem is in the reviewers brains, trivial details should be trivial to you, we shouldn’t invent an entire new class of problems to solve made up problem.
English
0
0
0
42
Jake Federico
Jake Federico@katanadash·
@MobileAppMike @theaspect @ChShersh Then you add c and d, and each time the function gets more complicated. Oh and the requirements for A changed a year after it was written, and now it isn’t compatible with B. C is post production now, and making a change would require a recertification…
English
2
0
5
118
hinterlander
hinterlander@yoltartar·
i didn't truly get how much compression the mind is doing until i made this graphic for a blog post, hard to even show the scale difference across this many orders of magnitude
hinterlander tweet media
English
102
420
4.4K
294.3K
Jake Federico
Jake Federico@katanadash·
@obraxis @Flayra @Subnautica Walking around in it just felt good. I sort of wish it had more battle stations setup. In a co-op game that would feel amazing
English
0
0
1
26
김진
김진@KoreaJ1N·
@HonnouRod Excellent soon you can hang with the 40+ brothers Rod and I will welcome you into the kingdom
English
1
0
1
85