Explain Codes LogoExplain Codes Logo

Best Articles

Writing a Python list of lists to a CSV file

python
csv-writing
pandas
data-structures

Write / add data in JSON file using Node.js

javascript
file-handling
error-handling
asynchronous-operations

Wrap text in `` tag

html
responsive-design
table-layout
word-break

Wrapping text inside input type="text" element HTML/CSS

html
responsive-design
css
javascript

Word-wrap in an HTML table

html
responsive-design
word-wrap
css-tricks

With ng-bind-html-unsafe removed, how do I inject HTML?

javascript
angularjs
html-injection
security-best-practices

With a browser, how do I know which decimal separator the operating system uses?

javascript
cross-browser-compatibility
locale-preferences
decimal-separator

Window.location.href and window.open() methods in JavaScript

javascript
window-location-href
window-open-methods
browser-history

Window is not defined in Next.js React app

javascript
window-access
next-js
ssr

Why would one declare a Java interface method as abstract?

java
best-practices
java-8
singleton

Why would an Enum implement an Interface?

java
strategy-pattern
enum-implementation
interface-implementation

Why there is no ConcurrentHashSet against ConcurrentHashMap

java
concurrency
collections
best-practices

Why should I use Hamcrest matcher and assertThat() instead of traditional assertXXX() methods?

java
test-development
assertions
error-handling

Why should I use Deque over Stack?

java
performance
best-practices
collections

Why is using onClick() in HTML a bad practice?

html
event-delegation
unobtrusive-javascript
accessibility

Why is useState not triggering re-render?

javascript
react-state-management
functional-updates
immutability

Why is translateY(-50%) needed to center an element which is at top: 50%?

html
responsive-design
css-positioning
centering-strategies

Why is the result of ('b'+'a'+ + 'a' + 'a').toLowerCase() 'banana'?

javascript
type-coercion
operator-precedence
unary-plus

Why is there no logical XOR?

javascript
logical-operators
bitwise-xor
short-circuiting

Why is the first element always blank in my Rails multi-select, using an embedded array?

javascript
form-submissions
rails-behavior
validation-filter