Our time and energy are precious, yet we often struggle to use them appropriately to avoid delaying certain responsibilities until they can no longer be delayed. Learning how to manage our attention effectively, and direct our energy on the things that matter the most, is key to ensuring productivity and efficiency, within the workplace and in our personal lives. After all, there’s only so much of both we can offer throughout a single day.
For the past year, I’ve been using a tool that endeavours to reduce the number of tasks requiring immediate attention. It instead recommends focussing on non-urgent…
VS Code allows its users to customise their environment as they please, but one customisation I like in particular is the ability to change the title bar’s background colour.
After hours of development, something eyecatching to easily differentiate between codebases is very much welcomed. What’s more, you can set different colours depending on the codebase or set a default for all of them.
Ever had to deal with a large dataset within your web application? Let’s say a call to your API returns thousands of items. You now want to render a scrollable list without pagination displaying each of those items. Rendering that many items would pollute the DOM and consume too much memory, thus degrading your app’s performance. Plus, remember, every time the DOM is updated, it needs to recalculate its layout based on any changes.
How to fix this? Enter virtual scrolling.
The above scenario can be tackled using virtual scrolling. Virtual scrolling reduces the number of items being rendered into…
The Massachusetts Institute of Technology (MIT) has recently released information about a potential game-changer in screening for COVID-19 asymptomatic patients.
So far during this pandemic, scientists have identified that there are individuals who show symptoms, and those who are infected but show no symptoms at all. These pose a substantial danger given they feel no need to stay at home, and rightly so, and thus potentially contaminating whoever they are in contact with.
Researches at MIT, however, have developed an artificial intelligence model that can detect the virus in asymptomatic individuals. After being fed with new recordings, the model correctly…
With react-bootstrap and useReducer()
I recently came across the use case for a modal in one of my personal projects — the usual ‘are you sure you want to block X user?’ I installed my package of choice, added an out of the box modal with the desired content and surely enough, I had a modal. The problem is that this wasn’t the only use case I would need it for within that same component. With that screen, I could also carry out other behaviours, such as seeking a user’s availability. I then also wanted modals to confirm the successful…
On WCAG guidelines, ARIA attributes, and testing frameworks.
Accessibility across web apps is key to ensure the inclusion of those living with disabilities. According to the WHO, around 15% of the global population lives with some form of disability, with at least 2.2 billion people having a visual impairment. The International Classification of Functioning, Disability and Health (ICF) defines disability as an umbrella term for impairments, activity limitations, and participation restrictions. That’s a considerable amount of the population struggling to smoothly navigate through a website. …
Has it been six months already?! It sure has. You know what that means: A new Laravel version is here — Laravel 8!
Laravel 8 was released two days ago with a bunch of useful updates I was excited to hear about. In this article, I’ll go over what’s changed. For full details visit the release note here.
Disclaimer: Laravel will continue to provide bug fixes for this version for the next six months and security fixes for the next year.
And to whom we are eternally grateful!
Debugging is a vital part of programming. A breakpoint — which by definition is an intentional stopping or pausing place in a program — is often key during the debugging process. They allow developers to gain insights into a program’s values during its execution — at which point said values may change to produce unexpected results upon completion. Having breakpoints means the execution will pause at different stages for the developer to inspect a certain value. …
The term is more literal than you think.
Safe to say all programmers are familiar with bugs. By definition, a bug in programming is described as:
An error, flaw or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways — Wikipedia.
Chances are you’ve played a part in unintentionally sneaking one into your code, or have debugged someone else’s to fix it. After all, a bug can be anything from an infinite loop to a division by zero to using an uninitialised variable! …
Programming isn’t always smooth sailing. According to Stripe’s survey conducted on over 1000 developers, on average about half of a developer’s week is spent on maintenance such as debugging, fixing bugs, or reworking existing code. For many of us still in junior positions, we’re encountering certain errors or problems for the very first time. Below are a few things I always aim to remind myself when working on my daily tasks to get me a little bit further when really struggling.
Timeboxing — something’s wrong with your code. You’ve gone round in circles, git reset —-hard
and started all over…
Web developer. Startup enthusiast. Coffee lover.