DEV Community

DarkWiiPlayer profile picture

DarkWiiPlayer

404 bio not found

Joined Joined onΒ  github website

Last 250 comments

Simplifying a JavaScript Function With 12 Automated Refactorings

As always, I would much prefer the form const lineChecker ...

You DON'T need these to be a web dev

You can "program" with graphical building blocks and I'm sur...

You DON'T need these to be a web dev

you don't need to know closures [...] to be a web developer ...

Six (Dirty) Ways to shorten your Javascript

arr.forEach(console.log); Enter fullscreen mode ...

Which technologies would you choose for your next web project?

Nginx, HTML, CSS and JavaScript. Probably jsDelivr for the lu...

Display content with the 'only' class in Tailwind CSS

sooo... it basically does something along the lines of hid...

18 Python one-liners that will speed up your coding process.

You just agreed with me though. I'm confused.

HTML 5 and The Legends of the Elements

It goes beyond just that. <em> doesn't even have to be ...

How no-code solutions can actually help coders

Well, what does it mean to be a coder? If what you care about...

With No Code Builders, Why Should Clients Hire a Developer?

If any client can simply open up an account on a no-code bui...

Creating Squid Game's Dalgona Using Canvas

Doesn't work when you scroll though ;)

18 Python one-liners that will speed up your coding process.

This will help you to write the code faster. You can write t...

Immutable Arrays and Objects in JavaScript, the Native Way

Agreeing not to mutate data doesn't make the data immutable; ...

How to Convince Your Boss to Open Source a Project

What are better approaches that you would take to convince y...

How to Test Your NGINX Configuration Before Screwing it Up

$ nginx -h nginx version: openresty/1.19.9.1 Usage: nginx [-...

How to Convince Your Boss to Open Source a Project

I'm sorry to burst your bubble, but... All your bos...

Is there a suitable equivalent to `Function.caller` in modern JS?

Sounds a bit like an XY Problem

Why and why not to use Linux?

bishwas-py is my github profile sir You have a different p...

Why and why not to use Linux?

Krita is an amazing piece of software. It may not do everythi...

Why and why not to use Linux?

Idiots in the Linux community quarrels over distro, instead ...

Bubble sort Algorithm

JavaScript in 2021: when you need React to implement Bubbleso...

Do not put skill bars on your resume!

Rating your own skill this precisely is an invitation to the ...

Easy console.log() inside one liner functions

Yep, you can easily test this in the dev tools with [1, 2, 3]...

If-Else or Switch-Case: Which One to Pick?

Because jump-tables go out the window when your cases aren't ...

If-Else or Switch-Case: Which One to Pick?

In the if-else case, we do not create a jump table, and all ...

What is SVG?

A minor nitpick: you missed the <object> tag, which is ...

3 reasons to use 'var' in JavaScript

A friend was learning JS at school until not long ago, and th...

3 reasons to use 'var' in JavaScript

Same here, I also came here looking for outrage but then read...

RIP Copy and Paste from Stackoverflow! 🚨 (+Trojan Source Solution)

If you set the format of that last code block to bib, the syn...

How to seamlessly exchange data between JavaScript environments

How does this compare to MessagePack?

A Git Guide for Beginners

All files can be in one of the following states Or all of ...

🎊 You don't need SVG! Creating animated loaders for content with Tailwind CSS

...so what's the advantage over using SVG instead? While thi...

What are the things that scare you as a Developer? πŸŽƒ

The first two are basically the same mistake in different env...

What are the things that scare you as a Developer? πŸŽƒ

If we're complaining about marketing people, what I find much...

What are the things that scare you as a Developer? πŸŽƒ

Writing some software for non-it coworkers only for them to n...

What are the things that scare you as a Developer? πŸŽƒ

3. happened to me not too long ago; then I did a benchmark an...

Nailing Your Next Flutter Interview

From what I've read, it is not; at least the way I understand...

Basic Software Architecture Principles (except SOLID)

To be honest, I actually make WET my philosophy: Write Everyt...

Nailing Your Next Flutter Interview

Two remarks: Dart is a single-threaded language and it make...

Can you find the bug in this piece of code? - RegExp edition 🌍

I also didn't know this. It's probably very useful when build...

Can you find the bug in this piece of code? - RegExp edition 🌍

Here I was, looking for an error in the actual regex xD I wa...

3 Soft Skills To Succeed as a Developer

What you achieve as a single developer is far less what you ...

1 line of code: How to split an Array in half

const split = num => ([...arr]) => Array(num).fill(0) ...

3 Soft Skills To Succeed as a Developer

Yes; no doubt, we all stand on the shoulders of giants. But t...

3 Soft Skills To Succeed as a Developer

All softwares are built on a team Far from true; even big ...

Are online editors the future?

I kind of fail to see the benefit, but then again, I'm most c...

A Simple Introduction to JavaScript Iterators

I'm still very salty that Svelte doesn't really support itera...

I just bought πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’».to!

I wasn't even aware that tongan unicode domains are a thing; ...

Are you an awesome developer???

Also, for us guys who have been taught a lot given our educa...

Are you an awesome developer???

1111 1 1110 0 0 1 1 Can't fully agree with 7; saving a singl...

1 line of code: How to check if an Array is empty

It seems tempting to omit the braces at first, but there's n...

How to emulate Ternary Operators of Javascript in Python.

I love this, but at the same time I hate it πŸ˜‚ Reminds me of ...

The Art of Writing Agile User Stories

Mostly smaller internal projects that are used almost exclusi...

The Art of Writing Agile User Stories

Not a huge fan of "user stories", since I tend not to work on...

Divtober Day 25: Dip

Now I'm feeling the need to make some cheese sauce and buy a ...

Halfmoon: The forgotten CSS Framework

I mean rounding up to like 2 decimals or so; nobody tips 0.00...

Halfmoon: The forgotten CSS Framework

that tip calculator could do with some rounding πŸ˜†

How would you refactor this JS function?

Other than shortening it a bit, I'd change the second paramet...

Simplest way to compare two numbers array in JS

This method will not work for non-primitive values I read ...

Simplest way to compare two numbers array in JS

Whether that's a drawback or by design is questionable; wheth...

Winning my first Hacktoberfest!

correct me if I'm wrong, but these repositories all look like...

TypeScript is the Only Programming Language you Need to Learn. One language to rule them all!

Yep I totally agree with this. I use Ruby at work, Lua at hom...

TypeScript is the Only Programming Language you Need to Learn. One language to rule them all!

I think you're attributing more features to a type system tha...

TypeScript is the Only Programming Language you Need to Learn. One language to rule them all!

Without having properly read the article, I can add my reason...

TypeScript is the Only Programming Language you Need to Learn. One language to rule them all!

Learning other languages is also a good idea though. Every fr...

Start Using Tailwind CSS Right Now

Naming is only hard when you're not really sure what it is yo...

Start Using Tailwind CSS Right Now

The mental gymnastics continues. I just don't get why people ...

Understanding the Modern Web Stack: Babel

It's so nice to be able to not care about any of this when I'...

I published my first extension. Only for developer

Imagine needing an extension for that... *laughs in linux*

What are the best css trends??

Neumorphism is so weird. I really hated it when I first saw i...

Facebook is down, discuss...

I had a similar thought when I heard about what happened: m...

Start Using Tailwind CSS Right Now

Frameworks like tailwind have their place in prototyping, spe...

Start Using Tailwind CSS Right Now

The colors that Tailwind offers are not just CSS colors with...

Stacks and Queues

I don't really see how the #css and #html tags fit on this po...

Don't Configure Your Shell's Prompt

Yet the website says The minimal, blazing-fast, and infinit...

We are bad at programming

The one and only principle that allows us to write bug-free c...

Cherry-Pick Your Teammate's Changes Without Push 'n Pull-ing To Your Repo In VS Code

I honestly don't really get the problem here... What's wrong ...

Inclusive Language in Slack

sad that one has to use a throwaway to say something like this

Inclusive Language in Slack

That also means (at least to me) that we should not try to d...

Inclusive Language in Slack

True, because as far as I know nobody has been discriminated...

Inclusive Language in Slack

As I mentioned elsewhere, I was being hyperbolic. I wouldn't ...

Inclusive Language in Slack

what you're saying doesn't make any sense; why would I change...

Inclusive Language in Slack

You argue that the article has to many words Not at all; m...

Inclusive Language in Slack

I have indeed, several times, in fact. If you'd like to point...

Inclusive Language in Slack

I'll read that article properly some other day, but from read...

Inclusive Language in Slack

if a bot tells me not to use the word "blacklist", I will sta...

As a beginner in JavaScript, I did this within a day

Not bad, but one thing I noticed: .tres:hover{ backgroun...

Blockchain 101 (and the protocols that use it)

Exactly this. Git stores commits as hashed blocks, and each c...

How Long it Takes to Learn CSS

CSS has a very rewarding learning curve, but it's also a much...

Blockchain 101 (and the protocols that use it)

Nice article; but I'm a bit sad that there's not a single men...

On Using Web Component Libraries

Yes, and you can even do stuff like bind:self={array[index]} ...

Have you tried GitHub Copilot?

I can't think of anything I've written lately where I would e...

On Using Web Component Libraries

EDIT: I just realised that message wasn't meant in response t...

Have you tried GitHub Copilot?

I'm a vim user, so I couldn't try it even if I wanted. But al...

On Using Web Component Libraries

Sounds similar to my experience; Svelte wants you to stick to...

Git Commits and Commit Messages : The Final Guide

I think this article is absolute best guide on how to properl...

On Using Web Component Libraries

Luckily I only know svelte and vanilla JS; although I mostly ...

On Using Web Component Libraries

My whole point is that the problems start to show in more com...

On Using Web Component Libraries

while working with Web Components I need to declare every pr...

On Using Web Component Libraries

But no, I actually did answer your question. Most application...

On Using Web Component Libraries

To literally answer your question: You probably can

On Using Web Component Libraries

mostly anything that's more complex than a hello world

On Using Web Component Libraries

I assure you, devs don't mind to have React or Svelte I am...

CSS Make Background Image Full Screen

I don't quite get why you do all of the container stuff; why ...

Make Spam bot in Python in just 6 lines

A "spambot" can be lots of things and it took me quite a whil...

Save your application from crashing by wrong use of Web Storage API or localStorage in browser

I have cookies disabled by default and many websites complete...

Currying in JavaScript

I honestly don't think JS has such a bad lambda syntax; [1,2,...

Frosted glass on CSS

We can do more than just blur πŸ˜‰

Glassmorphism Login Form using only HTML & CSS

backdrop-filter go BRRRRRRR

Git Dos and Don'ts | Best Practices for Git

Don't modify or delete public history *laughs nervously*

Myths about Web Accessibility

Great article, definitely saving this for future reference :D

A Typewriter, but using a New HTML Tag

Harsh words right there, but I do agree. It's really nice to ...

A Typewriter, but using a New HTML Tag

This motivated me to finally update my own <type-writer&gt...

The 4 September Frontend tips about a11y and UX

So we have to be more caring to new users. At the expense ...

The 4 September Frontend tips about a11y and UX

Verbs in aria-label tell users this element leads to action ...

Class Static Initialization Blocks in JavaScript

Perhaps I'm misunderstanding but why not just register when ...

Object Oriented Programming πŸ’Š

It is worth noting that none of these "advantages" are really...

How to Build a Search Bar

Try putting two of these in the same page, then have fun rewr...

Class Static Initialization Blocks in JavaScript

My first thought is: Why not initialise the variable directly...

--css variables

And it's not just the name: They behave like properties too; ...

Amazing Button Animation Using HTML & CSS

Those are two different things. I don't dislike the effect it...

Amazing Button Animation Using HTML & CSS

Calling this animation "amazing" might be a bit much. als...

Create an Exclusive Product Landing Page using HTML CSS & JS

.right_container { width: 100%; height: 100%; /*...

Toggle Switch using pure css

Quite nice, and also, as chance would have it, I just built a...

Animated no-element typewriter

Pretty sure these days you could install a screen reader on a...

Why is chia-blockchain trending on Github?

Well it probably depends on whether you like python :D Perso...

Why is chia-blockchain trending on Github?

python-based few words in and I already don't like it xD

A Typewriter, but with no HTML, CSS, or JS?!

Ah, SVG, very nice! It's probably one of the most underapprec...

Animated no-element typewriter

Cool. Now make it accessible.

Dark/Light theme switcher with HTML, CSS & Javascript Only

"dark mode with every technology on the web only" NGL that t...

Reasons To Use Recursion and How It Works

Because again, recursion functions use call stack and the ca...

An Ultimate Guide to Git and Github

Without mentioning the git default, it's a bit misleading tho...

An Ultimate Guide to Git and Github

Yes, but your title says "Git and Github" so it seems worthwh...

An Ultimate Guide to Git and Github

More than just point out how to change the config, I think it...

An Ultimate Guide to Git and Github

Most of the cooler stuff git can do isn't really available fr...

An Ultimate Guide to Git and Github

2. Main: When you create a new repository, it comes with a d...

What would the ideal web framework look like?

Yea, nothing beats running your own code on the silicon you'v...

How I got Linus Torvalds in my contributors on GitHub

My point is, when I enable vigilant mode, I don't want to sho...

How I got Linus Torvalds in my contributors on GitHub

Does it already mark unverified contributors? I've never seen...

What would the ideal web framework look like?

Ideally, a framework should: be very modular be lightweight...

How I got Linus Torvalds in my contributors on GitHub

The import doesn't need to fail, it just needs to communicate...

🎬CSS Text Typing Animation | HTML & CSS

I built something just like this but in JS the other day to p...

How I got Linus Torvalds in my contributors on GitHub

You could get sued, but nobody would ever bother, much less i...

How I got Linus Torvalds in my contributors on GitHub

I'm pretty sure the github team has known this since the firs...

How I got Linus Torvalds in my contributors on GitHub

I also just turned on vigilant mode. I'd still like to see a ...

How I got Linus Torvalds in my contributors on GitHub

What's more, it's why you should require contributors to sign...

How I got Linus Torvalds in my contributors on GitHub

I think GitHub should fix this bug to prevent attacks on pro...

Learning Go by examples: part 7 - Create a cross-platform GUI/Desktop app in Go

Was about to complain that the stargate was missing earth, bu...

CSS Pseudo elements you might not be using

You can tell the difference easily: : means pseudoclass, :: m...

CSS Pseudo elements you might not be using

:hover is a pseudoclass ;)

The 7 assumptions about strings you probably have

Just a small tip: If you're gonna write about unicode, a good...

JavaScript vs JavaScript. Fight!

That MVC thing was a bit of an accidental red herring. Person...

JavaScript vs JavaScript. Fight!

Isn't that exactly what I'm proposing though? Having the data...

Styled-Components : Efficiently write CSS in JS File.

But seriously Tailwind blew me away Was that pun intended?...

Styled-Components : Efficiently write CSS in JS File.

Kinda similar to how I do things, except I just translate jav...

JavaScript vs JavaScript. Fight!

I don't see the problem here. State changes -> you respond...

JavaScript vs JavaScript. Fight!

Doesn't it make more sense to diff application state? And th...

JavaScript vs JavaScript. Fight!

I've always found the various approaches to reacting to data/...

JavaScript vs JavaScript. Fight!

So basically having events for data changes?

Last Week I Wrote Some jQuery (and no one fired me πŸ€“)

Not that there's anything wrong with using jQuery for some qu...

Call To Action button with pure HTML CSS

Pretty nice, but I wouldn't recommend using px units. If you ...

7 cases where we can use HTML instead of CSS

Nah, pretty sure URLs were an afterthought. <wbr> was a...

OOP is Ruff!

I think the main benefit of inheritance is how object genealo...

OOP is Ruff!

This is generally true because of the way class inheritance i...

How to decide CSS units for responsive website?

em is the parent font size only if it appears in the font-s...

How to decide CSS units for responsive website?

The important difference is that em ultimately depends on the...

The Dangers of Putting All Your Eggs in Google's Ecosystem: A Cautionary Tale

I wish I could even still care about stories like this, but c...

RiotJS vs Svelte

I mean, for the longest time, you couldn't get far with anyth...

Why make a Bootstrapy Website if there's TailwindCss!

But at that point, why not just use CSS? The main appeal of t...

Why bashing PHP makes you look stupid

If a language really is so "terrible" then people shouldn't ...

You don’t need React for building websites

I agree that languages can (and should) have a "plugin" syst...

You don’t need React for building websites

That's weird because by that point it was already more than c...

You don’t need React for building websites

Honestly, I wouldn't call any SSG with more than 500 lines of...

You don’t need React for building websites

Dunno, haven't used react myself, but my experience with fram...

You don’t need React for building websites

Dunno if that's what OP meant; I read it more like "Be an HTM...

You don’t need React for building websites

These days, almost nothing is easier in jQuery unless you're ...

You don’t need React for building websites

Going at this with a bit of unix philosophy: I think all thes...

You don’t need React for building websites

The idea that a react application will necessarily be faster ...

You don’t need React for building websites

The web app developer does need React or similar frameworks....

Why bashing PHP makes you look stupid

Programming languages are built for people to use them; if ev...

Why bashing PHP makes you look stupid

As with any language, the language is never the problem, it'...

Why bashing PHP makes you look stupid

PHP still deserves bashing though. It's just a very bad progr...

15 CSS3 Best practices of for beginners to pro.

Sometimes it's even easier to use flex, because that way you ...

15 CSS3 Best practices of for beginners to pro.

Can't think of any specific example right now, but think prod...

CSS Hover Effect

This is a nitpick, but hover is not a "property". If it was ...

15 CSS3 Best practices of for beginners to pro.

Use Grid when multiple columns/rows. Not always; some layo...

Why you should use Array.some instead of 'for' loop or forEach?

some is a very weird name; any (as used in other programming ...

Opensource... NO more free?!

The problem starts when autopilot takes code from projects it...

5 awesome CSS tricks for beginners

They are called custom properties, but even the spec uses the...

5 awesome CSS tricks for beginners

I don't quite like the name "CSS Variables", because that mak...

Disadvantages of Css-in-Js ?

I've never been a fan of putting CSS inside components: usual...

Top 5 DEV Comments from the Past Week

medicine, law, business, engineering, these are noble pursui...

[JavaScript] 5 Interesting uses of JavaScript destructuring!

The usual way to swap 2 variables requires an additional tem...

How should you prepare for your first interview as a developer?

One thing I'd add: Remember that an interview is not a one-si...

Git Merge vs Rebase

Because a rebase moves commits (technically re-executes them...

What is Your Story?

While quiet life may be amazing, people do not sit and watch...

What is Your Story?

Isn't that why we study the ancient heroes. I think Firangiz...

What is Your Story?

For your life to have a good story (a story people would wat...

Boy or Girl Paradox... What the heck is it??? 🀯🀷

One of my favourite problems, because it just seems sooooo co...

Boy or Girl Paradox... What the heck is it??? 🀯🀷

Here's the smartass answer: 0%. The question states one of th...

Boy or Girl Paradox... What the heck is it??? 🀯🀷

You'd think so, but no, you're still wrong. Think of it this ...

Boy or Girl Paradox... What the heck is it??? 🀯🀷

Intuitively, I also wanted to say 1/2, because if one is a bo...

Currying in JavaScript

Nice article, but you seem to have a somewhat wrong idea of w...

JavaScript's Broken Mathematics ? πŸ’”πŸ’”

Floating point rounding errors is one of these things you jus...

What was your first code editor?

written in Lua Nice!

What was your first code editor?

Musta been lazarus, back when I was learning programming with...

29 best YouTube channels to learn to code and become a better Developer

I really dislike Derek Banas. All of his videos are just way ...

Error Handling in JavaScript (Golang Style)

Something like this, I guess: const safe = fn => (*args...

10 Examples of a Good πŸ‘©β€πŸ’»πŸ§‘β€πŸ’» Developer Portfolio πŸ’Ό for Your Inspiration πŸ¦„

I take it you mean the Gif animations that are under the tit...

10 Examples of a Good πŸ‘©β€πŸ’»πŸ§‘β€πŸ’» Developer Portfolio πŸ’Ό for Your Inspiration πŸ¦„

I do not waste anyone's time, it is very absurd to say I d...

10 Examples of a Good πŸ‘©β€πŸ’»πŸ§‘β€πŸ’» Developer Portfolio πŸ’Ό for Your Inspiration πŸ¦„

Clicked through the first half and had to stop. A few pieces ...

Error Handling in JavaScript (Golang Style)

I would wrap it in a higher order function though, something ...

Introducing `findLast` and `findLastIndex`

I generally think anytime the browser takes on some of compl...

I need the guidance for web development

I have almost completed learning No you haven't. None of u...

5 Software Development Skills That Will Put You In The Top 3% Of Software Developers

My 2 cents: the most important thing if you want to be produc...

Pure CSS Tabs

Quite fancy

Rebuilding Promise.all()

Yes, this was quite unintuitive the first time I saw somethin...

Rebuilding Promise.all()

After reading the introduction, I felt like doing this myself...

33 GitHub projects I have bookmarked and you should

there MUST be a collection of starters somewhere that aren't...

33 GitHub projects I have bookmarked and you should

It's just as with jquery though: the web used to suck. A lot....

33 GitHub projects I have bookmarked and you should

I think getting started is pretty much the one thing where fr...

33 GitHub projects I have bookmarked and you should

Flex box isn't hard: you just set display: flex on the contai...

33 GitHub projects I have bookmarked and you should

Nah. Bootstrap tricks people into thinking it's easier to lea...

33 GitHub projects I have bookmarked and you should

Great list; there's quite a few repos in there that are 120% ...

My Developer Journey – How I Went from Making $1,000 to Better Salary

Use your spare time well: You won't always have enough work ...

The Quiet Code: How tech silences with severance and fear

They can have you sign it, and hope you never question whethe...

The Quiet Code: How tech silences with severance and fear

That's an interesting way to look at it

The Quiet Code: How tech silences with severance and fear

I don't quite get the whole "Sign this or leave" thing; was i...

γ€ˆload-file〉Web Component, add external content to the DOM

Pretty cool, I like it :D However, you forgot to mention SVG...

The rise of no-code & low-code: are we out of a job yet? 😨

I agree with Pavel Β­β€” his comment does address a few of those...

The rise of no-code & low-code: are we out of a job yet? 😨

Before reading the post: No. Coding is to software developmen...

What was your win this week?

I figured out that having {@html generate_some_svg_code()} at...

πŸš€ Productivity Tips πŸš€ for every Javascript Programmer πŸ’»

These days JITted languages are also considered "interpreted"...

πŸš€ Productivity Tips πŸš€ for every Javascript Programmer πŸ’»

1. Async nature of javascript That's more of a downside, r...

"Am I a bad developer?" - A question developers commonly face

There's no contradiction whatsoever. Know as many languages a...

"Am I a bad developer?" - A question developers commonly face

Nah, there's no upper limit; you should have one or two langu...

JavaScript Interview Question #40: What is the type of `undefined` in JS?

Hey, I never claimed JavaScript is a sane language overall :D

(Nvim) Lua for Javascripters: Spawning Processes

One of the major differences is that in Lua you are responsi...

(Nvim) Lua for Javascripters: Spawning Processes

Minor nitpick: stderr = function(data) print(data) end ...

loading...