Hello Folks,
We are trying to connect to all Go Language developers in Hyderabad.
Introduce yourself as a reply to this tweet.
Please tag Go Lang developers you know, and help us connect to them.
Good news, Punekars! Women Who Go Pune is reigniting!🔥 @wwg_pune
Join us as we rekindle our commitment to building a diverse and inclusive Go community. Stay tuned for updates on meetups, workshops, and how you can get involved. Together, let's grow and learn.
One of the best conferences I’ve spoken at!
Golab should definitely be on your radar if you’re planning to attend/talk/sponsor Go conferences this year🙌
💡Golang Tip #39: Avoid defer in loops, or your memory might blow up.
When we use defer in Go, we're scheduling a function to run later, just before the current function returns.
However, placing defer within a loop like this isn't advisable:
(For simplicity, let's not consider the error handling of f.Close).
Here are two key points to consider:
1. Execution Timing
All these deferred calls execute only when the function is about to return, not after each iteration of the loop.
If your loop is part of a long-running function, this means none of your deferred tasks will be executed until much later.
This is especially problematic when those deferred tasks are intended for releasing resources or cleanup. Instead of freeing up resources as soon as we're done with them, we end up waiting until the very end.
2. Potential for Memory Blow-up
Each defer adds an entry to the memory.
In a loop that iterates hundreds or thousands of times, we accumulate a stack full of deferred calls, each consuming memory.
The details of each deferred call (such as the function to call and its arguments) need to be stored somewhere.
This storage is allocated in the function's stack frame (or on the heap, based on the compiler's strategy)
There are several strategies to mitigate the impact. If looking for a "lazy" fix, consider using an anonymous function:
We could separate this functionality into a named function, or perhaps, cautiously choose not to use defer (bearing in mind the risk of panic).
#golang
Get Ready for the 🦦Go & 🦀Rust programming languages Developer BootCamp 2024!
🗓️ Date: February 10, 2024 (Saturday)
⏰ Time: 9:30 AM - 1:00 PM
👥 Mode: In-Person
🏢 Venue: Microsoft Building 3, Gachibowli.
🔗 Register Today: https://t.co/DC0qjjrjVB
#Swecha#DevDaysHyd
@aahiknsv Get Ready for the 🦦Go & 🦀Rust programming languages Developer BootCamp 2024!
🗓️ Date: February 10, 2024 (Saturday)
⏰ Time: 9:30 AM - 1:00 PM
👥 Mode: In-Person Learning
🏢 Venue: Microsoft Building 3, Gachibowli.
🔗 Register Today: https://t.co/T7As4ZvbY7
@aahiknsv Get Ready for the 🦦Go & 🦀Rust programming languages Developer BootCamp 2024!
🗓️ Date: February 10, 2024 (Saturday)
⏰ Time: 9:30 AM - 1:00 PM
👥 Mode: In-Person Learning
🏢 Venue: Microsoft Building 3, Gachibowli.
🔗 Register Today: https://t.co/T7As4ZvbY7
We just crossed the milestone of 1000 members on @Meetup
Thank you all for the love and support. 🤗🤗🤗
We assure you to deliver engaging meetups with high quality talks. Join us in building one of the biggest Go Lang developers group in India.
https://t.co/7xxe9QhGbL
@Meetup 🥳Woohoo... We crossed the 500 member milestone on @Meetup
Join us at Go Lang Users Group Hyderabad https://t.co/3OgGbIE5ch
Hoping we'll become a 1000+ member group very soon... Requesting you all to support us in achieving this, please repost and spread the word.
#Go#GoLang
#GoLangBootcamp on Dec 10 delved into various Go Language aspects, providing valuable insights. Thanks for your enthusiastic participation! Stay tuned for upcoming Go Lang Advanced Bootcamp!
#DeveloperBootCamps#DevDaysHyd#Swecha#GoLang 🖥️
@GolangBridge Hey team, looking to collaborate with you to organize Go Language BootCamp in Hyderabad, India. Please allow us to DM you or share your email ID.
Go Language Bootcamp
#DevDaysHyd@SwechaFSMI
Learnt the basics of Go Language from Uday who explained the syntax of Go in a concise way, This bootcamp has made me understand Go better, I've learnt about different data types, Functions, Operators, Loops etc.
Excited to be part of Golang Dev Day by @golanghyd. Engaging with the vibrant Go community and soaking the insights. Grateful for the opportunity to learn and connect.
#GolangDevDay#GoLang#opensource
Hello Folks,
We are trying to connect to all Go Language developers in Hyderabad.
Introduce yourself as a reply to this tweet.
Please tag Go Lang developers you know, and help us connect to them.