In golang, we "expect" errors, but we don't "expect" panics.
😊 Errors are our sane behavior
😱 Panics are our manic behavior
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
😊 Errors are our sane behavior
😱 Panics are our manic behavior
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍3🌭2🍾1💊1
🔵Logging in Go: Choosing a System and Using it
🔴https://www.honeybadger.io/blog/golang-logging/
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔴https://www.honeybadger.io/blog/golang-logging/
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍3🔥1🐳1
👍3🕊1🏆1
👍6🍓1
A few golang tips for writing effective Go code:
1. Make it easy to read from top to bottom
2. Do not hide the cost of doing something
3. Do not prematurely abstract
These are not rules, just advice.
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
1. Make it easy to read from top to bottom
2. Do not hide the cost of doing something
3. Do not prematurely abstract
These are not rules, just advice.
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🍌2👍1🕊1
🔵Finding The Best Go Project Structure - Part 1
🔻Structuring Approach
🔻Single Package Approach
🔻Coupled Packages Approach
🔻Independent Packages Approach
🔻Retrospective Analysis
🔻Reusability Issues
🔻Undeclared Dependencies
🟢https://avivcarmi.com/finding-the-best-go-project-structure-part-1/
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔻Structuring Approach
🔻Single Package Approach
🔻Coupled Packages Approach
🔻Independent Packages Approach
🔻Retrospective Analysis
🔻Reusability Issues
🔻Undeclared Dependencies
🟢https://avivcarmi.com/finding-the-best-go-project-structure-part-1/
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍3🍾2👎1👏1
🚀 golang Optimization Tip:
Convert string to []byte without allocation.
Only do this in a hot spot after careful consideration.
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
Convert string to []byte without allocation.
Only do this in a hot spot after careful consideration.
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍3👀2💊1
🚀 golang Optimization Tip:
Convert []byte to string without allocation.
Only do this in a hot spot after careful consideration.
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
Convert []byte to string without allocation.
Only do this in a hot spot after careful consideration.
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍6
🔵Implementing a distributed key-value store on top of implementing Raft in Go
🟢https://notes.eatonphil.com/2023-05-25-raft.html
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🟢https://notes.eatonphil.com/2023-05-25-raft.html
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍1💊1
موضوع دورهمی هفته یازدهم؟
Final Results
27%
بحث و گفتگو در خصوص Clean Architecture
9%
بحث و گفتگو در خصوص Hexagonal
35%
بحث و گفتگو در خصوص GRPC, Protocol buffers, google API design, transcoding
12%
بحث و گفتگو در خصوص الگوریتم و ساختار داده
5%
بحث و گفتگو در خصوص بهینه سازی و Tip & Tricks
10%
بحث و گفتگو در خصوص ماژول نویسی استاندارد
2%
بحث و گفتگو در خصوص پکیج های استاندارد
👍4👎2💊1
🔵HTTP requests for Gophers.
🟢https://github.com/carlmjohnson/requests
🔴Simple GET into a string
🟡https://github.com/carlmjohnson/requests#simple-get-into-a-string
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🟢https://github.com/carlmjohnson/requests
🔴Simple GET into a string
🟡https://github.com/carlmjohnson/requests#simple-get-into-a-string
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍3
✅ An error message better not contain:
failed,
cannot,
can't, ...
It's an error already + you hurt chained err output:
failed to open:
failed to connect:
failed to fly: ...
Instead, do
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
failed,
cannot,
can't, ...
It's an error already + you hurt chained err output:
failed to open:
failed to connect:
failed to fly: ...
Instead, do
opening:
connecting:
flying: no wings exist.
#Tweet by inanc
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍7💊3👎1
Media is too big
VIEW IN TELEGRAM
دورهمی هفته دهم مهندسین گولنگ
موضوع: Memory Management
فایل ها: ویدئو - صوتی
این هفته موضوع مهم مدیریت حافظه در زبان گو را داشتیم که مهندس امید حکایتی بخوبی درخصوصش ارائه داد.
🔗 لینک ویدئو در یوتیوب: https://www.youtube.com/watch?v=m0XAmcHHDMY
🔗 شنیدن پادکست در اسپاتیفای: https://open.spotify.com/show/6aQdgKiOF5tuzI7mpijlfj
🔗 شنیدن پادکست در گوگل پادکست: https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy9kZGY3OWRiNC9wb2RjYXN0L3Jzcw
🔗 شنیدن پادکست در کست باکس: https://castbox.fm/va/5381928
➖➖➖➖➖➖➖➖➖
🔰@gopher_academy
موضوع: Memory Management
فایل ها: ویدئو - صوتی
این هفته موضوع مهم مدیریت حافظه در زبان گو را داشتیم که مهندس امید حکایتی بخوبی درخصوصش ارائه داد.
🔗 لینک ویدئو در یوتیوب: https://www.youtube.com/watch?v=m0XAmcHHDMY
🔗 شنیدن پادکست در اسپاتیفای: https://open.spotify.com/show/6aQdgKiOF5tuzI7mpijlfj
🔗 شنیدن پادکست در گوگل پادکست: https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy9kZGY3OWRiNC9wb2RjYXN0L3Jzcw
🔗 شنیدن پادکست در کست باکس: https://castbox.fm/va/5381928
➖➖➖➖➖➖➖➖➖
🔰@gopher_academy
👍7👏1🐳1💊1
Audio
👍1🎉1💊1
chat.txt
20.3 KB
👍1🔥1🎉1
خیلی #بدرد
با این دوره ها، DevOps و پردازش ابری رو یاد بگیرید + مدرک رایگان
Git
https://www.simplilearn.com/learn-git-basics-skillup
Linux
https://www.mygreatlearning.com/academy/learn-for-free/courses/linux-tutorial
DevOps
https://openclassrooms.com/en/courses/7853556-discover-the-devops-methodology
CI/CD
https://www.simplilearn.com/free-ci-cd-online-training-course-skillup
Docker
https://cognitiveclass.ai/courses/docker-essentials
Kubernetes
https://www.simplilearn.com/learn-kubernetes-basics-free-course-skillup
Cloud Computing
https://cognitiveclass.ai/courses/introduction-to-cloud
AWS
https://openclassrooms.com/en/courses/7864796-discover-cloud-with-amazon-web-services
Azure
https://www.mygreatlearning.com/academy/learn-for-free/courses/azure-course
GCP
https://www.simplilearn.com/learn-google-cloud-platform-fundamentals-free-course-skillup
Serverless
https://mygreatlearning.com/academy/learn-for-free/courses/serverless-computing
Jenkins
https://mygreatlearning.com/academy/learn-for-free/courses/jenkins-tutorial
Puppet
https://simplilearn.com/free-course-to-learn-puppet-basics-skillup
Chef
https://simplilearn.com/chef-in-devops-basics-free-course-skillup
Ansible
https://simplilearn.com/learn-ansible-basics-free-course-skillup
Selenium
https://mygreatlearning.com/academy/learn-for-free/courses/selenium-basics
GitHub
https://mygreatlearning.com/academy/learn-for-free/courses/github-tutorial-for-beginners
VirtualBox & vSphere
https://openclassrooms.com/courses/7163136-set-up-virtual-machines-using-virtualbox-and-vsphere
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
با این دوره ها، DevOps و پردازش ابری رو یاد بگیرید + مدرک رایگان
Git
https://www.simplilearn.com/learn-git-basics-skillup
Linux
https://www.mygreatlearning.com/academy/learn-for-free/courses/linux-tutorial
DevOps
https://openclassrooms.com/en/courses/7853556-discover-the-devops-methodology
CI/CD
https://www.simplilearn.com/free-ci-cd-online-training-course-skillup
Docker
https://cognitiveclass.ai/courses/docker-essentials
Kubernetes
https://www.simplilearn.com/learn-kubernetes-basics-free-course-skillup
Cloud Computing
https://cognitiveclass.ai/courses/introduction-to-cloud
AWS
https://openclassrooms.com/en/courses/7864796-discover-cloud-with-amazon-web-services
Azure
https://www.mygreatlearning.com/academy/learn-for-free/courses/azure-course
GCP
https://www.simplilearn.com/learn-google-cloud-platform-fundamentals-free-course-skillup
Serverless
https://mygreatlearning.com/academy/learn-for-free/courses/serverless-computing
Jenkins
https://mygreatlearning.com/academy/learn-for-free/courses/jenkins-tutorial
Puppet
https://simplilearn.com/free-course-to-learn-puppet-basics-skillup
Chef
https://simplilearn.com/chef-in-devops-basics-free-course-skillup
Ansible
https://simplilearn.com/learn-ansible-basics-free-course-skillup
Selenium
https://mygreatlearning.com/academy/learn-for-free/courses/selenium-basics
GitHub
https://mygreatlearning.com/academy/learn-for-free/courses/github-tutorial-for-beginners
VirtualBox & vSphere
https://openclassrooms.com/courses/7163136-set-up-virtual-machines-using-virtualbox-and-vsphere
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔥5👍1🎉1🐳1
Forwarded from Mehdi Mehrabi
دوستان عزیزم یه مینی دوره رایگان دارم برگزار میکنم راجب مباحث concurency درگولنگ و توش سعی کردم هرچیزی که میدونم رو راجب کانکارنسی در گو توضیح بدم , اگر نیاز داشتید خوش حال میشم استفاده کنید
پنج قسمت اپلود شده مابقی هم به زودی آپلود میشه
https://www.youtube.com/watch?v=0wkmptK3kQY&list=PLz2IXUIXK2AmMRTrfjPRTq40ZTVBaqdPM&pp=gAQBiAQB
پنج قسمت اپلود شده مابقی هم به زودی آپلود میشه
https://www.youtube.com/watch?v=0wkmptK3kQY&list=PLz2IXUIXK2AmMRTrfjPRTq40ZTVBaqdPM&pp=gAQBiAQB
YouTube
Concurency vs Parallelism - کانکارنسی در گولنگ قسمت ۱
خوش اومدید به مینی دوره concurency vs parallelism
زبان گو یه زبان برنامه نویسی کانکارنته تو این قسمت میفهمیم کانکارنسی چیه و تفاوتش با پاراللیسم رو میفهمیم
Instagram:
https://www.instagram.com/mahdi.mehra...
twitter:
https://twitter.com/mahdi_mehrabi01…
زبان گو یه زبان برنامه نویسی کانکارنته تو این قسمت میفهمیم کانکارنسی چیه و تفاوتش با پاراللیسم رو میفهمیم
Instagram:
https://www.instagram.com/mahdi.mehra...
twitter:
https://twitter.com/mahdi_mehrabi01…
❤9🕊3👍1🍾1💊1
🎉 Go 1.20.5 and 1.19.10 are released!
🔏 Security: Includes security fixes for SUID binaries (CVE-2023-29403) and cgo (CVE-2023-29402, CVE-2023-29404, CVE-2023-29405)
📡 Announcement: https://groups.google.com/g/golang-announce/c/q5135a9d924
📦 Download: go.dev/dl/#go1.20.5
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔏 Security: Includes security fixes for SUID binaries (CVE-2023-29403) and cgo (CVE-2023-29402, CVE-2023-29404, CVE-2023-29405)
📡 Announcement: https://groups.google.com/g/golang-announce/c/q5135a9d924
📦 Download: go.dev/dl/#go1.20.5
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🍓4🎉2🌭1🍌1
✅ دورهمی هفته یازدهم
- موضوع: GRPC, Protocol Buffers, Google API Design, Transcoding
- تاریخ و ساعت: ۱۹ خرداد ساعت ۹ شب
- اسپانسر: GoBridge
- محل برگزاری: پلت فرم zoom (دانلود برای همه پلت فرم ها)
Meeting ID: 880 2049 6082
Passcode: 195142
🔗 Join Link: https://us02web.zoom.us/j/88020496082?pwd=VGNIeHZTTytSODlES3RRSCtzN1BEdz09
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
- موضوع: GRPC, Protocol Buffers, Google API Design, Transcoding
- تاریخ و ساعت: ۱۹ خرداد ساعت ۹ شب
- اسپانسر: GoBridge
- محل برگزاری: پلت فرم zoom (دانلود برای همه پلت فرم ها)
Meeting ID: 880 2049 6082
Passcode: 195142
🔗 Join Link: https://us02web.zoom.us/j/88020496082?pwd=VGNIeHZTTytSODlES3RRSCtzN1BEdz09
➖➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔥13👍2🕊1💊1