18 Design Patterns Developers known
🔹Abstract Factory: Family Creator - Makes groups of related items.
🔹Builder: Lego Master - Builds objects step by step, keeping creation and appearance separate.
🔹Prototype: Clone Maker - Creates copies of fully prepared examples.
🔹Singleton: One and Only - A special class with just one instance.
🔹Adapter: Universal Plug - Connects things with different interfaces.
🔹Bridge: Function Connector - Links how an object works to what it does.
🔹Composite: Tree Builder - Forms tree-like structures of simple and complex parts.
🔹Decorator: Customizer - Adds features to objects without changing their core.
🔹Facade: One-Stop-Shop - Represents a whole system with a single, simplified interface.
🔹Flyweight: Space Saver - Shares small, reusable items efficiently.
🔹Proxy: Stand-In Actor - Represents another object, controlling access or actions.
🔹Chain of Responsibility: Request Relay - Passes a request through a chain of objects until handled.
🔹Command: Task Wrapper - Turns a request into an object, ready for action.
🔹Iterator: Collection Explorer - Accesses elements in a collection one by one.
🔹Mediator: Communication Hub - Simplifies interactions between different classes.
🔹Memento: Time Capsule - Captures and restores an object's state.
🔹Observer: News Broadcaster - Notifies classes about changes in other objects.
🔹Visitor: Skillful Guest - Adds new operations to a class without altering it.
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔹Abstract Factory: Family Creator - Makes groups of related items.
🔹Builder: Lego Master - Builds objects step by step, keeping creation and appearance separate.
🔹Prototype: Clone Maker - Creates copies of fully prepared examples.
🔹Singleton: One and Only - A special class with just one instance.
🔹Adapter: Universal Plug - Connects things with different interfaces.
🔹Bridge: Function Connector - Links how an object works to what it does.
🔹Composite: Tree Builder - Forms tree-like structures of simple and complex parts.
🔹Decorator: Customizer - Adds features to objects without changing their core.
🔹Facade: One-Stop-Shop - Represents a whole system with a single, simplified interface.
🔹Flyweight: Space Saver - Shares small, reusable items efficiently.
🔹Proxy: Stand-In Actor - Represents another object, controlling access or actions.
🔹Chain of Responsibility: Request Relay - Passes a request through a chain of objects until handled.
🔹Command: Task Wrapper - Turns a request into an object, ready for action.
🔹Iterator: Collection Explorer - Accesses elements in a collection one by one.
🔹Mediator: Communication Hub - Simplifies interactions between different classes.
🔹Memento: Time Capsule - Captures and restores an object's state.
🔹Observer: News Broadcaster - Notifies classes about changes in other objects.
🔹Visitor: Skillful Guest - Adds new operations to a class without altering it.
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
❤4💊2🔥1🐳1
✅ Go and Rust: Powering the Future
- live meeting
- free
- 1h
- Bill Kennedy and Herbert Wolverson
📎 https://www.ardanlabs.com/live-training-events/rust-and-go-may-02-2023.html
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
- live meeting
- free
- 1h
- Bill Kennedy and Herbert Wolverson
📎 https://www.ardanlabs.com/live-training-events/rust-and-go-may-02-2023.html
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔥3
✅ کتابخانه openai
پکیج openai یک Go SDK برای OpenAI API ارائه میکند. این بسته از چندین مدل از جمله GPT-4، GPT-3.5، GPT-3، DALL-E و مدلهای صوتی پشتیبانی میکند. می توانید با استفاده از فیلد Model در شی درخواست، مدل مورد نظر را مشخص کنید.
مدل های پشتیبانی شده:
- ChatGPT (GPT-3, GPT-3.5, GPT-4)
- DALL·E 2
- Embedding
- Audio
- Fine-Tune
- File
- Moderations
📌 مخزن: https://github.com/GoFarsi/openai
📌 داکیومنت: https://pkg.go.dev/github.com/GoFarsi/openai
این کتابخانه در حال توسعه می باشد و بزودی تمامی API های openai اضافه خواهد شد. اگر مایل به مشارکت بودید طبق راهنمای مشارکت برای توسعه مشارکت کنید.
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
پکیج openai یک Go SDK برای OpenAI API ارائه میکند. این بسته از چندین مدل از جمله GPT-4، GPT-3.5، GPT-3، DALL-E و مدلهای صوتی پشتیبانی میکند. می توانید با استفاده از فیلد Model در شی درخواست، مدل مورد نظر را مشخص کنید.
مدل های پشتیبانی شده:
- ChatGPT (GPT-3, GPT-3.5, GPT-4)
- DALL·E 2
- Embedding
- Audio
- Fine-Tune
- File
- Moderations
📌 مخزن: https://github.com/GoFarsi/openai
📌 داکیومنت: https://pkg.go.dev/github.com/GoFarsi/openai
این کتابخانه در حال توسعه می باشد و بزودی تمامی API های openai اضافه خواهد شد. اگر مایل به مشارکت بودید طبق راهنمای مشارکت برای توسعه مشارکت کنید.
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍8🐳3🌭1💊1
DevOps:
درود رفقای کاردرست
امروز قسمت اول دوره containers from scratch در کانال یوتوب دواپس هابیز منتشر شد
کانتینر یکی از مهم ترین و کلیدی ترین مباحث در دواپسه که اومدیم از پایه با هم ببریمش جلو.
در این دوره با ساختارشون آشنا میشیم و مواردی که توی آیزولِیشنشون دخیلن مثل ns(namespace) ها و cgroup رو زیر و رو میکنیم تا کامل درکشون کنید.
تشکر ویژه از محمد عزیز برای درست کردن این دوره خفن.
ویدیو رو ببینید و منتشر کنید.
https://youtu.be/pC6utshJRW8
دوستان بزودی روی گولنگ و کوبرنتیز خیلی قدرتمند کورس ارائه میدیم
همین الان درحال تولید هستیم پس
پیشنهاد میکنم مبحث کانتینر رو ببینین
چون درک عمیق ازش واقعا کمک بزرگی بهتون میکنه
@sir_mohammadne
دمت گرم محمد 👏🏽👏🏽👏🏽👏🏽
اینم لینکدین محمد هستش میتونین بیشتر باهاش درارتباط باشید
https://www.linkedin.com/in/mohammadne
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
درود رفقای کاردرست
امروز قسمت اول دوره containers from scratch در کانال یوتوب دواپس هابیز منتشر شد
کانتینر یکی از مهم ترین و کلیدی ترین مباحث در دواپسه که اومدیم از پایه با هم ببریمش جلو.
در این دوره با ساختارشون آشنا میشیم و مواردی که توی آیزولِیشنشون دخیلن مثل ns(namespace) ها و cgroup رو زیر و رو میکنیم تا کامل درکشون کنید.
تشکر ویژه از محمد عزیز برای درست کردن این دوره خفن.
ویدیو رو ببینید و منتشر کنید.
https://youtu.be/pC6utshJRW8
دوستان بزودی روی گولنگ و کوبرنتیز خیلی قدرتمند کورس ارائه میدیم
همین الان درحال تولید هستیم پس
پیشنهاد میکنم مبحث کانتینر رو ببینین
چون درک عمیق ازش واقعا کمک بزرگی بهتون میکنه
@sir_mohammadne
دمت گرم محمد 👏🏽👏🏽👏🏽👏🏽
اینم لینکدین محمد هستش میتونین بیشتر باهاش درارتباط باشید
https://www.linkedin.com/in/mohammadne
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
❤5👍2🎉1
اگر دنبال لسن پلن برای علوم کامپیوتر و رودمپ خوب هستید، این ریپو میتونه کمکتون کنه
https://github.com/jwasham/coding-interview-university
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
https://github.com/jwasham/coding-interview-university
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍8
جلسه خیلی خوبی بود لینک رکورد شده با زیرنویس جلسه درخصوص Event driven Architecture
https://twitter.com/i/spaces/1RDGlaqEyblJL
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
https://twitter.com/i/spaces/1RDGlaqEyblJL
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍3💊2
❎6 Tips on High Performance Go — Advanced Go Topics
▶️| by David Lee | Apr, 2023 | Medium
🔆 https://medium.com/@lordmoma/6-tips-on-high-performance-go-advanced-go-topics-37b601fa329d
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
▶️| by David Lee | Apr, 2023 | Medium
🔆 https://medium.com/@lordmoma/6-tips-on-high-performance-go-advanced-go-topics-37b601fa329d
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍2🎉2
Media is too big
VIEW IN TELEGRAM
دورهمی هفته پنجم
موضوع: بلاکچین با زبان گو با حضور مهمان ویژه آقای مسلم رئوف (مهندس بلاکچین)
فایل ها: ویدئو - صوتی - چت
دوستان از طریق Spotify و Google Podcasts و همچنین castbox می توانید جلسه پنجم دورهمی را گوش دهید.
🔗 https://open.spotify.com/show/6aQdgKiOF5tuzI7mpijlfj
🔗 https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy9kZGY3OWRiNC9wb2RjYXN0L3Jzcw
🔗 https://castbox.fm/va/5381928
➖➖➖➖➖➖➖➖➖
🔰@gopher_academy
موضوع: بلاکچین با زبان گو با حضور مهمان ویژه آقای مسلم رئوف (مهندس بلاکچین)
فایل ها: ویدئو - صوتی - چت
دوستان از طریق Spotify و Google Podcasts و همچنین castbox می توانید جلسه پنجم دورهمی را گوش دهید.
🔗 https://open.spotify.com/show/6aQdgKiOF5tuzI7mpijlfj
🔗 https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy9kZGY3OWRiNC9wb2RjYXN0L3Jzcw
🔗 https://castbox.fm/va/5381928
➖➖➖➖➖➖➖➖➖
🔰@gopher_academy
🙏3👍2🔥1
زباله جمع کن (garbage collector)
یکی از جذابیت های زبان های برنامه نویسی قابلیت زباله جمع کن (garbage collector) ایجاد شده در آنها است. بطور خلاصه مدیریت و آزاد سازی منابع اختصاص داده شده از حافظه را که بصورت خودکار در زبان های برنامه نویسی مدرن انجام می شود را garbage collector می شناسیم.
https://book.gofarsi.ir/chapter-4/go-garbage-collector/
➖➖➖➖➖➖➖➖➖
🔰@gopher_academy
یکی از جذابیت های زبان های برنامه نویسی قابلیت زباله جمع کن (garbage collector) ایجاد شده در آنها است. بطور خلاصه مدیریت و آزاد سازی منابع اختصاص داده شده از حافظه را که بصورت خودکار در زبان های برنامه نویسی مدرن انجام می شود را garbage collector می شناسیم.
https://book.gofarsi.ir/chapter-4/go-garbage-collector/
➖➖➖➖➖➖➖➖➖
🔰@gopher_academy
زبان گو فارسی
4.21 زباله جمع کن (garbage collector)
یکی از جذابیت های زبان های برنامه نویسی جدید قابلیت زباله جمع کن (garbage collector) ایجاد شده در آنها است. بطور خلاصه مدیریت و آزاد سازی منابع اختصاص داده شده از حافظه را که بصورت خودکار در زبان های برنامه نویسی مدرن انجام می شود را garbage collector می…
👍2
✅ Go 1.21 New built-in feature (clear map or slices)
The clear built-in function clears maps and slices.
For maps, clear deletes all entries, resulting in an empty map.
For slices, clear sets all elements up to the length of the slice
to the zero value of the respective element type. If the argument
type is a type parameter, the type parameter's type set must
contain only map or slice types, and clear performs the operation implied by the type argument.
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
The clear built-in function clears maps and slices.
For maps, clear deletes all entries, resulting in an empty map.
For slices, clear sets all elements up to the length of the slice
to the zero value of the respective element type. If the argument
type is a type parameter, the type parameter's type set must
contain only map or slice types, and clear performs the operation implied by the type argument.
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
❤7👀2👍1🔥1
مایکروسافت اعلام کرد که در حال حاضر یک عدد syscall در کرنل ویندوز دارند که با Rust نوشته شده!
یک عدد.
فقط یک عدد.
ممکن هست این عدد خیلی کم باشه، ولی باز هم یک واحد بیشتر از کلی زبان دیگه هست که در چند دهه گذشته خواستن به چنین جایی برسن و نتونستن.
#DevTwitter | <Amirreza Gh/>
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
یک عدد.
فقط یک عدد.
ممکن هست این عدد خیلی کم باشه، ولی باز هم یک واحد بیشتر از کلی زبان دیگه هست که در چند دهه گذشته خواستن به چنین جایی برسن و نتونستن.
#DevTwitter | <Amirreza Gh/>
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🍾6👎5👨💻1
✅ نتیجه بنچمارک ویژگی clear در نسخه ۱.۲۱
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
goos: linux🔗 https://gist.github.com/Ja7ad/f51d01684eca78dad5b69046ad3a356b
goarch: amd64
cpu: AMD Ryzen 3 PRO 2300U w/ Radeon Vega Mobile Gfx
BenchmarkClearMapWithDelete
BenchmarkClearMapWithDelete-4 415942981 2.488 ns/op 0 B/op 0 allocs/op
BenchmarkClearMapWithClear
BenchmarkClearMapWithClear-4 385395132 2.602 ns/op 0 B/op 0 allocs/op
BenchmarkClearSliceWithoutClear
BenchmarkClearSliceWithoutClear-4 4663 281625 ns/op 879 B/op 0 allocs/op
BenchmarkClearSliceWithClear
BenchmarkClearSliceWithClear-4 76146 16391 ns/op 53 B/op 0 allocs/op
PASS
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍2💊2
موضوع دورهمی هفته ششم ۱۵ اردیبهشت؟
Final Results
19%
بحث و گفتگو در خصوص Kubernetes
13%
بحث و گفتگو در خصوص Cloud Native
18%
بحث و گفتگو در خصوص CQRS
7%
بحث و گفتگو در خصوص معماری Hexagonal
8%
بحث و گفتگو در خصوص معماری Clean
3%
بحث و گفتگو در خصوص معماری Onion
3%
بحث و گفتگو در خصوص کتابخانه های استاندارد زبان گو
11%
بحث و گفتگو در خصوص بلاکچین با گو قسمت دوم (قراردادهای هوشمند)
7%
بحث و گفتگو در خصوص SRE (Site Relaibility Enginering)
11%
بحث و گفتگو در خصوص Network Programming
💊2👍1