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
List of relations in SQL and NOSQL database

1. One-to-One (1:1):
- SQL: Use a foreign key constraint in one table referencing the primary key of another table.
- NoSQL: Embed the related document within the parent document (e.g., in MongoDB) or store the related key-value pair in the same record (e.g., in a column-family database like Cassandra).

2. One-to-Many (1:N):
- SQL: Use a foreign key constraint in the child table referencing the primary key of the parent table.
- NoSQL: Embed the child documents within the parent document (e.g., in MongoDB) or store the related key-value pairs in the same record (e.g., in a column-family database like Cassandra).

3. Many-to-One (N:1):
- SQL: Similar to one-to-many, use a foreign key constraint in the child table referencing the primary key of the parent table.
- NoSQL: Store a reference to the parent document in the child document (e.g., in MongoDB) or store the parent key in the child record (e.g., in a column-family database like Cassandra).

4. Many-to-Many (N:M):
- SQL: Create a junction table with foreign key constraints referencing the primary keys of both related tables.
- NoSQL: Store an array of references to the related documents in each document (e.g., in MongoDB) or store the related keys in a separate record (e.g., in a column-family database like Cassandra).

5. Self-referencing (recursive):
- SQL: Use a foreign key constraint in the table referencing its own primary key.
- NoSQL: Embed the related documents within the same document (e.g., in MongoDB) or store the related key-value pairs in the same record (e.g., in a column-family database like Cassandra).

6. Hierarchical:
- SQL: Use a foreign key constraint in the table referencing its own primary key (similar to self-referencing) or use a closure table to represent the hierarchy.
- NoSQL: Use a recursive document embedding (e.g., in MongoDB) or a recursive key-value storage (e.g., in a column-family database like Cassandra).

7. Graph relationships:
- SQL: Model graph relationships using adjacency lists, path enumeration, or closure tables.
- NoSQL: Use a dedicated graph database (e.g., Neo4j) or store the relationships as edges in a document or column-family database (e.g., MongoDB or Cassandra).


🕊 @gopher_academy
🔥5👍2👏1🤣1
🔵Waiting for go1.21: Execution Tracing with < 1% Overhead

🟢https://blog.felixge.de/waiting-for-go1-21-execution-tracing-with-less-than-one-percent-overhead/


🕊 @gopher_academy
👏2👍1🍾1
🔵go review google source

🟢https://go-review.googlesource.com/


🕊 @gopher_academy
👍1🔥1💊1
🔵FlameScope for Go

🟢Learn how to visualize CPU samples from Go execution traces with FlameScope.

🔴https://blog.felixge.de/flamescope-for-go/


🕊 @gopher_academy
👍2🔥1
🔵8 Unexpected Profiling Use Cases Beyond Performance Optimization

🔻Detect Workload Shifts
🔻Detect Data Nesting
🔻Detect Dead Code
🔻Debug Unresponsiveness
🔻Debug Errors
🔻Verify Deployments
🔻Improve Maintainability
🔻Faster Onboarding

🟢https://blog.felixge.de/8-unexpected-profiling-use-cases-beyond-performance-optimization/


🕊 @gopher_academy
👍3
🎉 Go 1.20.6 and 1.19.11 are released!

🔐 Security: Includes security fixes for CVE-2023-29406 and Go issue go.dev/issue/60374

📢 Announcement: https://groups.google.com/g/golang-announce/c/2q13H6LEEx0

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


🕊 @gopher_academy
🎉1🍌1🍾1🗿1
درود دوستان ،تیم ما در حال ارزیابی و انجام تحقیقات روی یه پروژه در حوزه سینما هست؛
ممنون میشیم چند دقیقه از وقتتون رو بذارید و این پرسشنامه رو تکمیل کنید 😊💙

🔰 yun.ir/or5em


🕊 @gopher_academy
👏4👍3👎32🕊2
Evolution of an api architecture

🕊 @gopher_academy
👍13🤔1
MVC,MVP,MVVM,VIPER

🕊 @gopher_academy
👍11
Govulncheck v1.0.0 is released!

Govulncheck is a command-line tool that helps Go users find known vulnerabilities in their project dependencies. The tool can analyze both codebases and binaries, and it reduces noise by prioritizing vulnerabilities in functions that your code is actually calling.

https://go.dev/blog/govulncheck


🕊 @gopher_academy
👍8
1689226707369.pdf
138.5 KB
Learn How to Write Better Git Commit Messages

#github

🕊 @gopher_academy
4🎉3
🎉 Go 1.21 Release Candidate 3 is released!

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

🗣 Announcement: https://groups.google.com/g/golang-announce/c/5golCy-_yK0

📦 Download: go.dev/dl/#go1.21rc3


🕊 @gopher_academy
🍾2🕊1
ماکروسافت به جایگزین کردن کدهای هسته ویندوز با Rust ادامه میده. به نظر میرسه در چند سال آینده قرار ویندوز تبدیل بشه به یکی از امن ترین سیستم عامل های موجود!
نکته مهمتر اینکه Rust هزینه توسعه سیستم عامل در دراز مدت بسیار پایین میاره و این یعنی توسعه سریعتر

https://www.itpro.com/software/windows/microsoft-continues-its-rust-mission-with-new-kernel-features

#DevTwitter | <Rust راه/>

🕊 @gopher_academy
👍13💊2🕊1
این سایت مجموعه ای از سوالات SQL ای داره که روی یه دیتابیس از پیش ساخته شده سوال میپرسه و دارای بخش‌های مختلفیه که قسمت‌های مختلف SQL رو ازتون تست میگیری و میتونین عملی باهاش SQL رو یاد بگیرید.

https://pgexercises.com


🕊 @gopher_academy
👍12
REST VS GraphQL

🕊 @gopher_academy
👍113👎2
👋👀یه پلی لیست واسه یادگیری صفرتاصد گولنگ
https://www.youtube.com/playlist?list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6

🕊 @gopher_academy
👍103🕊1🍓1🍾1
Jwt

🕊 @gopher_academy
👍8🍾4💊1
😂😀😆😃😅

🕊 @gopher_academy
🤣17👍2
📥 دریافت شده از: Amir mohammad Mastali
-------------

💢مصاحبه مدیر منابع انسانی گوگل:

ما در #گوگل به ۲ شکل زیر نیروها را حفظ می‌کنیم:

لزلو بک، مدیر ارشد منابع انسانی گوگل می‌گوید، "کارکنان برای پول نمی مانند."

‼️فقط حدود یک سوم از 100 کارمند اول گوگل هنوز در این شرکت مشغول به کار هستند، با وجود اینکه در اینجا با پارو پول جمع می‌کردند.

به گفته بك، افراد به دو دلیل در شغل خود می مانند.

⭕️1.کیفیت افرادی که با آنها کار می کنند.

"به همین دلیل است که #جذب و #استخدام بسیار مهم است." گوگل استانداردهای بالایی را برای هر کسی که استخدام می‌کند، تعیین می‌کند.

⭕️ 2 .احساس اینکه کاری که انجام می‌دهند معنی دار است.

کارکنان چیزی بیش از درآمد از کارشان می‌خواهند.
آنها می‌خواهند کاری را انجام دهند که با معنی باشد. به علاوه، حسِ هدف دار بودن، مزایایی بیش از نگهداشت نیرو دارد. مطالعات، نشان می‌دهد زمانی که افراد قادر به ارتباط دادن  شغل خود به چیزی معنی دار هستند، بهره وری آنها تا پنج برابر افزایش می‌یابد.

نتیجه: با هدف گذاری و تعریف برخی از اهداف برای کارکنان می‌توانیم به کار افراد معنی و مفهوم ببخشیم. کارکنانی که برای رسیدن به هدف خاصی تلاش نکنند و دچار روزمرگی شده باشند در کار خود احساس خوبی ندارند.

پی نوشت: بنظرم با توجه به شرایط در حال حاضر  اقتصادی کشور، هنوز هم نگهداشت پرسنل با کیفیت با حقوق بالا میسر نیست.

#منابع_انسانی
#سرمایه_انسانی
#انگیزه
#نگهداشت
#مدیریت


🕊 @gopher_academy
👍15
Short/long poling
SSE
Websocket

🕊 @gopher_academy
👍11
This media is not supported in your browser
VIEW IN TELEGRAM
Senior engineer fixing bugs in production

🕊 @gopher_academy
🤣19