Questions and answers
15 questions from the community, answered by the
author in
#book-of-the-week
on Slack.
-
Alexey Grigorev asked
Hi Sedat Kapanoglu, thanks a lot for finding time to take our questions!
I prepared a few, so let me start with the first one.
I know there are some "rules" in software development. Like you need to have X% test coverage, your code needs to follow the SOLID principles, etc. So what are these rules? Do you have a list of them?
-
Alper Demirel asked
Hi Sedat Kapanoglu,
- What are the most important gains we will achieve when the book is finished?
- Also, what is your motivation to write the book?
I'm a big follower on Twitter, thank you this opportunity 👋
-
Alexey Grigorev asked
There's this saying (from Picasso I think) - "Learn the rules like a pro, so you can break them".
Which software engineering rules, in your opinion, we should learn before we can break them? Do we need to know SOLID by heart before we can say "Okay I don't care about O here, but I have to make sure D is there"?
Which rules would fall into this category?
-
Alexey Grigorev asked
I'm also curious how did you come up with the name? Did you come up with it or the folks from Manning's marketing? 🙂
-
Evren Unal asked
Sedat Kapanoglu i think the name of the book suits the book very well. 👍
-
Sedat Kapanoglu
Author of the book
Thanks! I'm glad to hear that 🙂
-
Neal Lathia asked
❔ what is the biggest dogmatic principle in coding that you’ve come across & that you want the world to be rid of?
-
Heeren Sharma asked
Sedat Kapanoglu Thank you for providing such elaborate answers. I wanted to ask your POV or argument that I often hear for “Street Coders” that they can’t thrive in larger codebases as they don’t embrace certain concepts fully but some parts here and some parts there. I remember a personal experience, 7-8 years back, I interviewed for a company and interviewer asked me if I do TDD. And my answer was something similar as explained in your “dogmatic principle” answer. And at the end, I didn’t get the job and interviewers really defended the fort by saying that without this, one will not go far in professional setting. Since then, I have seen two world of software developers. First is quite strict on coding principles while others is go with the problem statement, come up with working elegant solution without caring too much about strictness of certain practices (e.g. taking S from SOLID). But later one if I may say are also referred as “Code Hustlers” 😄 and I have an inherent feeling that they are looked down upon. I am interested if you had similar experiences and How did you answer that “Learning like a Street Coder is equally if not less powerful approach”?
-
Mert Bozkır asked
Welcome Sedat Kapanoglu, I am really happy to see you in here.
Here is my question:
I am freshman student in university and I am trying to improve myself in Machine Learning Engineer or Data Science areas (don't focus title). I was following courses in platforms such as Coursera, edx, cognitiveclass. But I realized that if I follow the courses I am stuck with theoretical concepts and I was assumed if I want to learn C, I need to learn A and B too.
This is difficult situation and everything coming to your face. My question is how I need to change my learning style. I know theory is so important but I require focus practice, doing something even basic concepts.
What is your suggestions to Freshman or Sophomore students to practice ? How we approach this working style as students?(Your style 😉)
-
ankush khanna asked
Hi Sedat Kapanoglu, love your comment on TDD and honestly I would have benefited a lot from such a perspective early in my career (100s of hour wasted in fixing TDDs).
What are your thoughts around tech debt? When is the right time to tackle it and how can we as developers take actions on it, rather than waiting for the PM or PO to prioritise it?
(Considering the tech debt is huge and cannot be sneaked into a improvement ticket 🙂 )
-
Eric Sims asked
Sedat Kapanoglu - Your book is very engaging! I love your intro and story about doing your project in Pascal.
Figure 3.8 caught my eye because I am constantly battling with high quality variable and function naming. Your rule of thumb about avoiding needing to use "and" or "or" is great!
-
Eric Sims asked
Okay, I'm back. Chapter 3.9 "Don't write code comments" is so helpful! I am definitely guilty of obvious commenting. `df = pd.read_csv() # read CSV` 😅 Also, the comparison between Listing 3.18 and 3.19 is so helpful for seeing how to pull small bits of code into functions.
Which brings me to a question...
I have a project I am working on right now that is essentially one giant function. The client is not super technical, so the function basically uses loops and returns a single final output. I am worried that if I put things into functions it will make the code harder for them to read/troubleshoot. Do you think it is better to leave the code in a more "linear" format for legibility, or is there something I am missing that would make it more legible by putting things into smaller functions?
-
Alexey Grigorev asked
Hi Sedat Kapanoglu!
I'm a fan of the "make it work, make it right, make it fast" approach - do a quick-and-dirty PoC, prove value and then iterate. However, I often get a lot of resistance from people who want to get it right from the start.
What do you think about it? If you also agree with this approach, how would you convince others that it's okay to cut corners sometimes?
-
Alexey Grigorev asked
Which chapter are you working on right now? What's the main idea of this chapter?
-
Alexey Grigorev asked
> Street coders get the job done by prioritizing tasks, making quick decisions, and knowing which rules to break.
We already talked about which rules to break - but what about task prioritization and making quick decisions? If you were to give tweet-sized advice about each of these topics, what that would be?
Want the whole story?
The answers above are the short version of Street Coder.