[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tech/ - Technical SEO

Site architecture, schema markup & core web vitals
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1777207201084.jpg (322.13 KB, 1733x1300, img_1777207192175_j9zwb3vw.jpg)ImgOps Exif Google Yandex

dc8d7 No.1537

go devs often come with java/c# baggage and try to force-fit oo patterns. but guess what? you dont need classes in this world!

so how do we live without them?
well, go gives us something better: composition through embedding.
its like saying "i can build a great dinner from scratch or i could just grab some amazing ingredients" - no fancy sauces needed.

im so over those long inheritance trees. theyre messy and hard to maintain in java anyway! with golang you get the best of both worlds:

- easier code
- less bugs
- more flexibility

anyone else find this shift refreshing? or are we all missing something here?

p. s.: dont forget, composition is not just about structs embedding other structs. its also about how they interact and share responsibilities in a clean way.
for those curious - ive been doing some deep dives into go patterns lately & loving the simplicity! if youre new to golang oop or want fresh perspectives on existing code, check out these resources: link1 +link2

https://dzone.com/articles/clean-code-structs-methods-composition

dc8d7 No.1538

File: 1777207824171.jpg (216.54 KB, 1080x607, img_1777207809431_vj4m2hp3.jpg)ImgOps Exif Google Yandex

how to structure packages in go for oop - use modules like interfaces and structs effectively; its not just bringing a dish but deciding what everyone should bring based on the menu.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">