Better HN
topnewbestaskshowjobs
Log inSign up

BobTheCoder

31 karma · joined Apr 12, 2015 (11y ago) · 33 submissions

Submissions

comment 10y ago · link · parent

Comparatively good does not mean actually good.

comment 11y ago · link · parent

A lot of these posts don't actually address the problem of hiring and filtering people. If you think whiteboard tests or logic puzzles are not effective, why do you think this and what is a better alternative?

I personally think they are ok, but should more be a means to test if the candidate can reason intelligently and it shouldn't matter much if the end answer they get is correct or not.

comment 11y ago · link · parent

- DI doesn't add a lot of overhead. You don't really explain where it is EVIL, just that it is NOT STRICTLY NECESSARY ALL THE TIME.

- It handles complex cases such as dependency X should be a singleton, or inserting a layer of caching in front of dependency Y.

- It handles cases where dependency Z requires runtime logic to determine which implementation to use. You can do things like in PerformanceCriticalPackage use the HighPerformanceLogger and use some other logger else where. Want to switch these around, only need to touch the DI wiring logic.

- I find it keeps modules that use other modules "cleaner" without having any kind of dependency construction logic in them.

> Design patterns are an option, not a requirement

Using in DI is a design pattern and I agree all usage of design patterns need to be justified. However not using DI and manually creating dependencies is ALSO a design pattern! You need to justify using either, or something different.

Of the available options, using DI is generally the safest bet, especially if you want consistency throughout an application, since it's likely you will want this power somewhere.

12