Nuri Ha

1K posts

Nuri Ha

Nuri Ha

@Nurih

Software Architect, Speaker, Microsoft MVP, MongoDB Champion, Pluralsight Author. +N stuff.

Santa Monica, CA Katılım Temmuz 2009
174 Takip Edilen370 Takipçiler
Mirza Leka
Mirza Leka@mirzaleka·
@ardall_leo In that case, I'd probably choose the path of least resistance and declare another GetItem method that accepts an int. But you could overload this method or play with generics and create a new type, "Key," where the Key is either Guid or int
English
1
0
0
817
Nuri Ha
Nuri Ha@Nurih·
@Aaronontheweb Let's maybe shift talk to isolation rather than abstraction? Abstraction tries to make things hold no matter the actual implementation - tough to predict and tough to get "right". Isolation is more Open/Close - making functional facade on top of anonymized implementation.
English
0
0
0
38
Aaron Stannard
Aaron Stannard@Aaronontheweb·
Have an ongoing Discord convo about software design; conclusion I keep coming back to is that YAGNI / short-termism, while helpful for shipping _now_, is mostly terrible for the long-term health and maintenance costs for software. Optionality is better youtube.com/watch?v=ZUiuh_…
YouTube video
YouTube
English
7
2
25
3.4K
Nuri Ha
Nuri Ha@Nurih·
@housecor "Optimize for deletion" is a powerful idea. 🔥
English
0
0
1
232
Cory House
Cory House@housecor·
Feature flag pattern: When replacing an old feature with a new feature via a feature flag, avoid changing the old code. Why? Because changing the old code introduces risk. Instead: Create new files. Copy/paste from the old code if needed. Later, when you know the new feature works, you can easily delete the old code - it's low-risk because it's completely separate from the new code. Summary: Maintain clear separation. Optimize for deletion.
English
26
31
315
45.9K
Nuri Ha
Nuri Ha@Nurih·
@KarenPayneMVP Is there an option that returns a value rather than use out variables?
English
1
0
0
93
Karen Payne MVP
Karen Payne MVP@KarenPayneMVP·
Question of the day Using a simple example, which is your preference?
Karen Payne MVP tweet media
English
15
4
50
13.6K
Cory House
Cory House@housecor·
I worried an EV would give me range anxiety. After 4 months I realize it’s a non-issue. Here’s why: The typical American drives about 13k miles a year. That sounds high, but it’s only 36 miles a day. I drive around 14k miles a year (38 miles a day) and my typical day only uses 10-15% of my battery! 🤯 (Model S has a 375 mile range) In fact, I heard keeping the battery charge around 50% optimizes for longevity, so I only charge my car to 60% nightly. I still plug in with 45-50% at the end of the day! (Tesla says charging to 80% daily is fine, I’m just being conservative). I only fully charge the night before a road trip. Really enjoying EV ownership so far!
Cory House tweet media
English
43
1
315
113.2K
Nuri Ha
Nuri Ha@Nurih·
@housecor That nested ternaries need to be indented to be readable is somewhat revealing about their reasonability to begin with. But I'm all for comfortably readable code.
English
0
0
1
14
Cory House
Cory House@housecor·
Some people hate nested ternaries. Some people like 'em. If your codebase has nested ternaries, upgrade Prettier. Prettier now indents nested ternaries so they're easier to read. Here's a before and after:
Cory House tweet media
English
29
16
277
37.7K
Jeff Strauss 🌻
Jeff Strauss 🌻@jeffreystrauss·
As a parent, do you ever wonder if there is some magical number of times you can vacuum the kitchen, per day, at which point it will actually stop having food reappear all over the floor?
English
6
0
8
907
Cory House
Cory House@housecor·
@Nurih Nope. The sql call parameterizes via tagged template literal.
English
1
0
5
467
Cory House
Cory House@housecor·
I'm excited to be a full stack React developer
Cory House tweet media
English
43
17
488
82.5K
Nuri Ha
Nuri Ha@Nurih·
@housecor Yay! Another "DO EVERYTHING THIS WAY AND THINGS WILL BE OK" dogma. 🫤
English
0
0
0
222
Cory House
Cory House@housecor·
Poll: Some REST APIs use Hypermedia as the Engine of Application State (HATEOAS). Do you understand what this means?
English
25
7
42
204.7K
Nuri Ha
Nuri Ha@Nurih·
@housecor This thread is a great window into the thinking from a front-end dev perspective. From a back-end / DB perspective, it would be great to hand the front only the data it needs (sever/DB side computed) but cranking out minute variations repeatedly is sub optimal.
English
0
0
0
53
Cory House
Cory House@housecor·
Hot take: 🌶️ If I need data “power tools” like Lodash, Underscore, Ramda, Remeda in my web UI, I should probably improve my backend APIs instead. If we can get the data right on the server, that’s often preferable to heavy data processing on the client.
English
73
63
811
166.3K