Explain Codes LogoExplain Codes Logo

Best Articles — Page 6

What is the purpose of flush() in Java streams?

java
buffering
io-performance
best-practices

What is the proper way to comment functions in Python?

python
docstrings
best-practices
python-standards

What is the most efficient way of finding all the factors of a number in Python?

python
micro-optimization
generators
performance-tuning

What is the maven-shade-plugin used for, and why would you want to relocate Java packages?

java
maven-plugin
dependency-management
uber-jar

What is the JavaScript version of sleep()?

javascript
async-await
event-loop
non-blocking

What is the JavaScript equivalent of var_dump or print_r in PHP?

javascript
debugging
console-log
json-stringify

What is the Java ?: operator called and what does it do?

java
ternary-operator
java-8
best-practices

What is the Java equivalent for LINQ?

java
streaming
lambda-expressions
reactive-programming

What is the inverse function to XOR?

java
xor-algorithms
bit-manipulation
problem-solving

What is the explicit promise construction antipattern and how do I avoid it?

javascript
promise-engineering
async-await
callback-handling

What is the ellipsis (...) for in this method signature?

java
varargs
method-signature
java-8

What is the difference between window, screen, and document in JavaScript?

javascript
event-listeners
dom-manipulation
viewport

What is the difference between up-casting and down-casting with respect to class variable

java
casting
instanceof
polymorphism

What is the difference between Unidirectional and Bidirectional JPA and Hibernate associations?

java
hibernate
jpa
associations

What is the difference between Swing and AWT?

java
gui-frameworks
swing-vs-awt
java-gui

What is the difference between Python's list methods append and extend?

python
list-methods
append-vs-extend
python-lists

What is the difference between localStorage, sessionStorage, session and cookies?

html
client-side-storage
localstorage
cookies

What is the difference between Jupyter Notebook and JupyterLab?

python
jupyterlab
jupyter-notebook
data-science

What is the difference between .js and .mjs files?

javascript
es-modules
commonjs
module-system

What is the difference between field, variable, attribute, and property in Java POJOs?

java
encapsulation
pojos
java-objects