Yeah but I was talking about the opposite. I can clearly spot composition in many frontend framework such as react or flutter but e.g. spring DI is a different thing to me.
- 0 Posts
- 21 Comments
I think you’re confusing composition with aggregation. DI can’t be composition because the injected object is shared/borrowed, strong composition on the other hand requires the object to be owned. A composed child does not exist without its parent.
True but due to the framework in use it’s more or less applicable and I can’t think of a single commonly used backend stack that’s relying on composition whereas I know a bunch of frontend stacks. I guess composition is handy for widget trees so that’s why you see it more often in frontend apps.
Works in frontend I guess but backend is a whole different story.
How about stop using computers in general
I am pretty much Tharg and Thargs don’t make a lot of money because we have better things to do.
Edit: removed because I got it wrong
aaaaaaaaargh@feddit.orgto
Programmer Humor@programming.dev•Fix social problems with code
101·2 months agoThis would’ve been a chance for a TODO.
I wouldn’t mind the open source part, at least we can see why it breaks.
aaaaaaaaargh@feddit.orgto
Programmer Humor@programming.dev•goto spaghetti1 goto spaghetti8 goto spaghetti6 goto end1 goto start5
6·4 months agoNot even that. Switching code flows means potential void of state integrity. Error handling should either terminate discarded states or not interfere at all.
By the way, imagine smart pointers with goto jumps.
aaaaaaaaargh@feddit.orgto
Programmer Humor@programming.dev•goto spaghetti1 goto spaghetti8 goto spaghetti6 goto end1 goto start5
171·4 months agoThat is until you’re doing something more complex, then goto becomes no-go.
aaaaaaaaargh@feddit.orgto
Programmer Humor@programming.dev•Who cares about time complexity
11·4 months agoThis is the spirit
Agreed, but in terms of efficiency wouldn’t it make more sense to put the sign bit right before the mantissa in order to keep the memory layout more consistent with powers of two?
I think it’s not meant to be more traditional, the icon positions seem random and only the square they’re located is important.
aaaaaaaaargh@feddit.orgto
Programmer Humor@programming.dev•Here comes a new JPEG challenger
1·5 months ago.mng to the rescue!
That’s not even DOS I think. As far as I know Win 95 came up with this monstrosity in an attempt to circumvent the 8.3 character limitations present in older versions of DOS.
I think that may be possible for every filesystem supporting UTF-8 encoding.
Well… and what would be the meta templating equivalent to this statement?
What!? constexpr is one of the best additions to C++ ever since. And I do like auto even though I get why some folks can’t stand it.
With more than three repetitions of the same algorithm the kid should’ve been automating the process.