725 karma · joined June 26, 2021
Your second point is valid, a lot of stuff is shipped with stuff that isn't useful for end consumer or even anti consumer outright. The solution to this is to push for right to repair laws, patent reform, open source, etc and not decry modern technology altogether.
> Ensure that all Logic classes can be constructed without providing any parameters (and without using a DI framework). In practice, this means that most objects instantiate their dependencies in their constructor by default, although they may also accept them as optional parameters.
When you do the latter, it kind of defeats the purpose of dependency injection and what you are testing won't be what you use in prod. And when you don't do this, you have to set up dependencies properly - at that point it's almost becomes an integration test. IMO the right thing here is to mock dependencies in unit tests so you can properly test the class in question.
Fundamentally, it seems like the author hasn't worked on or considered complex distributed systems where stuff like dependency management, sequencing (back and forth interactions), etc really matter - you can't test those properly in unit tests, you need integration tests.
Unit tests and integration tests complement each other, you can't reasonably test and update complex systems without both.
> Radar altimeters used in civil and commercial aviation operate using either unmodulated pulse radar or frequency-modulated continuous wave (FMCW) radar technology, with FMCW being far more common among models developed in the last few decades. In either case, the above ground level (AGL) altitude of the aircraft is measured in the radar altimeter by transmitting radio frequency (RF) energy down to the ground and receiving a portion of this energy back through reflection off of the terrain or other obstacles, and determining the round-trip propagation time of the RF energy. The radiated power levels are low, typically on the order of one watt, and thus highly sensitive receivers are required for radar altimeters to function properly. As such, radar altimeters are highly susceptible to RF interference entering the receiver, which can negatively impact their performance.
The planes use the band to bounce signals off of the ground and that needs to be super sensitive. That's why they probably can't afford to properly filter within the 200 MHz guard band.
This is more confusing? Often times when debugging/writing a fix I would have extraneous code that I wouldn't want to commit. With an index I'm always sure if what I commit, but with this workflow you have to keep track of such stuff all the time and if you forget that stuff makes it in?
Not to mention that another benefit of an index is being able to change commits and git replaying your working diff.
It IS unnecessary. Having to write a wall of text to explain what your code is doing is one of the simplest code smells.
A little bit of very short comments is ok, but in general any verbose comment should always be for explaining the why, listing out some invariant, etc.
As a side note, another reason not to write comments about what the code is doing is because those comments then need to be updated too - and often they would not be leading to more confusion.
Can you elaborate? If I train a fruit detector that just gets the fruits bounding box vs a fruit detector and classifier, are you saying the latter will work better?
When you overclock you add voltage which helps with this which goes a long way. You would often hit thermal limits first, so heat dissipation is a major factor.
I have to disagree here. const-int everything except stuff truly needs to be optimized significantly helps with readability, and when someone is updating their code they can other be warned of invariants if they inadvertently try to modify something that is const. Yes, it's a little verbose but worth it IMO. It also helps the compiler :)
I agree that you don't want to spend time becoming super familiar with everything that you use but you should ALWAYS have a high level idea of what's happening under the hood. When you don't it inevitable leads to garbage in garbage out.