We're a place where coders share, stay up-to-date and grow their careers.
404 bio not found
All private interactions must abide by the code of conduct.
Shrimp Fried Rice
Jun 8
I gathered π
Mar 30
No, but mesh networking or at least decentralized content del...
How does a blockchain keep it safe? Safe, in conventional spe...
I meant technology does get adopted based on rhetoric alone, ...
Dear @booleanhunter Seeing the length of your comment, I wa...
Unfortunately, it does π΄
What makes you think I haven't seen the casualties of the war...
Prompted by your comment, I wanted a reminder of what SCSS vs...
So a bunch of paid centralized services? :/
Mar 29
You have to admit that .button { border: none; padding...
I believe it is crucial, but I don't really see it happening ...
Beyond the fact that we live in a world of Russia and China, ...
Your "want" of having your information information the spread...
Please beat offline-first ServiceWorker-cached application sh...
Mar 26
How do you make a lossy iterable for late binding that keeps...
Feb 1
my PC is too noob for Linux π€
Jan 21
Even if absolutely no runtime state is shared between consume...
The performance in the linked case is worse. You just weren't...
Dec 8 '21
If you're so functional, just define your own Result type (or...
I took the liberty of messing with this project. Please take ...
Nov 23 '21
Pls don't call "spawned tasks" "threads". Think of the childr...
Array.from goes through iterator protocol for Set and Map, so...
Nov 1 '21
It's actually specced to preserve insertion order: developer....
I wish I could write like that without the performance impact.
Oct 29 '21
THE DUALITY OF MAN
Oct 26 '21
UnityScript (JS dialect) has been discontinued
I'm just assmad that Array.filter et al got added to the lang...
Oct 23 '21
I'd love to see that too. I'd tongue-in-cheek say facebook.co...
Oct 21 '21
And last but not least, see how competitive WASM is with JS, ...
I appreciate your readability concerns, but that article look...
JS and current devices are slow enough. Even methods like Arr...
1. Uncaught SyntaxError: missing ) after argument li...
Aug 7 '21
Psytrance instantly prevents me from doing intellectual labor...
Jul 10 '21
Not going to lie, I was hoping you'd put some personal brandi...
GPT-3 can do a little bit of arithmetics by accident. There's...
Jul 5 '21
A monad is... An endofunctor, T : X -> X A natural tran...
Ah, so no dirty filth, basically. Ok, that makes sense.
What did you mean when you said?: No hacky CSS code.
I'm sorry, but this code makes no sense and is frankly confus...
Jun 29 '21
Okay, but what is dev.to's official stance on the circumstanc...
Jun 24 '21
I am like 100% certain that readers should be able to view th...
May 25 '21
Open to criticism by default, closed to criticism explicitly ...
May 24 '21
#OpenToCriticism and #AllCommentsWelcome are depressing names...
It seems the faster crypto.randomUUID is, the slower uuid.js ...
Bruuuh inheritance is scary lmao
May 14 '21
But what if you want to have an account type where you can wi...
May 1 '21
I just don't understand what we achieve by enforcing the With...
Apr 30 '21
These abstract classes sure sound like traits/interfaces.
I was on web, with clean cache. It's fine now (still gists, b...
Apr 5 '21
I recommend github.com/tbillington/kondo instead. It's fast, ...
For me, right now, both gists are linked to shotgun.php. I s...
Well, I mean... regex is the type. I get that this code won't...
Apr 2 '21
And a lot of nodejs builtins come in proper promise versions ...
Mar 25 '21
const user = { name: { first: "Akash", second: "Kava" } } co...
Mar 24 '21
teleports behind you removes all asserts and logging statemen...
Mar 23 '21
Yeah, it's pretty irresponsible. But how do we rename debug b...
Mar 22 '21
Idk, just wanted to know your opinion, since you referenced i...
Do you also support the renaming of the master git branch tha...
Yes, most of the stuff on this non-application purely "busine...
Mar 21 '21
"Make your site work without JS and use JS for progressive en...
Mar 20 '21
Please name a single platform where profile verification help...
Mar 15 '21
My man living his daily life in the Recycle Bin
Mar 5 '21
It was wrapped in a <p> tag. The problem is they made t...
It semantically doesn't make sense to make a container for so...
Wait, this is literally Evan :v
Feb 19 '21
How is it different from the regular youtube-dl?
Feb 4 '21
If we're talking IEEE754-like floats, there's also NaN :v N...
Jan 28 '21
there's only x + 0 == x - 0 (== x) x * 1 == x / 1 (== x) 2...
Jan 27 '21
JavaScript stupidly golfed: calc_type=(a,b,c)=&...
Jan 26 '21
Can the first two numbers be negative? fractional? +/- inf? N...
Jan 25 '21
Rust A brute force approach, by recursing and trea...
Jan 22 '21
Rust 1. return an owned String: form...
It's nice, maybe for prototyping, but just writing a small wr...
Jan 6 '21
They literally have free tiers, and then then the pricing is ...
Buffer.from('06608503303207606607203207806908203207807408307...
Jan 5 '21
What other languages do you use?
Please annotate your code blocks with language to enable synt...
You want to use of with iterators, in is for string keys of ...
Yeah, unless they wanted to print keys (including inherited)...
I usually write it as const sleep = ms => new Promise(r...
Dec 31 '20
Wow, what an amazing error! Good job, npm developers! It tell...
Dec 8 '20
lmao
Since you clearly have npm and this is happening in a directo...
Dec 7 '20
A similar topic 2 years and 2 days ago: ...
Bad order of answers. "3" is ambiguous. error 4 3 would...
Dec 2 '20
My "bad", it's a carryover from my other, simpler, comment. T...
Nov 28 '20
Rust Haskell Typescript Javascript
Nov 26 '20
With rescheduling when empty, consider: const {log} = cons...
Any await point yields to the eventloop, much like using setI...
Nah, you're good. But for correct treatment of strings, such...
Nov 24 '20
What language are you using? Javascript? Are you on the NodeJ...
One possible RegEx that creates these matches is const re ...
I updated my post, you were just too quick to reply :D What ...
That looks like tokenisation, except It's strange that the ke...
I wonder what activated this feature for me, then. Perhaps it...
Nov 23 '20
Not gonna lie, struct Milk { fat: f32, } Enter ...
Sorting is O(n log n) - O(nΒ²) depending on if you allocate ad...
Nov 20 '20
Rust use itertools::Itertools; fn wave(nums: &a...
Rust #![feature(array_windows)] pub fn adjacent...
Nov 11 '20
JavaScript const remove_url_anchor = url => ...
I totally missed the part that you work on Marko now. Does th...
Nov 7 '20
Have you tried the "concise syntax" at all? It is kinda like ...
Nov 6 '20
Perfect. Now what actually politically incorrect thing could ...
JavaScript Efficient (for small strings) ...
Nov 4 '20
Bruh.
Oct 30 '20
Rust #![feature(once_cell)] use aho_corasick::...
Oct 29 '20
Almost every technology is right for something. Without any d...
Then, in the style of my other answer: async function getA...
Oct 26 '20
I wish it let me do while (token = res.newToken), but res goe...
I would avoid naming them, by doing the following: functio...
Do you use fooValueNextToken? or is there only ever one page ...
I wouldn't be surprised, but I'd expect massive evidence.
Oct 24 '20
And blindly believing the claims that he got hacked (or that ...
Oct 23 '20
subdirectory (path), because: Maintain HTTP2/HTTP3 connecti...
Oct 21 '20
RIP
Oct 20 '20
So first and last non-whitespace character are less likely to...
Oct 19 '20
Where it really shines is if you do something like * { f...
Oct 14 '20
I can absolutely deny the value of institutional education.
Horrible that the comment was deleted. Do you have it backed ...
Learn Rust. It will be less insecure.
This article is a lie! React has 157k stars!
how to name a competing database
HTML already has modularity and templating built in, if copy...
Numbers correspond to those in the article: - Code splittin...
Maybe delete it then :3
Oct 13 '20
There's at least github.com/jimmywarting/StreamSave... (or fo...
I get that it has many "components" that all change at the s...
Oct 8 '20
Why bootstrap at all? Why specifically moonjs? Why not solid...
Oct 7 '20
Would it be completely insane to suggest learning Javascrip...
Coming back to it today, honestly it's not that bad. I think ...
Oct 5 '20
What do you mean?
Oct 4 '20
I think they mean that is syntactically/semantically looks li...
Is this a good link? Peepee poopoo, as described in my arti...
How can you make portable modules for web and deno with ES mo...
Definitely. This was before they used solderless switches, so...
Oct 3 '20
Thank you, I updated the link. (was previously web.archive.or...
Oct 2 '20
A plain, white Ergodox EZ Shine with sculpted/blank keys, but...
Oct 1 '20
Easier to do clean updates/uninstalls for smaller services. T...
What do we return for 1 1 1 and 2 2 4 ?
Sep 29 '20
Nothing wrong with the last one if you don't take over one da...
Sep 23 '20
Haha Mazda ^ high quality comment
Sep 16 '20
For CLI tool written in Rust, see github.com/mattgathu/duma
Sep 14 '20
Rust lol generics use core::ops::{Add, Sub}; fn ...
Sep 8 '20
JavaScript const manhattan = ([x1, y1], [x2, y2]...
I wonder what the result with asm.js would be. There are some...
Could you plese write ```python for the last code block?
Sep 6 '20
You already did the skimming, but you could also avoid string...
Rust (without stringification) fn euthanize(mut ...
Sep 5 '20
What is the definition of "unique triplets"? Are all the inp...
Aug 30 '20
Rust pub fn cost(mut mins: usize) -> usize { ...
Aug 14 '20
mov rcx, rsi imul rcx, rdi lea...
use core::iter::Enumerate; #[derive(Debug, PartialEq)] struct...
Aug 10 '20
Rust fn solve(mut chips: [u64; 3]) -> u64 { ...
Jul 31 '20
"constant time" in Javascript const solve = chip...
2D plane xxYxx this is a 1D plane
Jul 29 '20
javascript const solve = arr => { const val...
Jul 28 '20
Epic, but also this relies on the array being sparse in the f...
Nope
(a => [...new Set(a)])([3, 4, 4, 3, 6, 3]) is [3, 4, 6...
how to count with javascript regex const perro =...
Jul 24 '20
nodejs const perro = wurd => { let i = 0 ...
If you're using generators, go wild :v const chain = (...fn...
Jul 22 '20
No An admin should delete all comments on this post and lock...
Jul 15 '20
Oh no, it's myspace
Jul 10 '20
I like the word problem in the question, where decimals are m...
Jun 13 '20
Does "until you reach a decimal" mean "until the result of in...
const half = n => n && half(n>>1) + n :v
JavaScript normal (aka filthy coercion) const le...
Jun 8 '20
I knew that the "pilots" of the dragon cargo capsule are not ...
Jun 1 '20
Rust π the below code in a runnable playground ...
May 29 '20
Why is the outer a unordered_map and not a vector? It's conse...
Doesn't produce correct answers for extremely high numbers du...
There's also String.prototype.includes const letters = "abc...
May 20 '20
Rust yay fun with bitsets fn change(hay: &st...
May 19 '20
Rust Assuming that replacement with X is per chara...
May 14 '20
whackathon
May 9 '20
Javscript With the assumption that in a long array...
May 5 '20
We have iterators now, so it was trimmed
Apr 25 '20
Wow! How long are the strings you test against? I'd be intere...
Apr 23 '20
You did "string consists only of", not "string includes all o...
// Javscript const regex_contains_all = chars =&...
I take it all back, this thread is the most important thing...
Apr 19 '20
It might be faster, more precise, and you might already be ...
Rawr xD lol
Apr 18 '20
@notch, the only reason to have twitter. But whi...
Apr 17 '20
GLORY TO THE CSS
Gotchas All throws in a function marked async ar...
Apr 16 '20
A Promise is a "handle" to a value that may or may not alre...
There's a time and a place for everything.
It's a message broker/"database" (what an overloaded word). I...
For me, it's the fear of overengineering that causes not-in...
Conduct like this will not be tolerated. The police are on ...
Rust, precomputed here #[derive(Debug)] enum B...
Rust bruteforce solution #[derive(Copy, Clone)...
Sounds like googleapis.com/robot/v1/metadata/x... is the J...
There's also pnpm, whose workspaces hoist all node_modules an...
I'm concurrently building a backed service in TypeScript an...
creating a BigInt object: const value = new BigInt(500) Th...
I too wish to know this π
That is a view of nothing but pure inertia. Imagine using l...
Apr 15 '20
The objectness is also very obvious in the fact that [] is ...
Apr 14 '20
Most dark themes are just pastel themes with low luminosity...
Poorly, but I'm not sure I should dedicate even the littles...
I see what he is trying to teach, and I understand the need...
If you need server rendering today, I recommend looking at gi...
It definitely pays off, just don't obsess over it. For gree...
The other gotcha is that it mutates the source array, and t...
Sum of squares is the default example of the Rayon crate: ...
Butt what is it? For example, what database does it provide? ...
Rust fn validize(pwd: &str) -> bool { ...
Apr 13 '20
No, how do you mean?
UPS tracker.
No systematic approach has taught anyone anything as much as ...
Things that are easy about CSS: Overall grammar...
OG is an interesting usecase. I currently spend more of my ...
Server side rendering of "private" pages is seriously overr...
Which dependencies are you talking about? Just like github....
Static hosting is cheaper and faster at every level and sca...
github.com/Pauan/rust-dominator/ tho.
Henlo. I've never used python, so this might be a stupid qu...
Rust. Who needs error checking when you can support multili...
Apr 9 '20
Ah, makes sense. I just don't see a lot of advantages to se...
Mar 31 '20
Why have an executable for a static site? Is it not static,...
Mar 30 '20
Afaik, scratch isn't "nothing", it just downloads nothing. ...
I can never get over the shame of (products || []).map(. Wh...
Mar 26 '20
Dumb quotes FTW
Object#fromEntries() to the rescue: const allNames = { ...
const tableData = props.item && props.item.deta...
Roost fn dtoa(dna: &str) -> String { ...
It was strange for me that you used |> and not <| eve...
pls fix Andrei Gatej ...
Mar 22 '20
Is this actually a good one? takeWhile(() => this.aliv...
Just to show off
Mar 21 '20
Maybe match ch :v
Mar 17 '20
Based corona-chan
Mar 16 '20
Serious question: Why are there 100 unique developers writi...
Whoops, looks like someone didn't specify the base of the n...
Mar 3 '20
Nodejs (not web): const rgb = (...args) => Buffer.f...
Jan 25 '20
Wouldn't you say the two are basically opposites?
Nov 15 '19
Relying on normal spam protection that doesn't impact usabi...
const bepis = (s, x) => { let max = 0 const lasti = ...
Nov 12 '19
Last 250 comments
What are your specialties??
Shrimp Fried Rice
The Powerful CSS not Selector
I gathered π
Do you want a decentralized web with free speech support?
No, but mesh networking or at least decentralized content del...
Do you want a decentralized web with free speech support?
How does a blockchain keep it safe? Safe, in conventional spe...
Do you want a decentralized web with free speech support?
I meant technology does get adopted based on rhetoric alone, ...
Do you want a decentralized web with free speech support?
Dear @booleanhunter Seeing the length of your comment, I wa...
Do you want a decentralized web with free speech support?
Unfortunately, it does π΄
Do you want a decentralized web with free speech support?
What makes you think I haven't seen the casualties of the war...
The Powerful CSS not Selector
Prompted by your comment, I wanted a reminder of what SCSS vs...
My first Web3 page with IPFS
So a bunch of paid centralized services? :/
The Powerful CSS not Selector
You have to admit that .button { border: none; padding...
Do you want a decentralized web with free speech support?
I believe it is crucial, but I don't really see it happening ...
Do you want a decentralized web with free speech support?
Beyond the fact that we live in a world of Russia and China, ...
Do you want a decentralized web with free speech support?
Your "want" of having your information information the spread...
Your SSR is slow & your devtools are lying to you
Please beat offline-first ServiceWorker-cached application sh...
π ββοΈ Stop trying to learn RxJS
How do you make a lossy iterable for late binding that keeps...
Speed up Windows for heavy development.
my PC is too noob for Linux π€
Leaving electron.js to the past.
Even if absolutely no runtime state is shared between consume...
You don't need "if"
The performance in the linked case is worse. You just weren't...
You don't need "if"
If you're so functional, just define your own Result type (or...
Oops, I Did It Again...I Made A Rust Web API And It Was Not That Difficult
I took the liberty of messing with this project. Please take ...
Oops, I Did It Again...I Made A Rust Web API And It Was Not That Difficult
Pls don't call "spawned tasks" "threads". Think of the childr...
1 line of code: How to remove all duplicates from an Array
Array.from goes through iterator protocol for Set and Map, so...
1 line of code: How to remove all duplicates from an Array
It's actually specced to preserve insertion order: developer....
A deep dive into ES6 Classes
I wish I could write like that without the performance impact.
β°οΈC# in 2022 β Will it die?
THE DUALITY OF MAN
β°οΈC# in 2022 β Will it die?
UnityScript (JS dialect) has been discontinued
Haskell Quicksort in JavaScript
I'm just assmad that Array.filter et al got added to the lang...
Haskell Quicksort in JavaScript
I'd love to see that too. I'd tongue-in-cheek say facebook.co...
Haskell Quicksort in JavaScript
And last but not least, see how competitive WASM is with JS, ...
Haskell Quicksort in JavaScript
I appreciate your readability concerns, but that article look...
Haskell Quicksort in JavaScript
JS and current devices are slow enough. Even methods like Arr...
Emulating "Private" Variables in JavaScript with Closures and Factory Functions
1. Uncaught SyntaxError: missing ) after argument li...
How and why you should do web development if you have ADHD
Psytrance instantly prevents me from doing intellectual labor...
Is Dev.to victim of its own success?
Not going to lie, I was hoping you'd put some personal brandi...
All the things you need to know about the GitHub Copilot !
GPT-3 can do a little bit of arithmetics by accident. There's...
Fun with Functional Programming!
A monad is... An endofunctor, T : X -> X A natural tran...
Scalable "star rating" without JS (and no SVG or image for the star)
Ah, so no dirty filth, basically. Ok, that makes sense.
Scalable "star rating" without JS (and no SVG or image for the star)
What did you mean when you said?: No hacky CSS code.
Simple Javascript Modules - Local Storage Module
I'm sorry, but this code makes no sense and is frankly confus...
DEV Pride & Alan Turing: The Father of Modern Computing
Okay, but what is dev.to's official stance on the circumstanc...
Changelog: Hidden Comments
I am like 100% certain that readers should be able to view th...
πͺ "#ComeAtMeBro" tag suggestion and π "filter by most comments" - two quick dev.to suggestions! π‘
Open to criticism by default, closed to criticism explicitly ...
πͺ "#ComeAtMeBro" tag suggestion and π "filter by most comments" - two quick dev.to suggestions! π‘
#OpenToCriticism and #AllCommentsWelcome are depressing names...
crypto.randomUUID is three times faster uuid.v4
It seems the faster crypto.randomUUID is, the slower uuid.js ...
SOLID: Liskov Substitution Principle
Bruuuh inheritance is scary lmao
SOLID: Liskov Substitution Principle
But what if you want to have an account type where you can wi...
SOLID: Liskov Substitution Principle
I just don't understand what we achieve by enforcing the With...
SOLID: Liskov Substitution Principle
These abstract classes sure sound like traits/interfaces.
Code Smell 66 - Shotgun Surgery
I was on web, with clean cache. It's fine now (still gists, b...
Delete node_modules like a Pro
I recommend github.com/tbillington/kondo instead. It's fast, ...
Code Smell 66 - Shotgun Surgery
For me, right now, both gists are linked to shotgun.php. I s...
Code Smell 65 - Variables Named After Types
Well, I mean... regex is the type. I get that this code won't...
5 neat JavaScript tips
And a lot of nodejs builtins come in proper promise versions ...
5 neat JavaScript tips
const user = { name: { first: "Akash", second: "Kava" } } co...
Stop Calling them βBugsβ
teleports behind you removes all asserts and logging statemen...
Stop Calling them βBugsβ
Yeah, it's pretty irresponsible. But how do we rename debug b...
Stop Calling them βBugsβ
Idk, just wanted to know your opinion, since you referenced i...
Stop Calling them βBugsβ
Do you also support the renaming of the master git branch tha...
Why your website should work without JavaScript.
Yes, most of the stuff on this non-application purely "busine...
Why your website should work without JavaScript.
"Make your site work without JS and use JS for progressive en...
Announcing Vite 2.0
Please name a single platform where profile verification help...
Why I don't need to clean up my desktop and downloads folder in macOS
My man living his daily life in the Recycle Bin
Never make your text container a flexbox container
It was wrapped in a <p> tag. The problem is they made t...
Never make your text container a flexbox container
It semantically doesn't make sense to make a container for so...
Announcing Vite 2.0
Wait, this is literally Evan :v
YouTua - Download Videos/Playlists in your preferred Format and Quality..
How is it different from the regular youtube-dl?
Daily Challenge #312 - Describe the Function
If we're talking IEEE754-like floats, there's also NaN :v N...
Daily Challenge #312 - Describe the Function
there's only x + 0 == x - 0 (== x) x * 1 == x / 1 (== x) 2...
Daily Challenge #312 - Describe the Function
JavaScript stupidly golfed: calc_type=(a,b,c)=&...
Daily Challenge #312 - Describe the Function
Can the first two numbers be negative? fractional? +/- inf? N...
Daily Challenge #311 - Connect the Letters
Rust A brute force approach, by recursing and trea...
Daily Challenge #310 - Boolean to String Conversion
Rust 1. return an owned String: form...
Why Axios Is Awesome (and how to get started with it)
It's nice, maybe for prototyping, but just writing a small wr...
Google Firebase Good or bad?
They literally have free tiers, and then then the pricing is ...
ROT13: awful answers only
Buffer.from('06608503303207606607203207806908203207807408307...
Code Smell 53 - Explicit Iteration
What other languages do you use?
Exceptions and Streams
Please annotate your code blocks with language to enable synt...
Code Smell 53 - Explicit Iteration
You want to use of with iterators, in is for string keys of ...
Code Smell 53 - Explicit Iteration
Yeah, unless they wanted to print keys (including inherited)...
Sleep function in javaScript
I usually write it as const sleep = ms => new Promise(r...
how to resume multiple commands on one command
Wow, what an amazing error! Good job, npm developers! It tell...
how to resume multiple commands on one command
lmao
how to resume multiple commands on one command
Since you clearly have npm and this is happening in a directo...
Stickers on your laptop?
A similar topic 2 years and 2 days ago: ...
What will be the result of following code?
Bad order of answers. "3" is ambiguous. error 4 3 would...
NodeJS Non-Blocking Processing
My "bad", it's a carryover from my other, simpler, comment. T...
Quick Poll
Rust Haskell Typescript Javascript
NodeJS Non-Blocking Processing
With rescheduling when empty, consider: const {log} = cons...
NodeJS Non-Blocking Processing
Any await point yields to the eventloop, much like using setI...
How I can extract words from strings using regular expressions?
Nah, you're good. But for correct treatment of strings, such...
How I can extract words from strings using regular expressions?
What language are you using? Javascript? Are you on the NodeJ...
How I can extract words from strings using regular expressions?
One possible RegEx that creates these matches is const re ...
How I can extract words from strings using regular expressions?
I updated my post, you were just too quick to reply :D What ...
How I can extract words from strings using regular expressions?
That looks like tokenisation, except It's strange that the ke...
Setting up git+ssh+gpg on Windows
I wonder what activated this feature for me, then. Perhaps it...
Daily Challenge #309 - Coffee Customization
Not gonna lie, struct Milk { fat: f32, } Enter ...
Daily Challenge #308 - Wave Sort
Sorting is O(n log n) - O(nΒ²) depending on if you allocate ad...
Daily Challenge #308 - Wave Sort
Rust use itertools::Itertools; fn wave(nums: &a...
Daily Challenge #306 - Largest Possible Product
Rust #![feature(array_windows)] pub fn adjacent...
Daily Challenge #305 - Remove Anchors from URLs
JavaScript const remove_url_anchor = url => ...
A First Look at MarkoJS
I totally missed the part that you work on Marko now. Does th...
A First Look at MarkoJS
Have you tried the "concise syntax" at all? It is kinda like ...
Change Azure Repos Default Branch
Perfect. Now what actually politically incorrect thing could ...
Daily Challenge #304 - Consecutive Letters
JavaScript Efficient (for small strings) ...
Firebase or MongoDB ?
Bruh.
Daily Challenge #300 - Username / Password Comparison
Rust #![feature(once_cell)] use aho_corasick::...
Firebase or MongoDB ?
Almost every technology is right for something. Without any d...
Is there a good temporary variable name that you use?
Then, in the style of my other answer: async function getA...
Is there a good temporary variable name that you use?
I wish it let me do while (token = res.newToken), but res goe...
Is there a good temporary variable name that you use?
I would avoid naming them, by doing the following: functio...
Is there a good temporary variable name that you use?
Do you use fooValueNextToken? or is there only ever one page ...
President Trumpβs Twitter accessed by security expert who guessed password "maga2020!"
I wouldn't be surprised, but I'd expect massive evidence.
President Trumpβs Twitter accessed by security expert who guessed password "maga2020!"
And blindly believing the claims that he got hacked (or that ...
Do you prefer subdomains or subdirectories?
subdirectory (path), because: Maintain HTTP2/HTTP3 connecti...
Daily Challenge #297 - Loneliest Character
RIP
Daily Challenge #297 - Loneliest Character
So first and last non-whitespace character are less likely to...
Write Fewer Media Queries With the Clamp() CSS Function
Where it really shines is if you do something like * { f...
Stop using frameworks and libraries
I can absolutely deny the value of institutional education.
Stop using frameworks and libraries
Horrible that the comment was deleted. Do you have it backed ...
Stop using frameworks and libraries
Learn Rust. It will be less insecure.
Stop using frameworks and libraries
This article is a lie! React has 157k stars!
Assassin β‘οΈ - An open source, free database for killing slow webpages
how to name a competing database
Stop Using React
HTML already has modularity and templating built in, if copy...
Stop Using React
Numbers correspond to those in the article: - Code splittin...
Why not dismantling capitalism alltogether?
Maybe delete it then :3
Google Chrome enables file system API ... Super Cool π
There's at least github.com/jimmywarting/StreamSave... (or fo...
So I decided to enter Web Dev
I get that it has many "components" that all change at the s...
So I decided to enter Web Dev
Why bootstrap at all? Why specifically moonjs? Why not solid...
So I decided to enter Web Dev
Would it be completely insane to suggest learning Javascrip...
Partial links are inaccessible
Coming back to it today, honestly it's not that bad. I think ...
Is Deno the future of JavaScript?
What do you mean?
Is Deno the future of JavaScript?
I think they mean that is syntactically/semantically looks li...
Partial links are inaccessible
Is this a good link? Peepee poopoo, as described in my arti...
Is Deno the future of JavaScript?
How can you make portable modules for web and deno with ES mo...
What keyboard do you use?
Definitely. This was before they used solderless switches, so...
You must read: Deno Style Guide.
Thank you, I updated the link. (was previously web.archive.or...
What keyboard do you use?
A plain, white Ergodox EZ Shine with sculpted/blank keys, but...
When Does It Make Sense to Use Docker?
Easier to do clean updates/uninstalls for smaller services. T...
Daily Challenge #293 - Name the Operations
What do we return for 1 1 1 and 2 2 4 ?
Top 10 Pieces of Advice for Becoming the Worst Developer Possible
Nothing wrong with the last one if you don't take over one da...
Where do you host server-side code?
Haha Mazda ^ high quality comment
fastget - ultra fast download files over HTTP(S)
For CLI tool written in Rust, see github.com/mattgathu/duma
Daily Challenge #289 - Manhattan Distance
Rust lol generics use core::ops::{Add, Sub}; fn ...
Daily Challenge #289 - Manhattan Distance
JavaScript const manhattan = ([x1, y1], [x2, y2]...
Daily Challenge #287 - 16+18=214
I wonder what the result with asm.js would be. There are some...
Today I Learned: BST Traversal
Could you plese write ```python for the last code block?
Daily Challenge #287 - 16+18=214
You already did the skimming, but you could also avoid string...
Daily Challenge #287 - 16+18=214
Rust (without stringification) fn euthanize(mut ...
Three Number Sum (2 Pointer) in Python
What is the definition of "unique triplets"? Are all the inp...
Daily Challenge #280 - Driving School
Rust pub fn cost(mut mins: usize) -> usize { ...
Daily Challenge #281 - Area or Perimeter
mov rcx, rsi imul rcx, rdi lea...
Daily Challenge #278 - Find all non-consecutive numbers
use core::iter::Enumerate; #[derive(Debug, PartialEq)] struct...
Daily Challenge #275 - Casino Chips
Rust fn solve(mut chips: [u64; 3]) -> u64 { ...
Daily Challenge #275 - Casino Chips
"constant time" in Javascript const solve = chip...
Daily Challenge #274 - Aerial Firefighting
2D plane xxYxx this is a 1D plane
Daily Challenge #273 - Remove Duplicates
javascript const solve = arr => { const val...
Daily Challenge #273 - Remove Duplicates
Epic, but also this relies on the array being sparse in the f...
Daily Challenge #273 - Remove Duplicates
Nope
Daily Challenge #273 - Remove Duplicates
(a => [...new Set(a)])([3, 4, 4, 3, 6, 3]) is [3, 4, 6...
Daily Challenge #272 - Printer Errors
how to count with javascript regex const perro =...
Daily Challenge #272 - Printer Errors
nodejs const perro = wurd => { let i = 0 ...
Daily Challenge #271 - Simulate Population Growth
If you're using generators, go wild :v const chain = (...fn...
Should DEV allow you to disable comments on your posts?
No An admin should delete all comments on this post and lock...
Design Github profile using README.md
Oh no, it's myspace
Daily Challenge #257 - Halving Sum
I like the word problem in the question, where decimals are m...
Daily Challenge #257 - Halving Sum
Does "until you reach a decimal" mean "until the result of in...
Daily Challenge #257 - Halving Sum
const half = n => n && half(n>>1) + n :v
Daily Challenge #254 - The Vowel Code
JavaScript normal (aka filthy coercion) const le...
JavaScript made it into space π
I knew that the "pilots" of the dragon cargo capsule are not ...
Daily Challenge #251 - Largest Number in a Sequence
Rust π the below code in a runnable playground ...
Daily Challenge #250 - Last Digit of a Large Number
Why is the outer a unordered_map and not a vector? It's conse...
Daily Challenge #250 - Last Digit of a Large Number
Doesn't produce correct answers for extremely high numbers du...
Daily Challenge #244 - Search for Letters
There's also String.prototype.includes const letters = "abc...
Daily Challenge #244 - Search for Letters
Rust yay fun with bitsets fn change(hay: &st...
Daily Challenge #243 - Redacted!
Rust Assuming that replacement with X is per chara...
Share Your Grant for the Web Hackathon Updates!
whackathon
Daily Challenge #237 - Delete Extra Occurrences
Javscript With the assumption that in a long array...
What's your favorite software idiom/aphorism?
We have iterators now, so it was trimmed
Daily Challenge #232 - Regex Pattern
Wow! How long are the strings you test against? I'd be intere...
Daily Challenge #232 - Regex Pattern
You did "string consists only of", not "string includes all o...
Daily Challenge #232 - Regex Pattern
// Javscript const regex_contains_all = chars =&...
ASK DEV: Who to follow on Twitter?π€
I take it all back, this thread is the most important thing...
and the second top voted question on StackOverflow is...
It might be faster, more precise, and you might already be ...
Adobe XD to Wordpress | Full Development Process for Making a Website
Rawr xD lol
ASK DEV: Who to follow on Twitter?π€
@notch, the only reason to have twitter. But whi...
βοΈπ JavaScript Visualized: Promises & Async/Await
GLORY TO THE CSS
Explain Async/Await Like I'm Five
Gotchas All throws in a function marked async ar...
Explain Async/Await Like I'm Five
A Promise is a "handle" to a value that may or may not alre...
Explain Async/Await Like I'm Five
There's a time and a place for everything.
Explain Apache Kafka like I'm five
It's a message broker/"database" (what an overloaded word). I...
The over-engineering trap
For me, it's the fear of overengineering that causes not-in...
Wanna learn a new language? Why not C++?
Conduct like this will not be tolerated. The police are on ...
Daily Challenge #227 - Android Lock Screen
Rust, precomputed here #[derive(Debug)] enum B...
Daily Challenge #227 - Android Lock Screen
Rust bruteforce solution #[derive(Copy, Clone)...
How do I authorize firebase JWT on BaaS (MongoDB stitch)?
Sounds like googleapis.com/robot/v1/metadata/x... is the J...
How do you frontend-backend monorepo?
There's also pnpm, whose workspaces hoist all node_modules an...
The Trouble with TypeScript
I'm concurrently building a backed service in TypeScript an...
ES2020: Summary of new features & examples π₯
creating a BigInt object: const value = new BigInt(500) Th...
βοΈπ JavaScript Visualized: Promises & Async/Await
I too wish to know this π
Tell us what your top unpopular tech opinion is π
That is a view of nothing but pure inertia. Imagine using l...
Tell us what your top unpopular tech opinion is π
That is a view of nothing but pure inertia. Imagine using l...
TypeOf Array is Gotcha!
The objectness is also very obvious in the fact that [] is ...
I think Dev.to needs a Pastel theme
Most dark themes are just pastel themes with low luminosity...
How do you manage your browser bookmarks?
Poorly, but I'm not sure I should dedicate even the littles...
Easy functional programming techniques in Rust for everyone
I see what he is trying to teach, and I understand the need...
Write a frontend application with Rust
If you need server rendering today, I recommend looking at gi...
Are you still happy with the decision to use TypeScript?
It definitely pays off, just don't obsess over it. For gree...
TypeOf Array is Gotcha!
The other gotcha is that it mutates the source array, and t...
Daily Challenge #225 - Square'n'Sum
Sum of squares is the default example of the Rayon crate: ...
Why I moved from BaaS to Appwrite (self-hosted Backend)
Butt what is it? For example, what database does it provide? ...
Daily Challenge #224 - Password Validator
Rust fn validize(pwd: &str) -> bool { ...
You can learn this? π€
No, how do you mean?
Which trackers do you use?
UPS tracker.
You can learn this? π€
No systematic approach has taught anyone anything as much as ...
What if CSS was imperative?
Things that are easy about CSS: Overall grammar...
Tell us what your top unpopular tech opinion is π
OG is an interesting usecase. I currently spend more of my ...
Tell us what your top unpopular tech opinion is π
Server side rendering of "private" pages is seriously overr...
Tell us what your top unpopular tech opinion is π
Which dependencies are you talking about? Just like github....
Tell us what your top unpopular tech opinion is π
Static hosting is cheaper and faster at every level and sca...
Tell us what your top unpopular tech opinion is π
github.com/Pauan/rust-dominator/ tho.
Pub/sub with PyZMQ: Part 2
Henlo. I've never used python, so this might be a stupid qu...
Daily Challenge #222 - Parse Bank Account Numbers
Rust. Who needs error checking when you can support multili...
Use Multi-Stage Docker Builds For Statically-Linked Rust Binaries
Ah, makes sense. I just don't see a lot of advantages to se...
Use Multi-Stage Docker Builds For Statically-Linked Rust Binaries
Why have an executable for a static site? Is it not static,...
Use Multi-Stage Docker Builds For Statically-Linked Rust Binaries
Afaik, scratch isn't "nothing", it just downloads nothing. ...
Washing your code: avoid conditions
I can never get over the shame of (products || []).map(. Wh...
Six donts of web app internationalization
Dumb quotes FTW
Washing your code: avoid loops
Object#fromEntries() to the rescue: const allNames = { ...
Washing your code: avoid loops
const tableData = props.item && props.item.deta...
Daily Challenge #212 - DNA to RNA
Roost fn dtoa(dna: &str) -> String { ...
Elm(γ¨Haskell)γ§γ·γΌγΆγΌζε·
It was strange for me that you used |> and not <| eve...
Don't follow RxJS Best Practices
pls fix Andrei Gatej ...
Don't follow RxJS Best Practices
Is this actually a good one? takeWhile(() => this.aliv...
Daily Challenge #206 - Pound Means Backspace
Just to show off
Daily Challenge #206 - Pound Means Backspace
Maybe match ch :v
#COVID2019 is setting up work from home quickly and effectively
Based corona-chan
You Can Do it in SQL, Stop Writing Extra Code for it
Serious question: Why are there 100 unique developers writi...
Daily Challenge #189 - Convert Number into Reversed Array
Whoops, looks like someone didn't specify the base of the n...
Daily Challenge #158 - RGB To Hex Conversion
Nodejs (not web): const rgb = (...args) => Buffer.f...
Recommended Terminal for Windows?
Wouldn't you say the two are basically opposites?
How to create a simple Honeypot to protect your Forms against Spammers
Relying on normal spam protection that doesn't impact usabi...
Daily Challenge #114 - Speed Control
const bepis = (s, x) => { let max = 0 const lasti = ...