AI Programming – Telegram
AI Programming
11.3K subscribers
614 photos
43 videos
245 files
580 links
An artificial intelligence free resource channel for students, professionals, and anyone who wants to learn how to solve problems.

ENGINEERING 🎖 PROGRAMMING 🎖 TIPS & HACKS

https://youtube.com/c/AIProgramming
CONTACT US ON: @alphadmin12
Download Telegram
How to Write Good Commit Messages

▶️ feat Commits, that adds or remove a new feature
▶️ fix Commits, that fixes a bug
▶️ refactor Commits, that rewrite/restructure your code, however does not change any API behaviour
- - - - - - - - - - - - - - - - - - - - - - - -
▶️ perf Commits are special refactor commits, that improve performance
▶️ style Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)
▶️ test Commits, that add missing tests or correcting existing tests
- - - - - - - - - - - - - - - - - - - - - - - -

docs: Add Git commit message convention guidelines 😎


▶️ docs Commits, that affect documentation only
▶️ build Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ...
▶️ ops Commits, that affect operational components like infrastructure, deployment, backup, recovery, ...
▶️ chore Miscellaneous commits e.g. modifying .gitignore

References 🔥

https://www.conventionalcommits.org/en/v1.0.0/

Next Post: git branch naming convention🎤
Please open Telegram to view this post
VIEW IN TELEGRAM
👌6👍4🔥4
How to Name Git Branches the Right Way

A quick guide to Git branch naming for better team collaboration. Learn how to maintain consistency in your project’s structure by using clear, denoscriptive branch names that everyone can follow.

▶️ Feature: feature/{short-denoscription}
Example: feature/login-page

▶️ Bugfix: fix/{issue-id}-{short-denoscription}
Example: fix/123-broken-link

⚡️ Read more on this here: 👇🏽

https://blog.siltawi.com/post/best-practices-for-git-branch-names/
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4💯4🙏1
Semantic Versioning (SemVer)

is a versioning system that conveys meaning about the changes made in a release. The version format is:

MAJOR.MINOR.PATCH
Example: 2.5.3

▶️ MAJOR: Breaking changes. (Incompatible with previous versions)

▶️ MINOR: New features, but backward-compatible.

▶️ PATCH: Bug fixes or small improvements that don't add features.

SemVer helps maintain predictable updates by communicating the level of change, ensuring developers know when to expect compatibility or breaking changes.

References 🔥

🔗 https://semver.org/
Please open Telegram to view this post
VIEW IN TELEGRAM
👍8🔥3👌3
Shadcn

If you are looking for a way to build modern, stylish, and accessible web applications with Next.js, Vite, Remix, and Laravel, then Shadcn is a great option.

Start with some sensible defaults, then customize the components to your needs.🔥


https://ui.shadcn.com/
Please open Telegram to view this post
VIEW IN TELEGRAM
👌6🔥52👍2👎1💔1
This is for educational purposes only🙅‍♂️.

If you are a backend developer, you need to know how to protect your API. On this site, you can find common vulnerabilities and weaknesses. Check out the article and test your API. If you discover a vulnerability, fix it before someone else 😴 hacks it.

We will also post the top vulnerabilities most developers encounter.🔥


Check it out: OWASP API Security Top 10
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5💯52
Web Tip: Why Add Version Numbers to CSS & JavaScript Files?

Have you seen ?v=1.0.0 at the end of a CSS or JavaScript link? 🤔 It’s called cache busting!


When you update your website’s design or noscripts, browsers may keep showing an old version to speed things up. Adding a version number like ?v=1.0.0 tells the browser, "This is the newest version!" 🆕

This trick helps:
▶️ Make sure users see the latest updates without clearing cache
▶️ Keep track of different versions as you work
▶️ Keep things running smoothly with easy updates

So next time you update, bump up that version number!
Happy coding! 👨‍💻


⚡️ Read more on this here: 👇🏽
https://blog.siltawi.com/post/web-development-tip-versioning-in-css-javanoscript-files/

#WebDev #CSS #JavaScript #CacheBusting #CodingTips #Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍10👌641
🔥 Developer Roadmaps 2024 Part 🚩

ከየት መጀመር እና እንዴት በቀላሉ መማር እንዳለብን የሚረዳን ሮድማፕ/ ፍኖተ ካርታ 😵‍💫

Step by step guides and paths to learn different tools or technologies . ✔️


🚩🚩 Software Design Architecture
🔗 https://roadmap.sh/software-design-architecture

🚩🚩 System Design
🔗 https://roadmap.sh/system-design

🚩🚩 Game Developer
🔗 https://roadmap.sh/game-developer

🚩🚩 Software Architect
🔗 https://roadmap.sh/software-architect

🚩🚩 API Security Best Practices
🔗https://roadmap.sh/best-practices/api-security

🚩🚩 API Design
🔗 https://roadmap.sh/api-design
Please open Telegram to view this post
VIEW IN TELEGRAM
👍113👌2🔥1
AI Programming
60) What command would you use to switch to a branch named `feature`?
61) Which of the following units in CSS is relative to the root font size?
Anonymous Quiz
19%
🚩) em
28%
🚩) px
12%
🚩) %
33%
🚩) rem
8%
🚩) See result
👍4😱3👌1
🎓💥 Dreaming of studying abroad? 🌍 Looking for FULL funding to make it happen? 🚀 The Swaniker Scholars Program could be your ticket to a FULLY FUNDED SCHOLARSHIP, allowing you to study at top universities across the US, Africa, and Europe tuition-free! 🙌💡

Founded by CEO Fred Swaniker, whose own life was changed by a scholarship, the program is dedicated to transforming the lives of talented African youth. It provides the chance to pursue world-class education at premier global institutions. 🌟📚

Here’s how it works: To be considered for the Swaniker Scholars Program, you must first apply to and be accepted into the Pathway Program. High-performing Pathway learners in good standing will then be invited to apply for the scholarship. 💪🌱 Final selection is based on achievements, potential, and passion for making an impact.

Don’t wait—apply NOW and start your journey toward a brighter future! 💯🔥
🔗 Apply here: bit.ly/48KT4i9 🌐
🔗Read more about the Swaniker Scholars: bit.ly/3YMSpbx
8👍6🎉3👎1
Role-Based Access Control (RBAC)

Did you use access control in your project⁉️
RBAC is one of the most effective methods to implement access control for secure and organized system management.


RBAC restricts access based on roles assigned to users, ensuring they can only perform actions permitted by their role.

Key Components
▶️ Roles: Define job functions (e.g., Admin, Editor, Viewer).
▶️ Permissions: Actions allowed (e.g., create, read, update, delete).
▶️ Users: Assigned roles to inherit permissions.

Example
| Role | Permissions |
|-----------|-------------------------|
| Admin | Create, Read, Update, Delete |
| Viewer | Read |

💡 Benefits: Simplifies access management, enforces least privilege, and enhances security.

💡 Important: When working with APIs, always implement access control to prevent unauthorized actions and protect sensitive data.

Next Post: Attribute-Based Access Control (ABAC)🎤
Please open Telegram to view this post
VIEW IN TELEGRAM
6🔥5🙏3👍2
Lazy Loading for Better Performance

Did you use lazy loading in your project⁉️

Lazy loading delays loading non-essential resources like images, videos, and noscripts until needed.

🤩 Example
<img src="placeholder.jpg" data-src="real-image.jpg" loading="lazy" alt="Image">


💡 Benefits
▶️ Faster page loads 🔥
▶️ Saves bandwidth 📉
▶️ Improves user experience 🌟

Next Post: SSR vs. CSR ⚡️

#tips
Please open Telegram to view this post
VIEW IN TELEGRAM
👍14🔥4👌2
Attribute-Based Access Control (ABAC)

ABAC extends RBAC by introducing attributes as the basis for access control decisions, allowing more dynamic and granular access management. Instead of relying solely on predefined roles, ABAC uses the attributes of users, resources, and the environment to determine access rights.

Key Components

1. Attributes:
- User Attributes: e.g., Department, Job Title, Clearance Level.
- Resource Attributes: e.g., File Type, Data Sensitivity.
- Environmental Attributes: e.g., Time of Access, Device Used, Location.

2. Policies: Define rules based on attributes, often written in formats like JSON or XML.

Example Policy
| Condition | Access Allowed |
|-------------------------------------------|----------------------------|
| Department = "HR" AND File Type = "PDF" | View or Download Only |
| Clearance Level = "High" AND Time = "9:00 AM - 6:00 PM" | Read, Write, Delete |

💡 Benefits:
- Flexibility: Adapts to complex requirements.
- Granularity: Offers fine-tuned control over resources.
- Dynamic Security: Responds to real-time conditions like location or device type.

💡 Use Case:
ABAC is ideal for systems that require context-sensitive decisions, such as granting access to sensitive financial data only during business hours or limiting operations based on device security.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6🔥52
Let me tell you a story about one of the top private universities in Ethiopia. The university fired 🎆 one of its IT managers 👨‍💻 but forgot to remove his access to the grade management system. At first, no one noticed anything wrong.

But later, a teacher found something strange. He had given a student a D grade,...

⚡️ Read more on this here: 👇🏽
https://blog.siltawi.com/post/what-is-attribute-based-access-control-abac/
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3👌3😁2
🚀 Big News! Applications for ALX programs are officially OPEN! 🌍💻

We’ve made it even easier for you to build your future in tech, now access our world-class programs for just $5/month (600 birr)! 🎉

Learn in-demand skills, connect with a vibrant community, and unlock career opportunities in tech. Whether you’re just starting your journey or looking to level up, ALX provides the tools, support, and network to help you succeed.

💼 Don’t miss this chance to invest in your growth and take charge of your career. Apply now and let’s build something amazing together!

Programs:
Front-End Web Development: bit.ly/3Z2NS6j
Back-End Web Development: bit.ly/3O61yXU
AWS Cloud Computing: bit.ly/3UM3ZT4
Salesforce Administrator: bit.ly/40DNigr
Data Science: bit.ly/3UMM8eQ
Data Analytics: bit.ly/3Clr20F
Apply Now!
🔥6👍3🙏2
Your Gateway To Earn An International Degree: Unlock Exclusive Scholarships

This is your chance to:
▶️ Connect with experts who’ll show you how to access our prestigious international partner universities and incredible scholarship opportunities 🏫
▶️ Enjoy free drinks 🥤, delicious food 🍕, and get into the spirit with fun games 🎉and great music 🎵 to keep the energy flowing!


📅 Date: Saturday and Sunday, December 7–8, 2024 (ኅዳር 28-29, 2017)
Time: 9:00 AM (ከ3፡00 ሰዓት ጀምሮ)
📍 Location: CAPSTONE ALX TECH HUB, LIDET
📌 RSVP Here: https://bit.ly/41agewO

It’s going to be an unforgettable day, and we want YOU to be a part of it! Don’t wait—register now to secure your spot!
Please open Telegram to view this post
VIEW IN TELEGRAM
4👍4🎉1
AI Programming
Lazy Loading for Better Performance Did you use lazy loading in your project⁉️ Lazy loading delays loading non-essential resources like images, videos, and noscripts until needed. 🤩 Example <img src="placeholder.jpg" data-src="real-image.jpg" loading="lazy"…
SSR vs. CSR: Which to Choose?

Understanding the difference between Server-Side Rendering (SSR) and Client-Side Rendering (CSR) is crucial for web development. Here's a quick breakdown:

🤩Server-Side Rendering (SSR)
▶️ Renders pages on the server before sending them to the browser.
💡 Best for SEO and initial load speed.

🖥 Client-Side Rendering (CSR)
▶️ Renders pages in the browser using JavaScript.
💡 Great for highly interactive apps.

Example Frameworks:

SSR: Next.js
CSR: React

💡 When to Choose

Use SSR for SEO-heavy websites like blogs or e-commerce.
Use CSR for single-page applications with high interactivity.

⚡️ Next Post: How to Optimize Images Like a Pro 🎤
Please open Telegram to view this post
VIEW IN TELEGRAM
11👍9🔥2
AI Programming
SSR vs. CSR: Which to Choose? Understanding the difference between Server-Side Rendering (SSR) and Client-Side Rendering (CSR) is crucial for web development. Here's a quick breakdown: 🤩Server-Side Rendering (SSR) ▶️ Renders pages on the server before…
How to Optimize Images Like a Pro 📸

Large image files can slow down your site. Here's how to keep it fast and efficient!

🔧Tips for Image Optimization
▶️ Compress Images
💡 Use tools like TinyPNG, Imagecompressor, or built-in features in frameworks.

▶️ Choose the Right Format
- JPEG: Best for photos.
- PNG: Use for graphics with transparency.
- WebP: Smaller file sizes with good quality.

▶️ Lazy Load Images
- <img loading="lazy" src="image.jpg" alt="Image">

▶️ Set Proper Dimensions
- Resize images to match their display size.

💡 Bonus: Use CDNs like Cloudflare or AWS for faster delivery.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍76🔥31