Gopher Academy
3.34K subscribers
918 photos
40 videos
279 files
1.99K links
🕸 Gopher Academy

🔷interview golang
https://github.com/mrbardia72/Go-Interview-Questions-And-Answers

حمایت مالی:
https://www.coffeete.ir/mrbardia72

ادمین:
@mrbardia72
Download Telegram
وقتیکه مایکروسافت اعصاب ندارد...


🔰 @gopher_academy
👍4🕊2
ابزار gvm مدیریت آسان کامپایلر زبان گو در لینوکس

با استفاده از این ابزار می توانید خیلی ساده نسخه زبان گو خود را upgrade, downgrade و یا حتی نصب کنید.

ویژگی ها :
- دانلود و نصب سریع و آسان
- ارتقا زبان گو در صورت وجود نسخه جدید
- بازگشت به نسخه قبلی در صورت استفاده از downgrade به نسبت ورژن فعلی
- نصب, ارتقا یا downgrade به ورژن خاصی
- گرفتن لیست نسخه های موجود کامپایلر گو
- گرفتن لیست لینک های تغییرات نسخه ها
- امکان بکاپ گیری در محلی مشخص از کامپایلر دانلود شده
- انتخاب خودکار mirror های مختلف جهت دانلود کامپایلر (برای بحث تحریم)

☑️ https://github.com/GoFarsi/gvm
🔰 https://github.com/GoFarsi/gvm/releases


🔰 @gopher_academy
👍8🕊21
This media is not supported in your browser
VIEW IN TELEGRAM
ابزار hyperfine یک ابزار مفید جهت بنچمارک برنامه های بیلد شده

https://github.com/sharkdp/hyperfine


🔰 @gopher_academy
👍6🕊2
Forwarded from Gopher Academy (Javad)
چند روزی هست با کمک برخی از دوستان تصمیم گرفتم یک کتاب اپن سورس آنلاین در خصوص زبان گو به فارسی راه اندازی کنیم و در این کتاب به طور عمیق از پایه تا پیشرفته به تمامی مفاهیم زبان گو بپردازیم.

این کتاب در اول راه خودش هست و سعی داریم خیلی سریع تمامی بخش هایش را آماده کنیم تا کسانیکه قصد دارد زبان گو را یادبگیرند و یا اینکه استک خود را به زبان گو تغییر دهند به راحتی زبان گو را یادبگیرند.

هدف کلی ما افزایش جامعه گوفرها هستش و شما می توانید با مشارکت در این کتاب به هدف کمک کنید.

https://book.gofarsi.ir/

جهت مشارکت می توانید به مخزن پروژه مراجعه فرمایید:

https://github.com/GoFarsi/book

#جادی_میرمیرانی


🔰 @gopher_academy
👍118🕊3
📚 فصل اول کتاب زبان برنامه نویسی گو فارسی تمام شد

مفتخریم فصل اول کتاب را تمام کردیم و در کنار این فصل ما یکسری امکانات دیگری به کتاب اضافه کردیم تا در هر شرایطی به کتاب دسترسی داشته باشید.

🚀 ویژگی های جدید :
- اپلیکیشن آفلاین و آنلاین برای انواع پلت فرم های دسکتاپ و موبایل
- ایمیج داکر برای اندازی کانتینر کتاب برای دسترسی آفلاین
- سرورهای مختلف برای دسترسی کتاب
- تکمیل فصل اول

توجه : فصل دوم هم اکنون شروع شده و هنوزم دیر نشده برای اینکه به جمع مشارکت کنندگان بپیوندید.

- https://book.gofarsi.ir
- https://book.ir1.gofarsi.ir
- https://ipfs-book.gofarsi.ir
- https://book.m1.gofarsi.ir
- https://book.m2.gofarsi.ir

مخزن کتاب : https://github.com/GoFarsi/book
لینک مشارکت : https://github.com/GoFarsi/book/blob/main/COUNTRIBUTING.md

#go #golang


🔰 @gopher_academy
🕊11👍3🍾31
🥳 Go 1.19.4 and 1.18.9 are released!

🔏 Security: Includes security fixes for net/http (CVE-2022-41717, CVE-2022-41720) and os (CVE-2022-41720).

📦 Download: go.dev/dl/#go1.19.4

#golang


🔰 @gopher_academy
51👍1🕊1🍾1
🚀 GRPC over unix socket Protocol with usecase

Unix sockets, or Unix Domain Sockets, allow bidirectional data exchange between processes running on the same machine. In order to transmit data between processes, the file system provides a reliable and efficient mechanism. The kernel is the only component involved in communication between processes. The processes communicate by reading and writing to the same socket file, which is managed by the kernel. Kernels handle communication details, such as synchronization, buffering, and error handling, and ensure that data is delivered reliably and correctly.

https://github.com/Ja7ad/grpc-unix-socket


🔰 @gopher_academy
👍3🕊1
فعالسازی ظاهر جدید IDE گولند نسخه ۲۰۲۲.۳


🔰 @gopher_academy
👍12🍾2🕊1
🎊 Go 1.20 Release Candidate 1 is released!

🏃‍♂️ Run it in dev! Run it in prod! File bugs! go.dev/issue/new

📣 Draft Release Note: https://tip.golang.org/doc/go1.20

📦 Download: go.dev/dl/#go1.20rc1

#golang


🔰 @gopher_academy
4🕊21👍1
Go 1.20 new main features:

1. slice -> array conversion

2. unsafe.{String, StringData, SliceData} functions

3. PGO https://github.com/golang/go/issues/55022

4. Arena https://github.com/golang/go/issues/51317


🔰 @gopher_academy
👍3🕊21
مقاله جالبی راجع به تعریف senior بودن از کسی که نزدیک به 100 مهندس ارشد را مدیریت کرده است (تیاگو گیسی) و انتظاراتی که از مهندسان ارشد تیم میره.

linkedin.com/pulse/being-senior-engineer-thiago-ghisi

🔰 @gopher_academy
👍21🕊1💯1
How does Git Work?

🔰 @gopher_academy
👍5👌1🕊1🍾1
25 𝐆𝐨𝐥𝐝𝐞𝐧 𝐑𝐮𝐥𝐞𝐬 𝐭𝐨 𝐚𝐧𝐬𝐰𝐞𝐫 𝐢𝐧 𝐚 𝐒𝐲𝐬𝐭𝐞𝐦 𝐃𝐞𝐬𝐢𝐠𝐧 𝐈𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰

1. If we are dealing with a read-heavy system, it's good to consider using a Cache.

2. If we need low latency in the system, it's good to consider using a Cache & CDN.

3. If we are dealing with a write-heavy system, it's good to use a Message Queue for Async processing

4. If we need a system to be ACID complaint, we should go for RDBMS or SQL Database

5. If data is unstructured & doesn't require ACID properties, we should go for NO-SQL Database

6. If the system has complex data in the form of videos, images, files etc, we should go for Blob/Object storage

7. If the system requires complex pre-computation like a news feed, we should use a Message Queue & Cache

8. If the system requires searching data in high volume, we should consider using a search index, tries or a search engine like Elasticsearch

9. If the system requires to Scale SQL Database, we should consider using Database Sharding

10. If the system requires High Availability, Performance, & Throughput, we should consider using a Load Balancer

11. If the system requires faster data delivery globally, reliability, high availability, & performance, we should consider using a CDN

12. If the system has data with nodes, edges, and relationships like friend lists, & road connections, we should consider using a Graph Database

13. If the system needs scaling of various components like servers, databases, etc, we should consider using Horizontal Scaling

14. If the system requires high-performing database queries, we should use Database Indexes

15. If the system requires bulk job processing, we should consider using Batch Processing & Message Queues

16. If the system requires reducing server load and preventing DOS attacks, we should use a Rate Limiter

17. If the system has microservices, we should consider using an API Gateway (Authentication, SSL Termination, Routing etc)

18. If the system has a single point of failure, we should implement Redundancy in that component

19. If the system needs to be fault-tolerant, & durable, we should implement Data Replication (creating multiple copies of data on different servers)

20. If the system needs user-to-user communication (bi-directional) in a fast way, we should use Websockets

21. If the system needs the ability to detect failures in a distributed system, we should implement a Heartbeat

22. If the system needs to ensure data integrity, we should use Checksum Algorithm

23. If the system needs to transfer data between various servers in a decentralized way, we should go for the Gossip Protocol

24. If the system needs to scale servers with add/removal of nodes efficiently, with no hotspots, we should implement Consistent Hashing

25. If the system needs anything to deal with a location like maps, nearby resources, we should consider using Quadtree, Geohash, etc

If you like my posts please follow me Dinesh Varyani

#systemdesign

🔰 @gopher_academy
4👍42💯1
What is the CAP theorem? How useful is it to system design?

The CAP theorem is a concept in computer science that explains the trade-offs between consistency, availability, and partition tolerance in distributed systems.

Consistency refers to the property of a system where all nodes have a consistent view of the data. It means all clients see the same data at the same time, no matter which node they connect to.

Availability refers to the ability of a system to respond to requests from users at all times.

Partition tolerance refers to the ability of a system to continue operating even if there is a network partition.

🔰 @gopher_academy
👍1🕊1🐳1
This media is not supported in your browser
VIEW IN TELEGRAM
آموزش استفاده از sync.Pool راه حلی کاربردی برای کاهش سربار حافظه

https://book.gofarsi.ir/chapter-3/go-sync-package/#335-pool


🔰 @gopher_academy
3
کتابخانه PayGap یک Sdk چند منظوره برای داشتن چندین درگاه پرداخت در یک جا

خیلی وقت پیش تصمیم گرفتم یک کتابخانه بنویسم که چندین درگاه پرداخت مختلف داخلی را برای زبان گو داشته باشد به همین منظور این کتابخانه را آماده کردم و تا امروز ۲ درگاه اضافه کردم و همینطور در حال افزایش درگاه های بیشتری هستم.

اگر علاقه مند هستید می توانید برای توسعه این کتابخانه مشارکت کنید.



- کتابخانه : https://github.com/GoFarsi/paygap
- داکیومنت : https://pkg.go.dev/github.com/GoFarsi/paygap
- کد نمونه : https://github.com/GoFarsi/paygap/tree/main/_example
- نحوه مشارکت : https://github.com/GoFarsi/paygap#contributing



🔰 @gopher_academy
7🔥1🕊1🍾1
موقعیت شغلی

مهارت ‌های ضروری:
تسلط بر مفاهیم برنامه‌نویسی و زبان‌ برنامه‌نویسی GoLang
آشنایی با دیزاین ‌پترن‌ها و معماری ‌های مختلف نرم‌افزار (REST, MVC, SaaS, Microservice, ...)
درک یکی از متدولوژی‌های توسعه‌ی چابک نرم‌افزار مانند Scrum یا Kanban
کار با دیتابیس و توانایی طراحی مدل‌های داده در پایگاه داده
تسلط و درک کافی از نرم‌افزار کنترل نسخه Git
آشنایی با Linux
با توجه به استفاده پروژه از تکنولوژی‌ های زیر آشنایی با این موارد مزیت به شمار می‌آید:
Redis
PostgreSQL
ELK
gRPC
زبان برنامه نویسی پایتون

شرایط عمومی:
امکان کار به صورت تمام‌وقت
حداقل ۳ سال سابقه کار مفید و مرتبط

ارسال رزومه به ایمیل زیر
Maryam.rouhbakhsh65@gmail.com


🔰 @gopher_academy
🍓2🗿2👻1
قالب بندی رشته در زبان گو

در زبان گو مانند سایر زبان ها یکسری عناوین برای قالب بندی رشته وجود دارد که برخی از این عناوین مشترک بین همه زبان ها می باشد و برخی مختص زبان گو است.

در زیر شما می توانید با انواع قالب بندی رشته آشنا شوید :

https://book.gofarsi.ir/chapter-1/go-string-formatting/


🔰 @gopher_academy
🗿31🕊1
کانال ها در زبان گو

کانال یک نوع تایپ است که داده از نوع خاصی را نگه داری میکند و امکان برقراری ارتباط و همگام سازی داده بین گوروتین ها را فراهم می کند. شما می توانید کانال ها را به عنوان خط لوله های در نظر بگیرید که این خط لوله ها به گوروتین ها متصل می شود و باعث برقراری ارتباط بین گوروتین ها می شود.

در کتاب اومدیم به بحث کانال بطور عمیق پرداختیم و تمامی عناوینی که در خصوص کانال باید بدونید را قرار دادیم.



https://book.gofarsi.ir/chapter-3/go-channel/


🔰 @gopher_academy
3🕊2