As I dive deeper into using pug, I have come across something called mixins
What are Mixins?
Mixin my sweat and tears into a cake *Awkward Silence*. Any who, mix ins are pieces of code that are reusable in a given file. They help push the DRY principle so that you don't have to use the same block of code time and time again.
โ Just like functions, mixins have a name we can provide them as well as parameters which we set up. In turn they return the code block containing the provided information.
โ We then access them by calling them into our content using + prefix alongside the mixin name and then providing the needed arguments
๐Boom, Ansnakech is your aunt. You have 50 lines of code condensed into 5.
P.S If you've read the entire segment, you can also have JavaScript Code included using the - prefix which hides it from being rendered. This is called unbuffered code
What are Mixins?
Mixin my sweat and tears into a cake *Awkward Silence*. Any who, mix ins are pieces of code that are reusable in a given file. They help push the DRY principle so that you don't have to use the same block of code time and time again.
โ Just like functions, mixins have a name we can provide them as well as parameters which we set up. In turn they return the code block containing the provided information.
โ We then access them by calling them into our content using + prefix alongside the mixin name and then providing the needed arguments
๐Boom, Ansnakech is your aunt. You have 50 lines of code condensed into 5.
P.S If you've read the entire segment, you can also have JavaScript Code included using the - prefix which hides it from being rendered. This is called unbuffered code
โค1
Disclaimer: Asnakech isn't really your aunt (unless you have an aunt named Asnakech)๐ It's a take on the saying "Bob's your uncle" which is a way of expressing how easy achieving a certain task is.
Something new to learn everyday ๐
Something new to learn everyday ๐
๐1
Forwarded from GDG Addis
๐ IWD2025: Redefine Possible Virtual WTM Summit
Join us for an unforgettable experience at the Virtual Tech Summit, where ambition meets innovation! This inspiring event, proudly organized in collaboration with Google Women Techmakers and Bahir Dar American Corner, is dedicated to empowering and connecting women in technology.
โจ Who Can Attend?
The event is open to all, inviting everyone to attend.
๐ What to Expect
We are hosting seasoned Software Engineers from Google.
๐ Workshop Sessions at the IWD2025 Virtual Tech Summit!
๐ Session 1: ChatGPT โ Making Simple Tasks Mysteriously Complex
๐ฃ Speaker: Emma Saroyan
๐ Session 2: Beyond Coding: 10 Lessons You Won't Learn in School
๐ฃ Speaker: Dajana Stojchevska
๐ Session 3: Unlocking Your Potential: The Power of Networking for Women in Tech
๐ฃ Speaker: Tamina Batarsรฉ
๐ When: March 29, 2025 @4:00 PM-6:00 EAT
๐ Where: Virtual
Reserve Your Spot Here๐ https://lnkd.in/e_uXZ5bn
@WTMBahirDar @BahirDarAC
Join us for an unforgettable experience at the Virtual Tech Summit, where ambition meets innovation! This inspiring event, proudly organized in collaboration with Google Women Techmakers and Bahir Dar American Corner, is dedicated to empowering and connecting women in technology.
โจ Who Can Attend?
The event is open to all, inviting everyone to attend.
๐ What to Expect
We are hosting seasoned Software Engineers from Google.
๐ Workshop Sessions at the IWD2025 Virtual Tech Summit!
๐ Session 1: ChatGPT โ Making Simple Tasks Mysteriously Complex
๐ฃ Speaker: Emma Saroyan
๐ Session 2: Beyond Coding: 10 Lessons You Won't Learn in School
๐ฃ Speaker: Dajana Stojchevska
๐ Session 3: Unlocking Your Potential: The Power of Networking for Women in Tech
๐ฃ Speaker: Tamina Batarsรฉ
๐ When: March 29, 2025 @4:00 PM-6:00 EAT
๐ Where: Virtual
Reserve Your Spot Here๐ https://lnkd.in/e_uXZ5bn
@WTMBahirDar @BahirDarAC
https://www.youtube.com/watch?v=AaCnBOqyvIM&ab_channel=Fireship
Next JS Devs punching the air right now
Next JS Devs punching the air right now
YouTube
Next.js rocked by critical 9.1 level exploit...
Get up to 67% off VPS at Hostinger. Use code FIRESHIP for an extra discount at https://hostinger.com/fireship
Technical breakdown of the critical vulnerability CVE-2025-29927 that affects the React JavaScript framework Next.js.
#cybersecurity #programmingโฆ
Technical breakdown of the critical vulnerability CVE-2025-29927 that affects the React JavaScript framework Next.js.
#cybersecurity #programmingโฆ
Imagine spending an hour trying to solve a content security policy caused by a bundler after bundling JavaScript files using parcel... Because I can, and I can officially say that I have experienced a Lobotomy of sorts.
๐2
https://www.youtube.com/watch?v=_YbGWoUaZg0&ab_channel=kavan
For any C++ and physics lovers, or if you love random stuff, this video is amazing. I already feel like I can take my freshman physics finals and actually ace it this time.๐
For any C++ and physics lovers, or if you love random stuff, this video is amazing. I already feel like I can take my freshman physics finals and actually ace it this time.๐
YouTube
Simulating Gravity in C++
In this video I create a simulation of gravity using OpenGL in C++
P.S. this video shows a lot of the highlights, but FYK at the beginning of this project I literally didn't even know C++ syntax, so even though this isn't the greatest and more magnificentโฆ
P.S. this video shows a lot of the highlights, but FYK at the beginning of this project I literally didn't even know C++ syntax, so even though this isn't the greatest and more magnificentโฆ
https://www.youtube.com/watch?v=-R0UYHS8A_A&ab_channel=LofiGirl
For anyone who wants to experience a magical and relaxing vibe while working, this 30 minute jazz lofi beats will make the grueling tasks you have to tackle bearable ๐๐พ
For anyone who wants to experience a magical and relaxing vibe while working, this 30 minute jazz lofi beats will make the grueling tasks you have to tackle bearable ๐๐พ
YouTube
Afternoon Jazz ๐ท [jazz lofi]
๐ฟ| Listen everywhere
โ https://fanlink.tv/AfternoonJazz
๐ถ | Tracklist
[00:00] Cosmic Koala x Lucid Keys x Paul Indigo - The Player
[02:20] Phlocalyst x Myrรญad - Nuit Douce
[04:50] HoKรธ x Yoann Garel x Damien Fleau - Reflection
[06:54] softy x Comodo x Otisโฆ
โ https://fanlink.tv/AfternoonJazz
๐ถ | Tracklist
[00:00] Cosmic Koala x Lucid Keys x Paul Indigo - The Player
[02:20] Phlocalyst x Myrรญad - Nuit Douce
[04:50] HoKรธ x Yoann Garel x Damien Fleau - Reflection
[06:54] softy x Comodo x Otisโฆ
๐ฅ1
Quick question. How do you guys implement logging out on the frontend and backend, especially when saving tokens to cookies? I would love to know your logic to this situation
Good morning lil jittleyangs. Wishing yall a productive day full of success
๐1
As a developer, I love leaving easter eggs/ fun error messages for the frontend to see during development. During Prod however, we have to lock in with that professional error handling๐
๐คฃ2
What is y'all's favorite tech stack or programming language as of late? And why?