❎Git Workflow & Immutability
Immutability here means that once data is written into Git, it cannot be changed. Modifications only create new data versions. The old data remains unchanged.
Immutable system designs are commonly used in systems that require high levels of auditability, such as financial systems and version control systems. Here's how it's used in Git design:
🔹Users' local Git storage consists of three sections: working copy, staging area, and local repository.
🔹Working copies contain the files you are currently working on. The data is mutable, so you can do whatever you want with it
🔹When you type "git add", your files will be added to the staging area. These files are now immutable. It is no longer possible to edit them
🔹When you type "git commit", your staging files are added to the local repository. Local repository is a tree version of the append-only write-ahead log (WAL). They are both immutable: you can only append to the end of the data structure.
🔹When you type "git push", your local repository data will be synced to the remote repository. As the remote repository uses the same data structure as your local repository, it is also immutable: you can only add data to it
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
Immutability here means that once data is written into Git, it cannot be changed. Modifications only create new data versions. The old data remains unchanged.
Immutable system designs are commonly used in systems that require high levels of auditability, such as financial systems and version control systems. Here's how it's used in Git design:
🔹Users' local Git storage consists of three sections: working copy, staging area, and local repository.
🔹Working copies contain the files you are currently working on. The data is mutable, so you can do whatever you want with it
🔹When you type "git add", your files will be added to the staging area. These files are now immutable. It is no longer possible to edit them
🔹When you type "git commit", your staging files are added to the local repository. Local repository is a tree version of the append-only write-ahead log (WAL). They are both immutable: you can only append to the end of the data structure.
🔹When you type "git push", your local repository data will be synced to the remote repository. As the remote repository uses the same data structure as your local repository, it is also immutable: you can only add data to it
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👍4
اندروید ۱۳ حدود ۱.۵ میلیون خط Rust داره و حتی یک عدد مشکل حافظه هنوز نداشتن باهاش! در مقایسه کد ++C/C شون میانگین هر ۱۰۰۰ خط ۱ مشکل حافظه داشته!
منطقِ «برنامهنویس باید خودش حواساش جمع باشه» برای ۵۰ سال جواب نداد.
ولی یک تایپ سیستم درست و درمون در عرض چند سال خودش رو ثابت کرد.
| <Amirreza Gh/>
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
منطقِ «برنامهنویس باید خودش حواساش جمع باشه» برای ۵۰ سال جواب نداد.
ولی یک تایپ سیستم درست و درمون در عرض چند سال خودش رو ثابت کرد.
| <Amirreza Gh/>
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👍22❤5💯3👎2
🍓 یه آموزش جمع و جور داکر
https://dev.to/aurelievache/understanding-docker-part-1-retrieve-pull-images-3ccn
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
https://dev.to/aurelievache/understanding-docker-part-1-retrieve-pull-images-3ccn
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🍓5❤1
✅ Profile-guided optimization preview
When you build a Go binary, the Go compiler performs optimizations to try to generate the best performing binary it can. For example, constant propagation can evaluate constant expressions at compile time, avoiding runtime evaluation cost. Escape analysis avoids heap allocations for locally-scoped objects, avoiding GC overheads. Inlining copies the body of simple functions into callers, often enabling further optimization in the caller (such as additional constant propagation or better escape analysis).
https://go.dev/blog/pgo-preview
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
When you build a Go binary, the Go compiler performs optimizations to try to generate the best performing binary it can. For example, constant propagation can evaluate constant expressions at compile time, avoiding runtime evaluation cost. Escape analysis avoids heap allocations for locally-scoped objects, avoiding GC overheads. Inlining copies the body of simple functions into callers, often enabling further optimization in the caller (such as additional constant propagation or better escape analysis).
https://go.dev/blog/pgo-preview
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
go.dev
Profile-guided optimization preview - The Go Programming Language
Introduction to profile-guided optimization, available as a preview in Go 1.20.
👍2🤩1🕊1🍓1
Free class remote about writing smart contracts in golang by William Kennedy.
⏳ Limited time for register
🔗 https://www.ardanlabs.com/live-training-events/smart-contracts-with-go-feb-13-2023.html
#go #blockchain
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
⏳ Limited time for register
🔗 https://www.ardanlabs.com/live-training-events/smart-contracts-with-go-feb-13-2023.html
#go #blockchain
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👀4👍3🤩1🍌1
❎توضیح خوبی برای اینکه چرا جمع 0.1 و 0.2 در اکثر زبانهای برنامهنویسی مساوی 0.3 نمیشه !!
https://jvns.ca/blog/2023/02/08/why-does-0-1-plus-0-2-equal-0-30000000000000004/
https://0.30000000000000004.com/
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
https://jvns.ca/blog/2023/02/08/why-does-0-1-plus-0-2-equal-0-30000000000000004/
https://0.30000000000000004.com/
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👨💻3👍2
ارائه اطلاعات اشتباه توسط هوش مصنوعی Bard در دموی گوگل!
گوگل دو روز پیش از هوش مصنوعی جدیدش به نام Bard رونمایی کرد و دمویی کوتاه از آن نشان داد. در این ویدیو از Bard خواسته میشود دستاوردهایی را از تلسکوپ جیمز وب بیان کند که امکان توضیح آن به یک کودک 9 ساله وجود داشته باشد.
یکی از پاسخهای Bard این است که از جیمز وب برای گرفتن اولین تصاویر از یک سیاره خارج از منظومه شمسی یا سیاره فراخورشیدی استفاده شده است که این گفته درست نیست. درحقیقت اولین تصاویر از سیارات فراخورشیدی توسط تلسکوپ VLT در سال 2004 گرفته شدند.
این اشتباه در کنار برگزاری رویداد ناامیدکننده از گوگل، باعث کاهش بیش از 7 درصدی (100 میلیارد دلار) ارزش سهام «آلفابت» شد. ارزش بازار این کمپانی از 1.38 تریلیون دلار به نزدیکی 1.27 تریلیون دلار کاهش یافت.
| منبع <دیجیاتو/>
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
گوگل دو روز پیش از هوش مصنوعی جدیدش به نام Bard رونمایی کرد و دمویی کوتاه از آن نشان داد. در این ویدیو از Bard خواسته میشود دستاوردهایی را از تلسکوپ جیمز وب بیان کند که امکان توضیح آن به یک کودک 9 ساله وجود داشته باشد.
یکی از پاسخهای Bard این است که از جیمز وب برای گرفتن اولین تصاویر از یک سیاره خارج از منظومه شمسی یا سیاره فراخورشیدی استفاده شده است که این گفته درست نیست. درحقیقت اولین تصاویر از سیارات فراخورشیدی توسط تلسکوپ VLT در سال 2004 گرفته شدند.
این اشتباه در کنار برگزاری رویداد ناامیدکننده از گوگل، باعث کاهش بیش از 7 درصدی (100 میلیارد دلار) ارزش سهام «آلفابت» شد. ارزش بازار این کمپانی از 1.38 تریلیون دلار به نزدیکی 1.27 تریلیون دلار کاهش یافت.
| منبع <دیجیاتو/>
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🏆4👀2
❎ Migrating from Postgres to MySQL
https://planetscale.com/blog/migrating-from-postgres-to-mysql
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
https://planetscale.com/blog/migrating-from-postgres-to-mysql
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👎3👍2❤1
❎ 8 روش برای بهبود عملکرد پایگاه داده SQL
https://www.fusion-reactor.com/blog/8-ways-to-improve-your-sql-database-performance/
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
https://www.fusion-reactor.com/blog/8-ways-to-improve-your-sql-database-performance/
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👍1🕊1
❎Exposing Postgres Performance Secrets
https://www.crunchydata.com/blog/exposing-postgres-performance-secrets
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
https://www.crunchydata.com/blog/exposing-postgres-performance-secrets
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👍1🕊1
الان که همه با سرورها درگیر شدن دائم درحال کوچن. ابزار ansible مفیده.
یه فایل شامل نصب و کانفیگ برنامهها درست میکنید، با یک دستور بدون SSH روی سرور مورد نظر اجرامیشه. مخصوصاً اگرکه چندین سرور داشته باشید و باید اون کارو برای همه تکرار کنید.
https://vrgl.ir/U0dp0
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
یه فایل شامل نصب و کانفیگ برنامهها درست میکنید، با یک دستور بدون SSH روی سرور مورد نظر اجرامیشه. مخصوصاً اگرکه چندین سرور داشته باشید و باید اون کارو برای همه تکرار کنید.
https://vrgl.ir/U0dp0
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👍4
🔥4
اگه یه تیم بهت بدن می تونی رهبریش کنی؟
Anonymous Poll
53%
اره 💪
11%
نه نمی تونم🤒
17%
نه بابا ولش حوصله داری ها 🥳
24%
نمیدونم 🤨
👻2👀1
وبینار آموزش Smart Contracts with Go
✅ مدرس : بیل کندی
این دوره برای کسانیکه علاقه مند به بحث قراردادهای دیجیتالی و بلاکچین برروی شبکه اتریوم هستند می باشد.
راس ساعت ۸:۳۰ امشب در نرم افزار zoom آغاز خواهد شد.
لینک زوم :
https://ardanlabs.us10.list-manage.com/track/click?u=8a679dc813832726c1a7a3161&id=2ef7bb8c60&e=43626104d7
آیدی وبینار:
81355680559
پسورد:
391761
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
✅ مدرس : بیل کندی
این دوره برای کسانیکه علاقه مند به بحث قراردادهای دیجیتالی و بلاکچین برروی شبکه اتریوم هستند می باشد.
راس ساعت ۸:۳۰ امشب در نرم افزار zoom آغاز خواهد شد.
لینک زوم :
https://ardanlabs.us10.list-manage.com/track/click?u=8a679dc813832726c1a7a3161&id=2ef7bb8c60&e=43626104d7
آیدی وبینار:
81355680559
پسورد:
391761
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
❤6👍1🕊1🐳1💯1
از اونجا که همه گیر دادن و توییت میزنن که AI قرار نیست ما رو بیکار کنه، کاملا مشخصه که قراره ما رو بیکار کنه و فقط با این حرفا داریم خودمونو آروم میکنیم :)))
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🤣21👍3💯1
❎What are the common load-balancing algorithms?
🔹 Static Algorithms
1. Round robin
The client requests are sent to different service instances in sequential order. The services are usually required to be stateless.
2. Sticky round-robin
This is an improvement of the round-robin algorithm. If Alice’s first request goes to service A, the following requests go to service A as well.
3. Weighted round-robin
The admin can specify the weight for each service. The ones with a higher weight handle more requests than others.
4. Hash
This algorithm applies a hash function on the incoming requests’ IP or URL. The requests are routed to relevant instances based on the hash function result.
🔹Dynamic Algorithms
5. Least connections
A new request is sent to the service instance with the least concurrent connections.
6. Least response time
A new request is sent to the service instance with the fastest response time.
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🔹 Static Algorithms
1. Round robin
The client requests are sent to different service instances in sequential order. The services are usually required to be stateless.
2. Sticky round-robin
This is an improvement of the round-robin algorithm. If Alice’s first request goes to service A, the following requests go to service A as well.
3. Weighted round-robin
The admin can specify the weight for each service. The ones with a higher weight handle more requests than others.
4. Hash
This algorithm applies a hash function on the incoming requests’ IP or URL. The requests are routed to relevant instances based on the hash function result.
🔹Dynamic Algorithms
5. Least connections
A new request is sent to the service instance with the least concurrent connections.
6. Least response time
A new request is sent to the service instance with the fastest response time.
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
👍7
❎بهترین چنل های یوتیوب برای برنامه نویس ها
C ➟ Jacob Sorber
C++ ➟ TheCherno
Java ➟ amigoscode
C# ➟ kudvenkat
PHP ➟ ProgramWithGio
JavaScript ➟ developedbyed
TypeScript ➟ basarat
Python ➟ Corey Schafer
❤️Golang ➟ Jon Calhoun
Swift ➟ CodeWithChris
Ruby ➟ DriftingRuby
Kotlin ➟ PhilippLackner
Rust ➟ NoBoilerplate
Lua ➟ Steve's teacher
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
C ➟ Jacob Sorber
C++ ➟ TheCherno
Java ➟ amigoscode
C# ➟ kudvenkat
PHP ➟ ProgramWithGio
JavaScript ➟ developedbyed
TypeScript ➟ basarat
Python ➟ Corey Schafer
❤️Golang ➟ Jon Calhoun
Swift ➟ CodeWithChris
Ruby ➟ DriftingRuby
Kotlin ➟ PhilippLackner
Rust ➟ NoBoilerplate
Lua ➟ Steve's teacher
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🤩5😍5❤1👍1