DailyDogo 1043 🐶
I LOVE me some small functions/methods. For work I am implementing a class that replaces occurrences of the German “SZ” ß/ẞ. Here are some of the methods:
- replaceSz
- includesSz
- includesSmallSz
- includesBigSz
Am I going too far? 😅 I feel that “mini methods” like these make code more understandable, because you only have to grok either the implementations or the composed logical blocks, but not both at the same time. Also stack traces become better and debugging is easier.
DailyDogo 1042 🐶
I am almost reluctant to write this down (because some people might not be able to use this tip), but: Do not underestimate the power of screenshots in your own private notes! Instead of writing things down twice - or even copy & pasting, consider a screenshot for some of your things - especially those that profit from a little visual context.
What I didn’t consider when trying to write more posts originating from my blog: What if I want to refer to another mastodon post? What if I want to create a little thread?
And how funny that this post even briefly appeared in my “Popular & Trending…” tab in Ivory.
Back to posting from my blog first and crossposting - transparently - to Mastodon. It seems worth it to me to do it like that and have my posts originate from my blog. Will anybody else but me care? Probably not. But I do.
DailyDogo 1041 🐶
DailyDogo 1040 🐶
DailyDogo 1039 🐶
DailyDogo 1038 🐶
DailyDogo 1037 🐶
DailyDogo 1036 🐶
DailyDogo 1035 🐶
DailyDogo 1034 🐶
DailyDogo 1033 🐶
DailyDogo 1032 🐶
DailyDogo 1031 🐶
DailyDogo 1030 🐶
DailyDogo 1029 🐶
DailyDogo 1028 🐶
DailyDogo 1027 🐶
DailyDogo 1026 🐶
DailyDogo 1025 🐶
DailyDogo 1024 🐶
DailyDogo 1023 🐶