Comments by "Edward Cullen" (@edwardcullen1739) on "ThePrimeTime"
channel.
-
2
-
2
-
2
-
2
-
2
-
1
-
1
-
@samjohns8381 If you know what the code should do, you can describe the test.
If you don't/can't, your requirements are not described sufficiently, so what you're doing is requirements discovery/elaboration.
What and how are totally different things.
You just don't think of it this way, because you were not trained properly (this isn't a slight, just an autistic statement of fact; very few people are taught properly).
I'm not sure Dave says so explicitly, but to me, this is actually the key benefit of BDD/TDD. Done right, you cannot write any code - waste any time - if you don't have your requirement nailed down.
This doesn't mean full waterfall, it means that you understand what you're trying to achieve with the code you're about to write. It should make you also answer difficult questions ahead of time, such as "how do I handle errors", something in my experience, people tend to leave until it's a problem... But when it's a problem...
I'm a fan of "document first", because this makes you think about how people will use the code. Which should help stop you from writing hard to use APIs.
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
@Selendeki Yeah, well, I dunno, maybe I've been doing a Masters (after 10 years in industry) and had exactly this interaction with some undergrads?
Just maybe.
Mature Devs who are looking for a leg-up on getting started with a new library or whatever, well, that's something else, but why you'd think that I had these people in mind when I wrote what I wrote...
Well...
I'm sorry for not being excruciatingly explicit in every single word and concept I was trying to express, in spite of the context (the video) rendering it unnecessary, well, except for the extremely insecure, I guess. 🤷♂️🤦♂️
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
@rusi6219 Dunno if my full reply is delayed, or I tripped the bots, but, in short, invoking a shell with user-supplied input, is always a gun.
Calling a .bat file is invoking a shell, as would calling a .sh.
Believing any runtime (Rust, C, whatever) can make it not a gun is a mistake; they are, at best, a trigger guard.
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1