DEV Community

Cover image for The Marie Kondo guide for the clean developer

The Marie Kondo guide for the clean developer

Samuel-Zacharie FAURE on February 08, 2022

Marie Kondo is that Japanese woman who became famous with her method for reaching a tidy home and a tidy life. Her method can be summed up as: T...
Collapse
 
karandpr profile image
Karan Gandhi

If it doesnt spark joy. rm -rf * / DROP DATABASE in production.
image

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

I imagined Marie Kondo coming to my computer, taking an overview to my Projects folder and let my console start point at Projects/ while adding alias cd='rm -rf' 😆

Collapse
 
karandpr profile image
Karan Gandhi

I can have so much fun with this.

  • Marie Kondo fixes your desktop by deleting all the icons.
  • Marie Kondo deletes all the side projects/sticky notes/drafts. No distractions !!
  • Marie Kondo inspects all 'node_modules' folder and deletes the folder. of all projects. Everything is now done with POJO and Notepad++.
  • Marie Kondo sets max tab limit in browser to 5.
  • Marie Kondo implores every meeting is now an email and then proceeds to delete the email.
Thread Thread
 
samuelfaure profile image
Samuel-Zacharie FAURE
  • Unironically yes
  • Yes, use a real project management tool x)
  • VIM
  • Unironically yes
  • Unironically yes

Mostly good suggestions here ;D

Collapse
 
darkterminal profile image
Imam Ali Mustofa

Laugh will be sin! 😂 this joke make me crying! Oh shit!

Collapse
 
samuelfaure profile image
Samuel-Zacharie FAURE

based

Collapse
 
ingosteinke profile image
Ingo Steinke, web developer • Edited

Everything that doesn't make you happy (or is very useful) must be thrown away.

Dear customer, disregarding the bullshit your agency has dumped into Figma, I hereby deliver a clean, minimalist, and usable website without carousel sliders, chatbots, call-to-action teasers for newsletter signup, and muted auto-play videos consuming your end users' bandwidth.

One day you will understand and be grateful, too!

Collapse
 
samuelfaure profile image
Samuel-Zacharie FAURE

I wish we lived in this world.

Collapse
 
ingosteinke profile image
Ingo Steinke, web developer • Edited

Me too! At least I have one customer, a sustainability consultant, who asked me to remove a background video from her website, after looking at websitecarbon and lighthouse performance audits.

I wish we lived in this world.

But we don't. Here's a Lighthouse audit of konmari.com:
Lighthouse audit giving a score of 19 out of 100 points to konmari.com

Collapse
 
ingosteinke profile image
Ingo Steinke, web developer • Edited

If you're using Git correctly, then you have a trace of every line of code ever written in your database.

Unfortunately not, as most repositories, at least on GitHub, now default to forcing squash commits when merging feature branches. So if you have tried different possible solutions in your feature branch, only the latest version of your code will make it into the main branch, and GitHub will even tell you that it's "safe to delete" your feature branch now.

I usually keep my original feature branches in my local repository for some time, but I doubt that it's a good idea to rely on git, and even more so, on one central origin like GitHub, GitLab, BitBucket, or your company's official SVN upstream, as the only place to persist your work history.

Besides my official code releases, I save bookmarks in my browser, take notes with a pen on paper in an actual notebook, and use DEV and other websites for technical writing, which helps me to get my ideas in order and possibly get some feedback from others as well.

Everything that doesn't make you happy (or is very useful) must be thrown away.

Concerning Marie Kondo and similar influencers, I have always been fascinated but critical at the same time. Take their ideas too literally, and you'll throw away anything that doesn't make you happy or that you haven't used for one year, including your snowboard after there was no snow last winter, and all the stuff that does not spark joy in your heart despite being necessary to clean your home, repair your bike, or send important documents to the tax office. Like with all the modern "mindfulness" fad, you can find truth and inspiration in concepts like "magic cleaning", but always take it with a grain of salt!

Ironically, konmari.com, which appears to be her official website (is it?) offers visitors to shop for new items! Maybe that's the real marketing idea behind magic cleaning: make people throw away their old stuff, then offer them a shop to replace the magically cleaned items.

Collapse
 
samuelfaure profile image
Samuel-Zacharie FAURE • Edited

as most repositories, at least on GitHub, now default to forcing squash commits when merging feature branches

Indeed this is bad practice. Rebase is the obvious way to go.

It happened to me in code and in life that I threw away stuff that I actually needed later, so a mistake. But practicing mindful getting-rid-of-my-shit has been amazing, as a whole. That being said, it's good to remember that anything related to self-help is the domain of wolves and scammers.

Collapse
 
eljayadobe profile image
Eljay-Adobe

I like to retain my feature branches too, for a short while. Where "short while" is about 10 years.

Collapse
 
codenameone profile image
Shai Almog

One of my favorite pieces on the subject is from the round of interviews James Gosling made in the 90s as they were promoting Java.

He said that when he moves to a new house he packages everything in boxes with a clear list of the box contents.

Then he doesn't unpack. He opens a box only based on necessity.

6 months later he throws out everything else without looking. If he'll look he won't throw it away.

He credited this approach for Java's very lean set of language features. For me that's the killer feature of Java.

Collapse
 
seriouslee13 profile image
SeriousLee13

I really wanna try this but I'm scared lol.

Collapse
 
jfmengels profile image
Jeroen Engels

Removing a line of code is much harder than adding one

I totally agree with this statement, but it also depends on the language/ecosystem you're working with. In the Elm language community, it's very easy for us to remove dead code, as explained in this article: jfmengels.net/safe-dead-code-removal/ (disclosure: it's my article and my tool behind it). The biggest blocker that remains is, as you mentioned, the developer's fear of throwing code away because it's too hard to find it back if you need it again (which in my experience, is extremely rarely needed).

Collapse
 
stephyswe profile image
Stephanie • Edited

For Marie Kondo - Sketch of rooms and lists for all product allow a conceit view of your house inventory.
For Devs - Storybook and tests allow you to rebuild and condense your code without fearing errors or bugs.

Throw your shit out, with confidence and reassurance

Collapse
 
eelstork profile image
Tea

Now that Marie Kondo has overcome her tidying habits, this post may be in need of refreshing... or not.

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

Oh this is so true! Thanks for this article 🎉 I know a few colleagues that should read this.

Also comparing features to an air-fryer : SPOT ON 👌

Collapse
 
canro91 profile image
Cesar Aguirre

A friend says that it's funnier to delete old code than write new code

Collapse
 
samuelfaure profile image
Samuel-Zacharie FAURE

As always, comments are welcome.

Collapse
 
omarfarukesham profile image
Omar Faruk

Nice article. Thanks Samuel.

Collapse
 
mrc_correa profile image
Marcus Corrêa

I JUST LOVED this article <3

Collapse
 
tythos profile image
Brian Kirkpatrick

Re "marketing vs technical": you can, with careful architecting and good practices, satisfy both demands by implementing features in a modular way where they can be cleanly and transparently removed as they fall off the roadmap. Submodules are great for this, with the right interface rigor. "How hard will this be to re-enable if need be?" is a good question to ask yourself, and sooner rather than later; entropy only increases.

Collapse
 
samuelfaure profile image
Samuel-Zacharie FAURE

Seems a bit dubious to me. Sure you can do quality and quantity if you're good; but the trade-off still exists, albeit it will be more subtle, and especially if you have short deadlines.

Collapse
 
ochsec profile image
Chris Ochsenreither • Edited

I think it's easy to get carried away with minimalism. It always feels good to make things simpler because it decreases the mental load on awareness, memory, comprehension, etc. Looking at nature is a good example. Nature can be quite complex. The human body is complex, ecosystems are complex. But usually, if not meddled with by us humans, nature loses inefficiencies. It does't make it simple or easy to understand. It's that things that have no value are lost. I think that's the way we should design things. Strive for elegance, symmetry, multi-purpose where possible. If the requirements are complex the solution will be complex. That's okay. That's how it has to be.

Collapse
 
qm3ster profile image
Mihail Malo

nature bad

Collapse
 
appsbymarcie profile image
Marcie Jones

format c:\