Explain Codes LogoExplain Codes Logo

Best Articles — Page 354

How to handle errors with boto3?

python
error-handling
boto3
aws

Extracting extension from filename in Python

python
file-manipulation
pathlib
best-practices

Why are static variables considered evil?

java
static-variables
design-patterns
object-oriented

How to find event listeners on a DOM node in JavaScript or in debugging?

javascript
event-listeners
performance
debugging

Configure Flask dev server to be visible across the network

python
flask
networking
firewall

Sort array of objects by string property value

javascript
sorting
case-insensitive
dynamic-sort

Pandas: merge (join) two data frames on multiple columns

python
pandas
merge
dataframe

Display number with leading zeros

python
zero-padding
f-strings
string-formatting

Sqlite - replace part of a string

sql
string-manipulation
backup
custom-functions

Simple argparse example wanted: 1 argument, 3 results

python
argparse
command-line
input-validation

How can I increment a date by one day in Java?

java
date-increment
calendar
localdate

What causes error "No enclosing instance of type Foo is accessible" and how do I fix it?

java
inner-classes
static-nested-class
refactoring

Cannot change version of project facet Dynamic Web Module to 3.0?

html
web-module
maven
configuration

How do you use script variables in psql?

sql
variables
sql-injection
postgresql

Using DISTINCT and COUNT together in a MySQL Query

sql
distinct
count
subqueries

Junit 5: How to assert an exception is thrown?

java
exception-handling
junit
lambda

How do you check that a number is NaN in JavaScript?

javascript
nan
ecmascript
polyfill

How do I add a delay in a JavaScript loop?

javascript
settimeout
async-await
deferred-callbacks

How to subtract days from a plain Date?

javascript
date-manipulation
time-zones
momentjs

What do __init__ and self do in Python?

python
self
init
instance-variables