Better HN
topnewbestaskshowjobs
Log inSign up

PuppyKhan

36 karma · joined May 12, 2015 (11y ago) · 7 submissions

Submissions

comment 4y ago · link · parent

Had a FAANG interview where the interviewer said I was wrong... about a topic I was teaching the Graduate course on that topic at that very semester. Realized I needed to dumb down my answer to freshmen undergrad level intro class level, rewording the exact same answer, and he congratulated me for "fixing my mistakes".

I can almost guarantee you the problem is the FAANG interview, not you.

comment 4y ago · link · parent

I'm on the cusp of 50, taught myself programming 1980ish or so. Went to college after already working in the industry. Actually switched across various industries: finance, journalism, defense, real estate. I also teach college, am a kung fu instructor with as much experience as I do with programming. Serious, though amateur, Mongol historian. Cut my teeth for a decade or two professionally programming C++ before switching to other languages. (Go, Python, Rust, others...) And I recently changed from Back End Engineer to Data Engineer.

So yeah, this article is basically on the nose.

comment 4y ago · link · parent

I wrote the perfect article for your friends: "The Case Against Unit Tests" https://medium.com/avenue-8/the-case-against-unit-tests-b423...

They have their use, but they have many shortcomings.

comment 4y ago · link · parent

I didn't go into detail as to why we needed to take over the project, but that was definitely part of it

comment 4y ago · link · parent

If the tests are not accurate, then how do you accomplish any of the other points you are trying to make?

The same manager I mention before getting promoted, we were tasked with taking over another existing project where every test was inaccurate. I can guarantee you from experience that all your points fail when the tests are inaccurate.

It actually sounds like you are agreeing with my conclusion, with the exception of thinking bad tests are just fine.

comment 4y ago · link · parent

The more complex the data and the more complex the test code, the harder it is to have a clear reliable unit test.

How do you ensure the tests themselves are accurate? Adding test cases as you encounter errors from newly revealed edge cases means the test didn’t work initially. Unit testing the unit tests is circular logic. You can manually test the unit test, same as you could manually test the code itself.

Typically, unit tests are so simple that bugs are few and easy to spot so this is a non issue, but that same argument can also be made for when the code itself does not need unit tests under the same circumstances.

7.

The Case Against Unit Tests(medium.com ↗)

1 points · by PuppyKhan · 4y ago · 6 comments