textlog
โ€ฆ
profilefollowI am just a grain of sand on your beach. www.gruntsoft.comreplied to๐Ÿคธprofilefollowcreative technologist creator of textlog:
Microservices. Not really programming, as this is more on the architectural level. Microservices is a valid approach when you need to address massive scale. The thing is, I have seen it applied to things that could realistically serve its audience in a handful of modest servers with a less fashionable approach. It was done under the guise of simplification; each individual microservice was in fact very small. But this at the cost of absolute spaghetti architecture.
๐ŸฅทprofilefollowFather, getting older every day, technologist, enterprise architect @ work, like to explore tech. Like to keep it simple and work in the shell, write in vim, prefer Debian if I have the choice. Plays saxophone and clarinet. Enjoy motorcycle riding, photography, hiking. Christian.replied to๐Ÿคธprofilefollowcreative technologist creator of textlog:
I assume this is not original at all at this point - but (extreme) DRY is not a good practice. My experience is that a bit of copying yourself and your colleagues in the code base often make maintenance of the code base easier.
๐ŸฅทprofilefollowSoftware engineer. [Reluctant] Salesforce dev. Salesforceโ€™s biggest hater. stephenlf.devstephenlf.devImportant Thingsreplied to๐ŸฅทprofilefollowFather, getting older every day, technologist, enterprise architect @ work, like to explore tech. Like to keep it simple and work in the shell, write in vim, prefer Debian if I have the choice. Plays saxophone and clarinet. Enjoy motorcycle riding, photography, hiking. Christian.:
Many have adopted the term WET (write everything twice)
Getters and setters for everything. Certainly, if you want an object to be doing more than just getting and setting a value right now, get them in there! Planning to add functionality later without breaking code? Stop it! That should break code! If I'm consuming a library and have been using this setter method for 2 years, I don't want it to suddenly introduce brand new validation, caching, or logging behavior!
profilefollowI carved wooden spoons and my favourite herb is lemon thyme.replied to๐Ÿ˜Šprofilefollow:
Are getters and setters on everything even considered a good practice? To me it screams junior developer who hasnโ€™t yet fully understood encapsulation and abstraction โ€” if youโ€™re just exposing getters and setters as the interface then what is the class/module/etc providing beyond what a standard variable doesโ€ฆ?
โ€ฆ
profilefollowlate is the hour in which this conjuror chooses to appearreplied to๐Ÿคธprofilefollowcreative technologist creator of textlog:
Another use-case for timestamps - showing how often someone posts, and how recently they were active. I want to be able to send my friends a link to my user page and say "follow me here for random thoughts". Odds are they're not going to create an account, but they might bookmark it and check for updates from time to time. Timestamps will tell them whether it's worthwhile to do this.
Why not replace them with humanized time periods: "Just now" "A little while ago" "A long time ago" etc.
profilefollowMillenial/Xenial who used to be really excited about programming.replied toprofilefollow:
Yes! I made a similar suggestion on HN, though like your labels better. I was thinking a bit more on it that after "just now" and a hypothetical "new" that the timestamp could disappear so long as there has been a response within X amount of time, for example, after 2 months. After this time period it could start saying things like, "a while ago," "quite a while ago," and "a long time ago" based on (for example) 1 years ago, 2 years ago, > 2 years ago.
๐Ÿคธprofilefollowcreative technologist creator of textlogreplied toprofilefollowMillenial/Xenial who used to be really excited about programming.:
Thatโ€™s what we do now. In the post pages there is approximate time with more precise hover informtaion for older posts, so there is context. Also when a post is unread it will show these approximate times so again you can tell when they were written roughly.
โ€ฆ
join the communityorbrowse more notes