quicktricks_dev's profile picture. App to create and share eye-catching code snippets | Weekly coding tricks straight from the app | Daily dev life thoughts & tips

quicktricks.dev

@quicktricks_dev

App to create and share eye-catching code snippets | Weekly coding tricks straight from the app | Daily dev life thoughts & tips

Pinned

#JavaScript trick! Tagged Template Literals allows you to parse template literals with a function. When the tag function is called (highlight in this example), it receives an array of static string parts and also the values of each interpolated expression. You can use them…

quicktricks_dev's tweet image. ✨ #JavaScript trick!

Tagged Template Literals allows you to parse template literals with a function.

When the tag function is called (highlight in this example), it receives an array of static string parts and also the values of each interpolated expression. You can use them…

Ever mixed up slice() and splice() in JavaScript? Slice copies a portion without changing the original array, while splice modifies it by removing or adding elements. Quick tip: Use slice for non-destructive ops to keep your data intact! #CodingTips #JavaScript


quicktricks.dev reposted

#JavaScript trick! Tagged Template Literals allows you to parse template literals with a function. When the tag function is called (highlight in this example), it receives an array of static string parts and also the values of each interpolated expression. You can use them…

quicktricks_dev's tweet image. ✨ #JavaScript trick!

Tagged Template Literals allows you to parse template literals with a function.

When the tag function is called (highlight in this example), it receives an array of static string parts and also the values of each interpolated expression. You can use them…

📚 4 FREE resources to level up your Git skills: 1. Pro Git book → git-scm.com/book 2. Learn Git branching → learngitbranching.js.org 3. Oh My Git! (game) → ohmygit.org 4. Atlassian Git tutorials → atlassian.com/git


Shouild I build the app or play battlefield 6? That’s the dilemma.


Debugging at 2AM: “It’s just one more console.log, and then I’ll sleep.” *3 hours later* → still chasing that one last bug😅 #ProgrammerHumor #DevLife


10 underrated VS Code extensions that will save you HOURS 🧵 🔹 GitLens → Supercharge your Git workflow 🔹 Error Lens → Highlight errors inline 🔹 REST Client → Test APIs without leaving VS Code 🔹Auto Rename Tag → Rename paired HTML tags instantly 🔹 Peacock →…


🚀 VS Code trick of the day: Press `Ctrl + Alt + ↓` to add more cursors and edit multiple lines at once. It feels like coding superpowers. ⚡


👨‍💻 Side project showdown: Which programming language do you reach for first?


There is always that one person whose jira tickets are never in a correct status. Is that you??


Weekend coding sessions turning into endless rabbit holes of Stack Overflow tabs. How do you set boundaries to avoid burnout?


quicktricks.dev reposted

#JavaScript trick! Did you know that you have at least three ways to truncate numbers to integers in JavaScript? They are "Math.trunc", "parseInt" and the most surprising one: "~~". That's right, you can use bitwise NOT operator twice to truncate a number!

quicktricks_dev's tweet image. ✨#JavaScript trick!

Did you know that you have at least three ways to truncate numbers to integers in JavaScript?

They are "Math.trunc", "parseInt" and the most surprising one: "~~". That's right, you can use bitwise NOT operator twice to truncate a number!

True software developers test their code before shipping to remote environment.


200 OK response with payload { „status”: „BadRequest” }. Is it good or bad?


For me the best thing about coding is solving problems. Time is flying by in a blink of an eye when I am focused on some issue. How about you?


That post-lunch energy crash hitting hard. What's your way to recover?


Is your system fail-safe, safe-to-fail or it just fails?


Swap out repetitive for-loops with array methods like map or filter to make your code snappier—what's your go-to shortcut for cleaner iterations?


Nothing more irritating when people quick call about things they could find answer themselves in like 30 seconds if they tried


Switching contexts between meetings and coding feels like mental whiplash. Devs, how do you stay focused during interrupted workdays?


United States Trends

Loading...

Something went wrong.


Something went wrong.