75 days ago · Tech · hide · Fediverse post

Hello, loves! We talked about some code, and excellence, last night. At FGNO1 last night, we looked at a little program/script by an author who shall rename nameless <cough>Chet</cough>. The program was in Python, a new language for our unnamed author, who hadn’t written an actual program for years, though he does have decades of experience and knows what good code is. The program needed to use MySql, and SMTP, and to do a lot of grubby text formatting. The program worked exactly as intended. We did spot a few issues with the code. It included no real abstractions or classes, other than one class that held everything, pretty much just three functions in a class trench coat. There was one particular method too long to fit on a page of PyCharm. The method included two or three loops, some nested, eight or ten lines long. There was lots of string construction by appending fields to standard text. There were no automated tests. Recall that this was [REDACTED]’s first Python program, and…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town