I've written about a 40-50 line block in Python for a very specific task: scrubbing Japanese addresses based on certain criteria. Most of my SO questions are short but this one would be notably longer.
I have specific criteria for the addresses, such as replacing "丁目" with a dash unless it appears at the end of the address, then make it blank (there are about 15-20 conditions). My script works but I know it could be improved so I wanted to ask SO users but I thought my code might be too long.
- Is 40-50 lines of code too long? If not,
- Can I ask a question for something that has very specific environmental parameters? (Mostly reading addresses in Japanese).
Thank you.