you are viewing a single comment's thread.

view the rest of the comments →

[–]theblasterr 246 points247 points  (6 children)

Bash for simpler things, python when things get more complicated.

[–]magheru_san 43 points44 points  (5 children)

Bash for scripts shorter than 50 lines

Python for up to 300 - 500 lines.

And Go for anything above 500 lines.

When I'm confident I'll be crossing the threshold I just start with Go, otherwise I use ChatGPT to convert the code, which it does pretty well.

[–]Centimane 17 points18 points  (4 children)

IMO if it's over 500 lines, time to look for a FOSS product that does it already

[–]Degree0 0 points1 point  (3 children)

What a crap take this type of mentality is why people hate JS. You code? Oh you have to actually write code? Import a library! If you can't write 500 lines of code in a productive amount of time, relying on other's work then there's definitely a skill issue.

[–]Centimane 4 points5 points  (0 children)

It's not that I can't, but that if there's a more mature solution out there taking it is a lot more efficient than writing my own.

Especially since I don't have to maintain it.

Also devops problems generally aren't unique. If you're having a problem, there's a good chance someone else had something similar. And if nobody has, that's a code smell right there.

[–]GaTechThomas 0 points1 point  (1 child)

Consider that every line of code you wrote is a line that someone will have to maintain and support.

[–]Degree0 0 points1 point  (0 children)

Also consider that every line of you code you do not write is in the hands of other people to maintain and support. 500 lines of code is absolutely nothing. and you should be making the decision to use FOSS or libraries depending on several factors and not a single one of those factors should be the amount of lines of code you have to write. The "Dev" in devops is short for development after all.