Wrote a script over 100 lines

>wrote a script over 100 lines
>just works even it's shitty spaghetti
>it triggered my autism what make me edit it be clean
>I cleaned and almost fully re-written
>not working
>mfw

Attached: 1658793255279.png (170x170, 23.2K)

Other urls found in this thread:

github.com/bats-core/bats-core
twitter.com/NSFWRedditVideo

You are weak.
My most used shell script is 700 lines of code and is broken up into functions.

Most production code is spaghetti code.

Fuck off with your tranime blogpost.

can relate, this is why i dont commit after some changes immediately cause i know im going to completety change it after some time and it just looks bad in the commit history

git reset :)

>script
Shell script?
>spaghetti
Does spaghetti mean long lines? Aren't you supposed to pipe and shit with shell?

Just squash?

you will never be a woman bruce

I mean python scripting. Yes. im pretty sure it contains wasteful lines...

maximize your autism by automatically testing your script with BATS

BATS, you say?

Attached: 771869e78cde156c51c59e9b03834f2e.jpg (700x711, 74.63K)

donut a cute
github.com/bats-core/bats-core

> using bash and not bourne sh
yuck

>You are weak.
>My most used shell script is 700 lines of code and is broken.

Show it to us?

Both versions I mean. Before and after the breaking refactor.

bro 100 lines is nothing

Bump cause I wanna see the script

>No version control
>Not even copy pasting the original file in case this happens
Your own fault

Which problem does it solve?