1 hour ago · Tech · hide · 0 comments

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…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.