David Walsh
22  novembre     14h57
GraphQL Editor The Journey from Initial Release to Version 5.0
Tomek Poniatowicz    From the very beginning of our adventure with GraphQL, we were impressed by how great its community is. The amount of content, libraries and great tools generated by GraphQL users amazed us from the very start. The more time we spent working with GraphQL the more things we saw that could be...
08  novembre     01h50
Array.prototype.at
David Walsh    Working with arrays is an essential skill in any programming language, especially JavaScript, as we continue to rely on external data APIs. JavaScript has added methods like find and findIndex recently, but one syntax I love from languages like Python is retrieving values by negative indexes. When...
03  novembre     15h01
Fast, Accurate Geolocation Data with IPWHOIS.io (Sponsored)
David Walsh    In the world of marketing and content targeting, having accurate geolocation data can be the difference between a thriving enterprise and a floundering business. Accurate data is everything, especially in the targeted marketing. When you need trustworthy geolocation data, IPWHOIS.io is a great...
24  octobre     21h25
Command Line trash
David Walsh    One of the first commands you learn when experimenting with command line is rm, the utility for deleting files and directories. Deletion is a core computer UI operation but operating systems use a Trash paradigm, where files are stored before truly deleted. With the rm utility, however, files are...
10  octobre     17h42
Terminate Process on a Port from Command Line
David Walsh    Once a week I have to deal with a zombie process or try to start a process that’s already running on its designated port. In most cases I use macOS’s Activity Monitor to kill the process, which is time-consuming. What if we could just kill a process on a given port from command line? Well, [&] The...
04  octobre     08h08
CSS accent-color
David Walsh    For better or worse, form fields have been somewhat difficult to style with CSS. Form control display is dependent upon device, operating system, and browser, so you can imagine the difficulty in making styling easy. We have slowly been given some controls over form control display, as evidenced by...
30  septembre     01h47
How to Create a UUID in JavaScript
David Walsh    The UUID identifier has been used in programming since the days a baby-faced David Walsh became a professional software engineer. My first exposure to UUIDs was via a ColdFusion app I inherited and & the less we say about that the better. In any event, I was recently surprised to see that...
17  septembre     15h12
AggregateError
David Walsh    One of the big themes of the web these days is concurrency, which leads to accomplishing tasks asynchronously. In doing so, the possibility of multiple errors can occur. Instead of providing a generic error, optimally you’d provide a wealth of error information. TheAggregateError error lets...
27  août     16h29
jq for JSON
David Walsh    I old enough to remember when we thought XML was going to change the programming world&then JSON saved us from that hell. Parsing and querying JSON data is fundamental task we’ve all coded for, but sometimes I just want to get some data locally with minimal fuss. I just learned of a really awesome...
23  août     14h00
React usePrevious Hook
David Walsh    Hooks are essential for the functional component pattern in React. One frequent logic comparison with class components was comparing a previous prop value with a current prop value via lifecycle methods. So what’s an easy pattern for duplicating previous value comparisons in functional components?...
09  août     16h19
Set a Default Node Version with nvm
David Walsh    As I’ve shown you in the past, nvm an excellent utility for switching between Node.js versions. Whether your host machine or CI, building and testing your apps on different Node versions is a necessity. I’ve recently found a few nvm commands that I found really useful during local development. To...
03  août     02h03
onInput Event
David Walsh    Coding HTML forms has been painful my entire career. Form controls look different between operating systems and browsers, coding client side and server side validation is a nightmare, and inevitably you forget something somewhere along the line. Some behaviors don’t act the way you’d hope, like...
19  juillet     12h41
Dark Mode in One Line of Code
David Walsh    Dark mode has seemingly become the desired visual mode for websites and mobile apps alike. Dark mode is easier on the eyes, especially for those like me who like to burn the midnight oil by coding and reading tutorials. Unfortunately not all websites offer dark mode, so it’s up to me to remedy the...
09  juillet     02h18
Fix Seeing 0 in Your JSX Code
David Walsh    The early days of the web felt like the wild west when it came to coding practices just make it work. Then we became enlightened to better practices, separating HTML from CSS and JavaScript. Then came React and JSX, where we combine JavaScript, HTML, and even CSS with Styled Components what an...
28  juin     11h18
How to Upload a File via SSH and Command Line
David Walsh    My preference for daily work is usually GUI applications, like Visual Studio Code for text editing and Cyberduck for remote file server management. I’m also a huge fan of automation, so I do try to learn the command line equivalents of UI functions. My latest desire was wanting to know how to...
21  juin     13h52
Always Show Arrows for Number Input
David Walsh    While I enjoy small details that make user interfaces more elegant, I also believe that less is more, especially when it comes to native behavior. One native behavior I dislike is that input type number elements only show the increment and decrement arrows when the input is focused. It’s a...
14  juin     14h55
Gather Feedback Using the Amazing UserWell (Sponsored)
David Walsh    Most websites and mobile apps collect all sorts of data to try to gain insights into what users are doing, not doing, and to gain insight into what users may want. Those metrics are useful but there’s a more valuable way to get information: direct feedback from users. Userwell is an awesome service...
10  juin     02h07
JavaScript Numeric Separators
David Walsh    Writing good code is important writing code that’s easily human readable is a next level skill. It’s not often that APIs are introduced whose seemingly only useful function is making code more readable, but let me introduce you to JavaScript numeric separators: an API that lets developers use...
03  juin     22h33
How to Restart a BAT file on Windows at an Interval
David Walsh    I recently wrote a .bat script on Windows to mine Ethereum when I’m not using my gaming PC to frag noobs. I have a friend who also tries to mine cryptocurrencies but their machines have AMD processors; every once in a while, the processor and the mining executable start fighting and all mining...
31  mai     11h38
CSS :is
David Walsh    There are scores of developers who hate CSS; don’t get it, don’t want to get it, etc. Most of that is either down to inefficiencies within the language or misunderstanding of how to properly construct a website structure. I mostly love CSS but there are some parts of the language that I always...