DEV Community

loading...
Michael Z profile picture

Michael Z

Software writer

All 135 comments

Building a Countdown App

Note that setInterval of 1000ms will actually not trigger the...

CSRF tokens for SPAs

Yea, it was fixed ages ago, but with ES6 proxies, it resurfac...

The Shocking Immaturity of JavaScript

There's always Adonis.js on the backend if you want something...

Making a living from open source

Another approach is what Caleb is doing at the moment: calebp...

Announcing Vite 2.0

Recent laravel-mix release sped up compilation in a vue app f...

Why you should drop ExpressJS in 2021

Interested in why you think this way, could you explain furth...

Git aliases for increased productivity

I don't recall running into this after having set the push.de...

Why Facebook's api starts with a for loop

While those vectors may not be working today, we never know ...

Vue or React?

most importantly it gets better first. So they come up with ...

You don't need classes

It's more about code organisation more than anything else for...

Abstracting those Boring API Requests & Endpoints

I like these ideas to abstract those boring API requests ;) ...

Why Do JS Devs Hate Namespaces?

I think most JS devs would define destructing as a "net good...

17 Pro JavaScript tricks you didn't know

// Noobs: let num = 15; let s = num.toString(); // number ...

Good Bye Web APIs

Nice, I've done something similar in a more simplistic (and l...

What SQLite CAN actually do

Something I like about sqlite is that you can just have a dat...

Time to stop using REST...

If you are responsible for both backend and frontend, GraphQL...

What's your favorite coding related movie?

Does Office Space count? :)

Is git commit --amend truly *important*?

Amending/rebasing helps a lot with making PRs easily reviewab...

Utility-first CSS - You have to try it first!

I go more into detail regarding the benefits in this interact...

10 best Javascript libraries in 2020.

To manipulate strings and other types I also created a librar...

How will you structure REST APIs as an experienced engineer ?

If you are talking about actual endpoints, have a look at thi...

Publish to NPM automatically with GitHub Actions

Oh awesome! For my case I also needed it to update the versio...

Why are software developers using a MacBook? There are many alternatives that are cheaper and work just as fine.

You can usually install frontend frameworks using just npm/cd...

If you would create a small social network in 2020 what stack it would have?

It will probably make things easier as it has excellent first...

If you would create a small social network in 2020 what stack it would have?

Solid stack, just wondering why you chose mongo over a relati...

What's new in PHP 8 and what does that mean

Excited to see how writing Laravel code will evolve with all ...

An Introduction to Ruby for Javascript Devs

There's a lot of talk online in developer forums about wheth...

An Introduction to Ruby for Javascript Devs

Yes, Adonis.js is your closest bet.

Why is my promise not resolving correctly?

You are mixing async-await, then and callbacks together. I wo...

Why I Converted from Vue to React

Having used both extensively as well, here are my thoughts: ...

1 year with React Hooks - Biggest lesson learned

I like the simplicity, but there are so many pitfalls that le...

Stop repeating work and Start coding your express API 🚀

It sounds like a lot of fun to build such a tool. Personally,...

What are your productivity hacks?

Turn off all notifications for things like chat or mail. If y...

What are some "classic reads" in programming?

Don’t Let Architecture Astronauts Scare You

Show me your personal website/portfolio

My portfolio is made with Nuxt.js and Tailwind css: michaelza...

Slack: You don't have to reply so fast

I think it's related to FOMO. There is a very interesting rea...

Vue 3 just got me from interested to excited

This post was more to show the new syntax, not the benefits o...

Vue 3 just got me from interested to excited

I like this example. In Vue 2 we exported an entire object us...

Vue 3 just got me from interested to excited

Two things I'd like to point out. The new API does not depr...

Vue 3 just got me from interested to excited

But they are inspired by React and Svelte :/

Vue 3 just got me from interested to excited

Could you elaborate that?

Utility-first CSS - You have to try it first!

That's great to hear! If you feel a little skeptical I also c...

Best Vue frameworks so far

Thanks for sharing about Vue. dev.to needs more of that :) Th...

What languages and tools do you use that spark joy?

Despite its many quirks, JavaScript is fun. To this day I sti...

What languages and tools do you use that spark joy?

I've built a little interactive tutorial to overcome this ini...

Are unit tests a waste of your time?

I think it depends on the tech stack. Working with frameworks...

Are unit tests a waste of your time?

I usually start with integration tests and only break down to...

What do you listen to while coding/designing?

Nujabes and retro gaming soundtracks like this.

Classical CSS vs CSS in JavaScript

With Vue.js, classical CSS is quite nice thanks to the built-...

Computer Science vs Software Engineering

I agree. Devs should focus more on clarity when writing code,...

Good bye API layer. Uniting frontend and backend

It technically works with any backend language. The repositor...

React vs Vue: Compare and Contrast

I just leave this here ☺️ S...

Node JS vs PHP

You can use Map or objects depending on your use case.

Tailwind CSS for skeptics - Interactive Tailwind CSS tutorial

Yup, you probably already use some form of separation of conc...

Is the Tailwind approach a big step forward for CSS or just-yet-another-thing?

Yup, I really enjoy it. In fact I just put this out for anyon...

In defense of the modern web

Wondering what's your take on hybrid approaches like inertiaj...

TDD course with AdonisJs - 8. Third party APIs, ioc and custom validators

Thanks! I actually have some more posts about adonis.js. Her...

"Is PHP Dead?" Discussion

Just out of interest, have you used Laravel specifically? It ...

"Is PHP Dead?" Discussion

DHH ...

7 Svelte features that bring me joy

Both svelte and vue are doing a very good job of having littl...

What’s your alternative solution? Challenge #28

To clearly show the intent of such operations I created my ow...

What’s your opinion on the Ruby programming language?

I would love to pick it up, maybe just because of how DHH spe...

Vue and localStorage?

It really depends on your use case. But if you want to pers...

Vue and localStorage?

Not sure if localStorage is truly what you want here as it ...

What are your tips and tricks for beginners writing tests?

Don't overthink "what to test". It will come naturally once...

The trouble with implementing SSR into a Laravel/Vue app

This seems to be an issue with the vue-select library itsel...

The trouble with implementing SSR into a Laravel/Vue app

on-click and v-model should work just fine. Maybe it is som...

You may not need vuex. Here are some alternatives

Sure, if your api is already in graphQL or graphQL is a goo...

What is your favorite ORM (None is a valid answer)?

eloquent is amazing.

Is it okay if my app is not microservices-based?

It's absolutely fine, even good! If a new feature really ne...

Can you crush your workload while working from home?

There have been quite a few blogs like this recently which ...

React Is Eating Itself

I don't think that last example makes it more readable. Not...

React Is Eating Itself

I very much agree with a lot of these points. Redux solves ...

What effect is the Coronavirus having on your work life and personal life?

Remote work started this week for me here in Japan. I hope ...

Why would people hate React (or JSX), but not Vue SFC, or even Angular?

I feel like react often introduces new ways to do the same th...

CSS in JS - have we done something wrong?

Hence why I am more of a vue guy. It has figured CSS out at t...

✨💻My Project for 2020: 🚄Node On Rails🚄

Adonis is the Laravel of Node. Definitely check it out if y...

Why we love and choose Ruby instead of Node.js?

You are comparing a framework with a programming language (...

Authentication and Laravel Airlock

Yes that's very true. But what stops the attacker from retr...

Authentication and Laravel Airlock

Doesn't samesite: lax already protect against csrf tokens o...

Make It Work, Then Make it Pretty

What really helps me with this is TDD. You just make it wor...

Tips on naming boolean variables - Cleaner Code

Thanks! Where are the contacts displayed in? You could may...

Vue.js - Cleaning up components

Yup, that's true as well!

Vue.js - Cleaning up components

It's a more low level approach that allows devs to implemen...

TDD course with AdonisJs - 8. Third party APIs, ioc and custom validators

Hi :) If you check .env.testing it should go to port 4000,...

TDD course with AdonisJs - 8. Third party APIs, ioc and custom validators

Thanks for pointing that out!

What conventional wisdom in software is wrong?

Anything absolute really, meaning any statement containing ...

"git nah" and more handy Git aliases

Thanks for that! I corrected it

TDD course with AdonisJs - 7. Moderators

Hi, unit tests literally only test a single unit (e.g. a m...

Tips on naming boolean variables - Cleaner Code

Yes that's true, I added it to the article that going with an...

Tips on naming boolean variables - Cleaner Code

That's a tough one. What came to my mind was also isPairLog...

Tips on naming boolean variables - Cleaner Code

Ah yea, I was kind of mixing examples in the last one.

Tips on naming boolean variables - Cleaner Code

That was not the intention of this article and I am sorry y...

16 Hours to launch — A breakdown of how I designed, built and launched a product over a weekend.

The power of battery included frameworks ❤️ Others would s...

Are Timed Coding Interviews A Good Indicator Of Job Performance?

Sure, but why time it instead of giving the candidate the opp...

Four ways to pass data from Laravel to Vue

Rather than echoing manually you can also let this package ...

Should you use Medium or dev.to?

Writing markdown was one of the main reasons I started using ...

😲🤯The most outstanding new feature in Javascript you need to know about: Optional Chaining

I hope it won't be overused like destructuring. I can alrea...

TDD course with AdonisJs - 2. Our first test

Thanks! I fixed it.

What are you not interested in learning?

oh my, Powerbuilder. Brings back memories :D

Introducing the Best 10 Node.js Frameworks for 2019 and 2020

AdonisJs is battery included, comes with db setup, mail, mv...

Utility-first CSS - You have to try it first!

You can still create vue/react/... components for each thin...

You Probably Don't Need A Front End Framework

There is a project called inertiaJs: inertiajs.com/ which b...

What Does Your IDE/Code Editor Look Like?

vs code fira code font sidebar on the right minimap disa...

Simple libraries do not guarantee simplicity - Rethinking popular NodeJs libraries

Sure there are some tradeoffs to be made. But I'd say frame...

What was your win this week?

Joined a gym to go to before work.

The trouble with implementing SSR into a Laravel/Vue app

I really like the idea of inertiajs, have been playing arou...

A case against modern CSS frameworks (component libraries)

Will give it a try!

A case against modern CSS frameworks (component libraries)

Yea, basically CSS frameworks that are based on a JS compon...

Avoiding fat controllers in AdonisJs

Then you would always get the same instance of ArticleServi...

Turn any non fluent API into a fluent one - tap tap tap

Yup, unnecessary in such cases.

Refactoring search queries in Adonis.js

It would be best to see some code to understand what happen...

There's only one way to validate an email address

In Japan many people use emails that do not follow the stan...

3 Powerful Examples of Destructuring Assignment

There is one more use case to destruct dynamically. Also re...

Saving Data in JavaScript Without a Database

Another way is (or will be) kv storage. It's the first buil...

What would you like to see implemented on DEV?

Being able to see posts I ❤️d and 🦄d would be awesome. Righ...

4 Reasons You Should Write Tests First

Was just watching Adam Wathan's TDD course twitter.com/adam...

The trouble with implementing SSR into a Laravel/Vue app

Hi wj, You only get SSR when using blade / raw HTML. With ...

IIFEs in JavaScript and how to avoid this common mistake

I really don't mind the use of semicolons, but personally h...

Build fullstack Javascript apps with Adonis and Vue

Thanks! I know what you mean, and it turns out, you are not...

Bulletproof node.js project architecture 🛡️

This sounds like a lot to setup. Have you tried Adonis.js? It...

The trouble with implementing SSR into a Laravel/Vue app

In my research regarding v8js, the setup looked more compli...

Avoiding fat controllers in AdonisJs

Thanks, I've just starting writing the module for it.

JavaScript One-Liners That Make Me Excited

I've got another good one to create arrays of a specific size...

Real cost of your new library

I agree that you should probably not jump head first into s...

4 non-technical books every developer should read

Here are two self help books I really enjoyed. Atomic Habi...

Vue vs Vanilla JavaScript - Beginner's Guide

I agree, Nuxt is amazing!

Vue vs Vanilla JavaScript - Beginner's Guide

Happy New Year! Thanks for mentioning that. I added a note ...

Brutalist Web Design. A Breath of Fresh Air in the Modern Web

Websites used to have much more personality. I love coming ...

Build fullstack Javascript apps with Adonis and Vue

Cheers mate, I appreciate it. I don't know when I get to t...

loading...