Last 250 Comments

re: Destructuring JavaScript objects like a pro
A very nice explanation 😁 Just because it makes my inner b...
re: Project Euler #5 - Finding the Smallest Multiple
@Eugene: I should have elaborated what I meant with 'the on...
re: Project Euler #5 - Finding the Smallest Multiple
I'm not really talking about premature optimization here (o...
re: Project Euler #5 - Finding the Smallest Multiple
😁
re: Project Euler #5 - Finding the Smallest Multiple
Or the more generic solution of that kind: google.com/searc...
re: What’s your excuse for bad code?
When certain situations invariably lead to bad code writing...
re: Project Euler #5 - Finding the Smallest Multiple
That's the only proper way to do it. A software developer's...
re: So you hate those whiteboard interviews, huh?
From my own experience, far more reliable information can b...
re: So you hate those whiteboard interviews, huh?
You make the (perhaps not very warranted) assumption that p...
re: Better if statement w/ ternary operator ? : 💻
A great many people mistake a decrease in number of charact...
re: Should code be like poetry?
Yeah, I somewhat doubt that most people read that quote and...
re: Should code be like poetry?
To me, relating 'good' code to poetry is just a fanciful wa...
re: Can Problem Solving (Skill) be Learned?
As @rhymes already noted, context makes a big difference. ...
re: Will Java Trend Towards Obscurity?
Indeed, and I don't really have the impression that Ruby is...
re: Will Java Trend Towards Obscurity?
Just to give some perspective, try adding Ruby or JavaScrip...
re: Is Jira an antipattern?
The reason Waterfall exists is because it adds structure to...
re: You Are Not A Software Developer
It all depends on whether they want a code monkey or softwa...
re: Optimize Your Programming Decisions for the 95%, Not the 5%
I tend to follow a modified form of YAGNI: use the simplest...
re: What software development skills only come with experience?
Creating code/architecture/software that doesn't readily co...
re: On GUI-shaming and a mountain of hot takes
There also the difference between 'feeling efficient' and '...
re: How to reverse a string in JavaScript
Regardless of the method used, it's best to also test it wi...
re: No More Foo, Bar, and Baz
Which is exactly what is done in algebra when 'x' has no me...
re: Compact or Verbose Codestyle?
Between those two choices, I'd definitely go for the second...
re: A funny rap song about the pains of pair programming
Yeah pair programming to do straightforward stuff, that app...
re: A funny rap song about the pains of pair programming
Nice mix, combining programming and music :). As to the to...
re: Let's make SpringBoot app start faster
A really interesting exposiion, thanks! Probably just the s...
re: Analytics will be generally available soon
The one thing that frontend and backend developers agree on...
re: Should Coding be Trivial?
Planning is necessary, but in the same way that you plan a ...
re: An example of why performance matters (with Python and Rust)
Indeed :-)
re: An example of why performance matters (with Python and Rust)
That's where 'fast enough' comes in: if it takes you a minu...
re: An example of why performance matters (with Python and Rust)
Excellent write-up :) It's nice to explorative programming ...
re: Do you have any bad “sunk cost fallacy” stories?
I completely agree :-) (added as a comment to a post calle...
re: Why is an IDE for Interpreted Languages "Overkill?"
So I like IDEs (or vim plugins if you prefer) for this I...
re: Bitmasks: A very esoteric (and impractical) way of managing booleans
Nice discussion! As I see it, bitmasks are a very importan...
re: why branching on git is wrong
You have an amazing Sonar + CI Server if it can give warnin...
re: Raise For The Rescue
Thanks for the response. My question wasn't really about Ja...
re: Raise For The Rescue
What do you think about mitigating/avoiding nested conditio...
re: Coding and What ?
It might seem self-contradictory, but when it comes to feel...
re: Remembering that "functions are objects" can help in writing more concise code
More often than not, we are obsessed with writing concise ...
re: Developer burnout is real
Indeed. Well said! Burnouts are not to be taken lightly an...
re: Java is too old, What should you learn in 2018?
If that's what you got from that purposely difficult senten...
re: Being a specialist vs. being a generalist as a developer
I think you switched/mismatched the titles of your sections...
re: Java is too old, What should you learn in 2018?
The only thing that really reduces cognitive load is less l...
re: Handling repetitive mistakes
Hear hear!
re: Java is too old, What should you learn in 2018?
Coming back to ‘language’ as a metaphor, Kotlin might allow...
re: Syntax Highlighting Is Useless
Coming up with good examples is hard. I completely agree...
re: Syntax Highlighting Is Useless
Isn't it simply a case of 'buggy syntax highlighting is use...
re: What is the difference between a library and a framework?
Rather than focus on definitions of what constitutes a 'lib...
re: Streams in Java
Hi Maxime, Note that the following is specific to JS. It m...
re: Streams in Java
Hi Daniel, I'd be glad to elaborate :). The main point of...
re: Streams in Java
When using streams, asking use of 'isPresent' is considered...
re: We Don't Need No Stinking map() or filter()
Before anyone would be inclinded to use reduce for everythi...
re: Does your website really need to be larger than Windows 95?
Yes, I think we're in agreement here, on both the topic and...
re: Does your website really need to be larger than Windows 95?
Yeah, I do agree on the general point, that we should also ...
re: Does your website really need to be larger than Windows 95?
Engineers also always deal with trade-offs in effort vs ROI...
re: Does your website really need to be larger than Windows 95?
That's the thing with abstractions: they have their costs, ...
re: Does your website really need to be larger than Windows 95?
Sure, those extra costs may be "rounding errors", but thos...
re: Does your website really need to be larger than Windows 95?
In a real-world situation where this would be needed (i.e. ...
re: How would you define high quality code?
In the case of cake, yes. How that translates to code is th...
re: The Curse of the IDE
I'm glad we started that conversation, because this is a ve...
re: How to Improve Your Development Experience
I do agree that there would be some generic benefit (i.e. a...
re: How to Improve Your Development Experience
I do see your point, but I don't consider writing without a...
re: How to Improve Your Development Experience
Good coders can work effectively without the fancy IDE too...
re: A c# dev starting a Java course
I can completely empathize with your need for IntelliSense....
re: Finally in Promises & Try/Catch
Good catch!
re: Let's talk about the new CoC for Linux
Despite 'political' being the word that most people bicker ...
re: Do tech companies care about your look?
Yes, that's a good question. I deliberately left that out o...
re: Do tech companies care about your look?
As with most things, it depends. Though in this case, it mo...
re: Clueless developer, How to get back
Plenty of languages and/or frameworks will be good enough f...
re: How do you feel about changing naming terms?
Not really applicative to the use-case of the main post, bu...
re: All of Android’s disadvantages are the only reasons it stays alive
Android is free. Android is perverted with bloatware and s...
re: We believe in open-source, so why can't everyone code?
There's an entire Disney movie about this topic
re: The fine line between a well designed system to an over engineered one
Typically there are several ways to approach a problem, wit...
re: What is your number 1 advice to newbies.
True in this context, as well as most others :-).
re: Can editor make you a better developer?
I never do. It's a significant contributing factor to human...
re: Can editor make you a better developer?
I'd argue that by spending less time configuring and learni...
re: What is your number 1 advice to newbies.
Writing good software isn't about fancy one-liners, it's ab...
re: I love to document my code. Am I doing it wrong?
When doing something fancy, adding an explanatory comment i...
re: JavaScript: In one sentence
That's not JavaScript, that's npm :).
re: Is Go an Object Oriented language?
Wikipedia seems to disagree: en.wikipedia.org/wiki/KISS_pri...
re: I love to document my code. Am I doing it wrong?
Expressive code tends to do well on explaining 'what' and s...
re: The State of Web Development
I'm pretty sure most definitions of 'web developer' include...
re: Why Git instead of SVN
Despite potentially being more complex, git tends to be mor...
re: JavaScript and manipulating the DOM
Fair enough, but that such differences in rendering typical...
re: JavaScript and manipulating the DOM
From the point of view of the user of the UI: because I can...
re: JavaScript and manipulating the DOM
There are a number of reasons why a browser request is pref...
re: What do you think of the future of Java?
I personally approach programming languages as just tools t...
re: A future without time zones
en.wikipedia.org/wiki/Stardate ;-)
re: The case against aliases
That's a reasonable argument, and used like that it's defin...
re: Using Aliases to Speed Up Your Git Workflow
My general opinion is very much 'use whatever works best fo...
re: The Ternary Operator vs The Conditional Operator WTF
I tend to refer to the usage of that operator as ‘an inline...
re: How do you stop the desire to learn too much?
Learning is fun, but it's also just a means to an end. If y...
re: Should browsers still allow users to disable JavaScript?
People are reading this question in (at least two) differen...
re: How would you define high quality code?
I'm going to use the #likeimfive approach here. If code is...
re: Ternary Operators In JavaScript
Only to a limited degree. The techniques tend to be quite d...
re: Ternary Operators In JavaScript
There is a big difference between concise code and dense co...
re: Ah, to be the Justin Bieber of Open Source
Don’t let imposter syndrome lie to you: dev.to is indeed fa...
re: A neat little trick with JavaScript's indexOf()
It's indeed interesting, no doubt about that :). It remind...
re: A neat little trick with JavaScript's indexOf()
It's a neat trick, but 'saving a few characters' is a notor...
re: What do you think about the ternary operator?
I'd tend to just method extract this, and use explicit retu...
re: My preferred merge strategy for Pull Requests
That would indeed make a big difference. The code that I'm ...
re: My preferred merge strategy for Pull Requests
Ah, good to know that that exists. Since you mention not ne...
re: My preferred merge strategy for Pull Requests
This has probably been asked a thousand times already, but ...
re: Early Returns in JavaScript
Using early returns can be beneficial or problematic depend...
re: What Defines a "Junior" Developer? 🤷🏻‍♀️
'Junior' and 'senior' tend to mean different things to diff...
re: Pagination in an API: page number vs start index
Either is fine, I'd say. The key thing is to be consistent....
re: Why You Shouldn't Use A Web Framework
Even low-level languages like Assembly are just frameworks ...
re: Remember why you love to code
For me, software development is not about languages, librar...
re: Clean, DRY, SOLID Spaghetti
You've essentially written down my mantra: make sure it's m...
re: Explain it to me like I'm five: .map, .reduce, & .filter edition
Think of it like a car factory, where stuff goes in and car...
re: The best book for learning backend design patterns
The exact same recommendation that I would have made :-). ...
re: Why do developers have the toughest interviews in the world?
Since there is the notion that software developers also nee...
re: This is the feeling of working with legacy code.
I once came across a developer that was able to write 'inst...
re: How much should you refactor names when domain terminology changes?
If it's a single (naming) change, then after a while it may...
re: Untangling Nested Code
Typically, when you're transforming an array into another a...
re: The value of technical leadership
I’ve found that even something as small as a simple naming ...
re: Common Myths and Misconceptions of Test Driven Development
The acronym TDD is used for either meaning, and a quick goo...
re: Lay Out Your Code Like You'd Lay Out Your House
Conventions are important A very important yet undervalu...
re: Importance of diagrams
I've also gotten the impression that diagrams are used far ...
re: Git commits: An Effective Style Guide
or split up the long commit into several short ones :)
re: PWA vs. native app
Notably, dev.to can be 'installed' (as a PWA) on Android, a...
re: Time to abandon pattern name suffixes?
Forest? ;-)
re: Time to abandon pattern name suffixes?
It's an interesting concept. At least in part, I/we already...
re: The joy of streams
I tend to write this in the following way, as it optimizes ...
re: What are the alternatives to unit tests?
Unit tests have the greatest ROI when either the feature ...
re: What advice will you give to developers who are just starting their careers?
The goal isn’t to be a rockstar developer, it’s to provide ...
re: Don't Drink Too Much Reactive Cool Aid
Apart from this being a great write-up, the very final para...
re: Four helpful guides for grasping the ever-elusive concept of git rebase
When I need to explain what git rebase is and why it's extr...
re: What is today's "goto"?
It gets so much more difficult to reason about your progra...
re: A better way to handle magic values and constants?
It sounds like an enum would be perfect for your use case: ...
re: Back to basics: Naming
As with most things, it depends: if the function is supp...
re: How to log out when using JWT
An alternative approach that I've experimented with (so cav...
re: When is code "too clever" / how do you think about readability/cognitive load?
The principle of least surprise is typically a good guideli...
re: How to get rid of the junior mentality
From the point of view of assessing other people (rather th...
re: How do you make time for your dev/tech projects?
Obviously you can't get a big chunk of work fully done, but...
re: How do you make time for your dev/tech projects?
An additional aspect of Chris James' very good suggestion, ...
re: Code consistency vs using new features
When adding or changing code of any kind, predictability an...
re: Explain Generics Like I'm Five
Given that this is an #explainlikeimfive post, abstracting ...
re: Project Euler #1 - Multiples of 3 and 5
In Java final int sum = IntStream.range(0, 1000) ...
re: Vim Is The Perfect IDE
Chocolate and movies are indeed a matter of taste, but prod...
re: Explain OAuth like I'm Five
There's a new kid in your class. You’re not sure if you can...
re: Explain Generics Like I'm Five
Everybody likes stories and adventures. You yourself like t...
re: How do I use .forEach on DOM Elements?
Although it's a very good point that you can use a for-loop...
re: How do you gain a deep understanding of your code?
Mental load is a scarce resource, so knowing 'just enough' ...
re: A simple tip for cleaner code
Please extract the middle part as a separate function and r...
re: A simple tip for cleaner code
It’s an incredibly important skill to be able to say someth...
re: if (!_if) what
I’m mostly referring to the fact that it’s a single versus ...
re: if (!_if) what
Well, the compiled code (if there is such a thing) would be...
re: It’s okay to ask questions
Something I try to encourage is that you/me/they ask feedba...
re: if (!_if) what
It could be passed as a(n optional) second parameter.
re: if (!_if) what
Very interesting and clear, thanks! I’d argue that the sec...
re: There's no "else if" in JS
Why not switch by default, just in case? ;-)
re: One assert per test - What is that about?
Yes indeed :). For context, I'm mostly talking about (fair...
re: One assert per test - What is that about?
I generally try to keep a (unit) test focused on ‘one conce...
re: hasOwnProperty considered harmful
In this regard, any idea how hasOwnPropery compares to Obje...
re: How would you convince your company to implement unit tests?
It’s a basic truth that (a) adding features and (b) being r...
re: What makes maintaining documentation difficult?
Only when working solely with primitive operators that cann...
re: What makes maintaining documentation difficult?
Code can't lie Riiiight :-)
re: Everything That's Not Tested Will Break
I think API tests might also deserve a place on that list. ...
re: objects? No... array, please!
Yes, that allows you to leverage the extra methods (i.e. po...
re: objects? No... array, please!
In the case of the DOM, you’re already working with objects...
re: objects? No... array, please!
Using arrays for everything will get you in the same place ...
re: Evergreen skills to use throughout your career?
Maintainability, practicality and business sense. All the r...
re: How do you model your projects?
Are you talking about UML? ;-p
re: Explain Meta Programming Like I'm Five
If programming were a story in a book, metaproprogramming w...
re: application.properties & Git
How do you start up your spring (boot?) app in development?...
re: Why I Deleted My IDE; and How It Changed My Life For the Better
Quite right. If you work with a great many languages, which...
re: Write a function that shows off something unique or interesting about the language you're using
Interesting. Is that possible via class definitions (class ...
re: Why I Deleted My IDE; and How It Changed My Life For the Better
Which IDE are we talking about? Because the things you ment...
re: NPM hot-takes and the pitfalls of trivialization
Definitely not to start a (reverse) war of the languages, b...
re: NPM hot-takes and the pitfalls of trivialization
The points you make are important ones with regard to using...
re: Standards Are Boring
I was referring to code that is as near to pseudo-code as i...
re: Standards Are Boring
Excellent post! The impact of 'boring' really is underestim...
re: How do you approach working with juniors working their first professional programming job?
I treat software development as a team activity, with plent...
re: How can I improve this while loop code snippet?
If you simply want the first instance of a certain characte...
re: Tooling - the orphan child of web development?
Ah, I wasn’t referring to lagging/stalling, but rather to a...
re: Tooling - the orphan child of web development?
A fairly frequent (though sometimes merely strongly implied...
re: var var = var().var.var()
Yes, there’s a big difference between brevity and maintaina...
re: A Major Announcement for the DEV Community
Most definitely, the internet is no longer a series of tube...
re: var var = var().var.var()
Your mileage may vary ...
re: Should we do away with junior/middleweight/senior?
I see those terms as useful, but not based on years of expe...
re: Web Features Have No Versioning System
Unfortunately, these kinds of proposed solutions inherently...
re: When to Call it Quits on a Project: Stepping Back and Taking a Break
The short answer here is: it's just "the library API" or "t...
re: When to Call it Quits on a Project: Stepping Back and Taking a Break
Yes, that'll also depend on who you're talking to/with. Do ...
re: When to Call it Quits on a Project: Stepping Back and Taking a Break
That's the library/framework API that you are talking about...
re: So you're stuck
Use And IDE
re: Next phase of separation of job titles in web development
Backend development tends to be quite different, but (depen...
re: I am a mediocre developer
Despite the title and your take on the issue, a great many ...
re: If you could start over from scratch, how would CSS work?
Off the top of my head: adding margins that are ignored bec...
re: If you could start over from scratch, how would CSS work?
The issue here is not character count, but predictability. ...
re: Why are you NOT worried about the robot apocalypse?
Robot apocalypse? Are we automating that too? Humans are g...
re: Which mainstream programming language has the ugliest syntax?
It guess it depends on whether you think inelegance is ugly...
re: Which mainstream programming language has the ugliest syntax?
Try debugging poetry. The syntactic vocabulary is far too l...
re: Which mainstream programming language has the ugliest syntax?
Some people find one-liners beautiful. I personally really ...
re: Which mainstream programming language has the ugliest syntax?
There's a reason why we don't all prefer our Shakespeare or...
re: Self Documenting code isn't
Most arguments against comments tend to implicitly assume t...
re: Is Coding an Art?
I'm describing (as specific aspect of) painting, which is g...
re: 6 Things I've learned teaching myself to code.
A nice list :-). With the first one "Be willing to throw a...
re: Don’t Use Design Patterns!
Well said. The most important use I've found for design pat...
re: Is Coding an Art?
Painting requires practiced motor skills, a good sense of h...
re: "Learn at least one new language every year" is bad advice
I think the post itself rather translates to “Learn a new l...
re: What little things make you happy while coding?
I see some kind of VCS as a baseline project requirement, a...
re: What little things make you happy while coding?
Yeah I saw that as included in the previous, since I don't ...
re: What little things make you happy while coding?
Deleting code. (The context here being: working with probl...
re: Excerpts from ‘The Clean Coder'
That's good to hear. I did read the rest of your comment ...
re: Excerpts from ‘The Clean Coder'
"Personally i think that the 20 hours a week are manageable...
re: Old Dogs, New Tricks for a Software Developer
Whenever I come across some variation of “real developers u...
re: Important: do not overuse !important
If there’s one thing that frontenders and backenders agree ...
re: 3 Phrases That Will Kill Your Agile Team
Another awful one is "Can't you just ... ?"
re: What language features/concepts do insiders of the language love and outsiders hate?
Java: the inherent verbosity. Or as I see it: the increased...
re: You are not your Framework
So basically, it's all relative ... which was the point I w...
re: You are not your Framework
Ever considered that PHP is an Assembly framework? (For a g...
re: What kind of programmer are you?
I understand that, and that’s an admirable goal to have. I...
re: What kind of programmer are you?
It seems like that scale has a very specific type of progra...
re: Agile is like pigeons dancing on one leg
Which, somewhat ironically, is also the primary lesson that...
re: Practicing YAGNI
I get what you're saying, but imaging myriad possible scena...
re: Practicing YAGNI
I tend to follow a different but related approach: I try to...
re: Help, these objects have the same shape but don't share an interface!
If you’ll forgive my crossing from C# into Java (where I fe...
re: How I learned the most about using XML with PHP
Yes, if the end goal is to gain experience and understandin...
re: How I learned the most about using XML with PHP
More important than the cost of time, is whether the end re...
re: Why isn't software secure by default?
Perhaps an important difference in interpretation here is t...
re: Why isn't software secure by default?
No, it isn't. And that's because security (that's worth any...
re: RESTful without HTTP Verbs
And the somewhat related en.m.wikipedia.org/wiki/Not_invent...
re: Why isn't software secure by default?
I think the answer can be given through an analogy: why are...
re: RESTful without HTTP Verbs
That isn't a REST API, by any measure of the word. It's a c...
re: If you could write a programming language how would it be?
Also in the Java world, people with strong views on DI tend...
re: Programming robs us of our spaces. Dynamicland could give them back.
I suppose I do get/have it better than most, though it's a ...
re: If you could write a programming language how would it be?
In Java with Spring, you already get this via @Autowired/@I...
re: Programming robs us of our spaces. Dynamicland could give them back.
It seems like a very nice technology, but if you truly see ...
re: Single-Responsibility Principle done right
I've always found it counterintuitive that a square should ...
re: Explain idempotency (in REST) like I'm Five
Very nice metaphor. Perhaps a small addition: You can go to...
re: No More Foo, Bar, and Baz
They are indeed related, and they serve the same purpose as...
re: How to make a real copy of a JavaScript Array with Objects (without a reference)
That's a clean way to improve the depths of the copy, but i...
re: How to make a real copy of a JavaScript Array with Objects (without a reference)
That will work as a 'shallow copy' (in a different meaning ...
re: Implementation Inheritance Is Evil
Felis silvestris is a specific gene pool, Canis familiaris ...
re: Implementation Inheritance Is Evil
I would advise not relying too much on the metaphor of biol...
re: When working from home, how do you turn off at the end of the day?
Given that the ‘separate space’ approach is impractical for...
re: Interview Question: A two-player card game
I’d expect an interviewee to (hopefully) recognize that OOP...
re: Code snippets or nah?
It’s rather important to note that different people here un...
re: Programmers that can't type shall be shunned and treated with disdain.
Like others have already mentioned, I don’t believe the spe...
re: 10 Principles of a Good Code Review
I know I keep using that word, but good code and good code ...
re: Encapsulate state and expose behavior when writing object-oriented code
Keep in mind that the ultimate goal here is to have code th...
re: short-circuits && clean code
That kind of code is 'clever code'. Clever code is only go...
re: Best way to copy an object in JavaScript?
Wouldn't 'object.c === undefined' be true for both the firs...
re: Help me improve my unit tests
Fair enough. Within the context of a training exercise that...
loading...