Comments on: KISS — One Best Practice to Rule Them All https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/ Tue, 14 Feb 2023 03:08:07 +0000 hourly 1 https://wordpress.org/?v=7.0 By: Keep It Simple Stupid (KISS) - acronymat.com https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4147 Thu, 08 Apr 2021 19:07:36 +0000 https://simpleprogrammer.com/?p=14193#comment-4147 […] simpleprogrammer.com […]

]]>
By: Aiming for Simplicity – Bryan Avery – Blog https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4146 Fri, 19 Jan 2018 08:12:03 +0000 https://simpleprogrammer.com/?p=14193#comment-4146 […] FTW! Car enthusiasts might now think of BMW, but software developers should think of KISS and […]

]]>
By: Becoming a software developer – episode VIII | Piotr Gankiewicz https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4145 Thu, 16 Mar 2017 06:54:13 +0000 https://simpleprogrammer.com/?p=14193#comment-4145 […] https://simpleprogrammer.com/2015/08/19/kiss-one-best-practice-to-rule-them-all/ […]

]]>
By: Không nên để ám ảnh với mẫu thiết kế (design pattern) | GocLapTrinh https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4142 Fri, 08 Jul 2016 16:26:12 +0000 https://simpleprogrammer.com/?p=14193#comment-4142 […] tắc thiết kế hướng đối tượng và áp dụng những nguyên tắt như SOLID, KISS và YAGNI thì quan trọng hơn nhiều so với chính các mẫu thiết kế. Nếu bạn áp […]

]]>
By: Everything You Know About How To Be Persuasive Might Be Wrong - Simple Programmer https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4141 Fri, 15 Apr 2016 20:18:48 +0000 https://simpleprogrammer.com/?p=14193#comment-4141 […] it is an acronym that reminds you to focus on the most important things. There are many variations, some not so kind […]

]]>
By: Sander Rossel https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4140 Tue, 01 Sep 2015 10:51:00 +0000 https://simpleprogrammer.com/?p=14193#comment-4140 In reply to Slapout.

I do that too. First write ugly code that works and then make it beautiful. Be sure not to skip that last step though 😉

]]>
By: Sander Rossel https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4139 Tue, 01 Sep 2015 10:50:00 +0000 https://simpleprogrammer.com/?p=14193#comment-4139 In reply to James Murphy.

Hi James,
Thanks for your reply! It’s greatly appreciated.
I agree with you on all points.
salesMan.GetOrderData(); would’ve been great too, maybe better!

]]>
By: Sander Rossel https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4138 Mon, 31 Aug 2015 14:53:00 +0000 https://simpleprogrammer.com/?p=14193#comment-4138 In reply to Bobby Lough.

Thanks! Glad you liked it 🙂

]]>
By: Sander Rossel https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4137 Mon, 31 Aug 2015 14:50:00 +0000 https://simpleprogrammer.com/?p=14193#comment-4137 Hi X Files, sorry I didn’t respond until now (I somehow missed your reply). First of all thanks for reading my article and thoroughly analyzing it. Your opinions and concerns are greatly appreciated. However, I do have a feeling we have a little misunderstanding. I’ll try to answer your points.

1. The var keyword was introduced to support anonymous types. I prefer not using them with defined types as it can obscure code (as it becomes unclear what type you’re working with). It’s a matter of preference though, no biggie.
2. The second code snippet has one method to retrieve the salesman, which is used in the remaining functions. In the first code snippet all functions had to retrieve the salesman (because it wasn’t passed in as an input parameter). So nope, my code isn’t out of sync with my text.
3. You’re right, we need to access the salesman, but do we need to do that in the function that also calculates the statistics? That’s what happens in the first code sample. In the second code sample there’s one function for retrieving the salesman and x functions for getting statistics (that get the salesman as input parameter).
4. I’m not talking about those three or four lines of code, I’m talking about what’s inside those functions. More specifically the part that retrieves the salesman or the data necessary to get the statistics.
5. I hope my points above made this a bit clearer for you.

Using KISS as a verb, roundtrips instead of trips, that’s just… nitpicking. Not relevant anyway.

Your final remark makes no sense. I never said multiple functions did just one thing, I said they did the same thing (so for each statistic we retrieved the salesman, huge performance hit). There aren’t any “high brow theories” and there was no trade-off. It just didn’t work and it wasn’t manageable…

Hope that clears it up.

]]>
By: Slapout https://simpleprogrammer.com/kiss-one-best-practice-to-rule-them-all/#comment-4136 Fri, 28 Aug 2015 21:53:00 +0000 https://simpleprogrammer.com/?p=14193#comment-4136 I often find myself working through a problem, getting it to work and then going back and refactoring so that the code is simpler.

]]>