News for hackers. Stuff that matters.
Re:Ask HN: How do you help junior developers learn finding e... by giantg2 on Wednesday March 17, 2021 @09:43AM (#26491097)
I find that the majority of edge cases come from the business system (the business has a system/process that we turn into a technical system). I try to approach it like a lawyer trying to find a loophole. Try to ask questions that challenge assumptions about what conditions are possible in the system and ask questions that seem absurd but fit the requirements.

For example, if you're building a financial system maybe ask if a negative balance is allowed. If you charge a fee based on balance (like using basis points), can the fee be negative or is there a set floor? A negative fee sounds stupid, which is why the business probably wouldn't mention it in requirements, but it would be important to set the floor at $0 so if a negative balance occurred, we wouldn't issue a fee.

Re:Ask HN: How do you help junior developers learn finding e... by twy30 on Wednesday March 17, 2021 @01:21PM (#26494204)
Thank you. That's a great example.

It gave me 2 new directions:

(1) Are there people helping others learn critical thinking? How do they do it?

(2) What does it take to have "user-friendly, tool-assisted critical thinking"? ("formal methods" [1], perhaps?)

I will dig around those 2 directions and see if anything interesting turns up.

[1]: https://en.wikipedia.org/wiki/Formal_methods

Re:Ask HN: How do you help junior developers learn finding e... by giantg2 on Wednesday March 17, 2021 @01:36PM (#26494411)
I think I've always just been somewhat contrarian/independent, at least to the level of devil's advocate. My teachers were usually quite annoyed with me when I brought up inconsistencies or loopholes in the assignment.

So, I don't really know how to teach it. Not to mention the negative impacts - it might be a positive for requirement gathering, but my independent views greatly stymie my career advancement. So proceed with caution.

Re:Ask HN: How do you help junior developers learn finding e... by twy30 on Wednesday March 17, 2021 @06:28PM (#26497575)
I understand. It can be a double-edged sword.

I wish you find a place where your talent is valued and appreciated.