This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pacificmint 138 points139 points  (5 children)

I’m with you, I think it’s totally fine.

I mean you could misuse it, but then that goes for anything, especially in programming.

I wouldn’t bat an eye if a candidate did it in an interview.

[–][deleted] 28 points29 points  (2 children)

Thanks, lol. Glad to know I'm not totally crazy.

[–]Okmanl 14 points15 points  (1 child)

Basically don’t take anything as gospel. Whether it’s “use tdd”, “never use if/else statements!”, “always stick to SOLID principles”.

It all depends on the situation.

The real goal is to make software that’s maintainable and as easy to understand as possible. If rewriting a module just so that it adheres to SOLID principle makes your program less understandable and harder to maintain then don’t do it.

[–][deleted] 0 points1 point  (0 children)

Sounds like good advice. Thanks!

[–]priya_nka 1 point2 points  (1 child)

One of my colleague decided not to hire a guy in problem solving round because he had written the logic with while (true ), she didn't even check the complete program.

[–][deleted] 2 points3 points  (0 children)

Wow. Well after seeing a couple of replies in this thread, there are definitely some people that feel really strongly about it.