#error-handling

[ follow ]
#concurrency
CodeProject
5 days ago
JavaScript

Handling Multithreading in Java with Completable Future

CompletableFuture simplifies asynchronous, non-blocking programming in Java, allowing better error handling and combination of multiple futures. [ more ]
Hackernoon
1 year ago
JavaScript

The Top 25 Golang Interview Questions That'll Make You Question Your Life Choices | HackerNoon

Golang offers unique and efficient features that cater to both beginners and seasoned programmers, making it a popular choice in modern programming. [ more ]
CodeProject
5 days ago
JavaScript

Handling Multithreading in Java with Completable Future

CompletableFuture simplifies asynchronous, non-blocking programming in Java, allowing better error handling and combination of multiple futures. [ more ]
Hackernoon
1 year ago
JavaScript

The Top 25 Golang Interview Questions That'll Make You Question Your Life Choices | HackerNoon

Golang offers unique and efficient features that cater to both beginners and seasoned programmers, making it a popular choice in modern programming. [ more ]
moreconcurrency
#debugging
Hackernoon
3 years ago
JavaScript

Architectural Principles of Error Handling in Ruby | HackerNoon

Error handling is essential for software stability and requires developers to understand various exceptions and their causes. [ more ]
LogRocket Blog
3 weeks ago
Angular

Hydration visualization in Angular 18 using debugging tools - LogRocket Blog

Investing in debugging resources is key for improving error-fixing efficiency during application development. [ more ]
Hackernoon
3 years ago
JavaScript

Architectural Principles of Error Handling in Ruby | HackerNoon

Error handling is essential for software stability and requires developers to understand various exceptions and their causes. [ more ]
LogRocket Blog
3 weeks ago
Angular

Hydration visualization in Angular 18 using debugging tools - LogRocket Blog

Investing in debugging resources is key for improving error-fixing efficiency during application development. [ more ]
moredebugging
Foalts
3 weeks ago
JavaScript

Version 4.5 release notes | FoalTS

Foal version 4.5 improves asynchronous task handling and error logging, enhancing user experience and developer efficiency. [ more ]
#scala
Alvinalexander
3 weeks ago
JavaScript

Sequence: Writing map To Work As A Single Generator (Scala 3 Video)

The `Sequence` class requires a `map` method to work with `for/yield` transformations. [ more ]
Alvinalexander
3 weeks ago
JavaScript

for Expressions Are Better Than getOrElse (Scala 3 Video)

For expressions in Scala offer a safer alternative to getOrElse calls in handling optional values. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO 2: From flatMap To for Expressions (Scala 3 Video)

Wrap non-failing computations in ZIO.succeed in functional programming using Scala. [ more ]
Alvinalexander
1 month ago
JavaScript

Functional Error Handling (FEH) | Video: Free Introduction to Functional Programming Course

Use Scala's error-handling data types like Option, Try, or Either to handle potential errors in functions. [ more ]
Alvinalexander
1 month ago
JavaScript

JIT: Using Option and Try in for-Expressions | Video: Free Introduction to Functional Programming Course

Understanding how Option, Try, and Either types work in Scala for expressions is essential for error handling and result manipulation. [ more ]
Alvinalexander
4 months ago
Scala

Scala Either type: How to get the value out of an Either

Recommended approaches to extract value from Scala Either: match, fold, getOrElse.
Happy Path Programming: focusing on success case and letting failure case take care of itself. [ more ]
Alvinalexander
3 weeks ago
JavaScript

Sequence: Writing map To Work As A Single Generator (Scala 3 Video)

The `Sequence` class requires a `map` method to work with `for/yield` transformations. [ more ]
Alvinalexander
3 weeks ago
JavaScript

for Expressions Are Better Than getOrElse (Scala 3 Video)

For expressions in Scala offer a safer alternative to getOrElse calls in handling optional values. [ more ]
Alvinalexander
3 weeks ago
JavaScript

ZIO 2: From flatMap To for Expressions (Scala 3 Video)

Wrap non-failing computations in ZIO.succeed in functional programming using Scala. [ more ]
Alvinalexander
1 month ago
JavaScript

Functional Error Handling (FEH) | Video: Free Introduction to Functional Programming Course

Use Scala's error-handling data types like Option, Try, or Either to handle potential errors in functions. [ more ]
Alvinalexander
1 month ago
JavaScript

JIT: Using Option and Try in for-Expressions | Video: Free Introduction to Functional Programming Course

Understanding how Option, Try, and Either types work in Scala for expressions is essential for error handling and result manipulation. [ more ]
Alvinalexander
4 months ago
Scala

Scala Either type: How to get the value out of an Either

Recommended approaches to extract value from Scala Either: match, fold, getOrElse.
Happy Path Programming: focusing on success case and letting failure case take care of itself. [ more ]
morescala
#functional-programming
Alvinalexander
1 month ago
JavaScript

Bonus: The Mindset of a Functional Programmer | Video: Free Introduction to Functional Programming Course

FP mindset emphasizes immutable variables, data structures, pure functions, and expressive error handling using types like ZIO and Cats Effect. [ more ]
Alvinalexander
4 months ago
Scala

ZIO 2: Processing ZIO command line arguments

Scala 3 and ZIO 2 example demonstrates processing command-line arguments in a ZIO 2 application. [ more ]
Alvinalexander
2 months ago
JavaScript

ZIO 2: Passing a ZLayer value to an application, getting a return value, and handling possible errors

Demonstrates passing a value to ZIO application using ZLayer, handling errors with foldZIO, and different ways to write run value. [ more ]
Alvinalexander
1 month ago
JavaScript

Bonus: The Mindset of a Functional Programmer | Video: Free Introduction to Functional Programming Course

FP mindset emphasizes immutable variables, data structures, pure functions, and expressive error handling using types like ZIO and Cats Effect. [ more ]
Alvinalexander
4 months ago
Scala

ZIO 2: Processing ZIO command line arguments

Scala 3 and ZIO 2 example demonstrates processing command-line arguments in a ZIO 2 application. [ more ]
Alvinalexander
2 months ago
JavaScript

ZIO 2: Passing a ZLayer value to an application, getting a return value, and handling possible errors

Demonstrates passing a value to ZIO application using ZLayer, handling errors with foldZIO, and different ways to write run value. [ more ]
morefunctional-programming
Alvinalexander
1 month ago
JavaScript

App 2: Using Either Instead of Try | Video: Free Introduction to Functional Programming Course

Replace Try with Either instances in the Database class for error handling [ more ]
#asynchronous-programming
Simplilearn.com
9 months ago
JavaScript

What Is promise.all in JavaScript? An Ultimate Guide

Promise.all() in JavaScript waits for all promises to settle, returns a single promise with results in order, and rejects if any promise rejects. [ more ]
Alvinalexander
4 months ago
JavaScript

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered. [ more ]
InfoWorld
4 months ago
JavaScript

5 ways to use JavaScript promises

Promises are key for asynchronous code. Simple to create, essential for managing results. Learning to use them enhances programming capabilities. [ more ]
Simplilearn.com
9 months ago
JavaScript

What Is promise.all in JavaScript? An Ultimate Guide

Promise.all() in JavaScript waits for all promises to settle, returns a single promise with results in order, and rejects if any promise rejects. [ more ]
Alvinalexander
4 months ago
JavaScript

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered. [ more ]
InfoWorld
4 months ago
JavaScript

5 ways to use JavaScript promises

Promises are key for asynchronous code. Simple to create, essential for managing results. Learning to use them enhances programming capabilities. [ more ]
moreasynchronous-programming
Alvinalexander
3 months ago
JavaScript

Consulting: Working on greenfield projects and cleaning up messes

Working on consulting projects sometimes involves cleaning up messy codebases and implementing effective error handling strategies. [ more ]
CodeProject
4 months ago
JavaScript

OpenAI Dall-E- Client

Interacting with OpenAI image generation endpoint using VB.NET to create and display images locally without requiring Python or NodeJS. [ more ]
Medium
4 months ago
JavaScript

4 Easy Ways To Find Your JavaScript String Length

A for loop can find string length in JavaScript.
Consider bytes for internationalization & encoding needs.
Handle undefined strings to prevent exceptions.
String length in JavaScript may not reflect Unicode characters accurately. [ more ]
Inverse
4 months ago
Artificial intelligence

7 of the Most Popular AI Chatbots, Ranked From Worst to Best

AI assistants market is expanding rapidly with various new contenders like Copilot, ChatGPT, and Claude. Companies are focused on converting research to products. [ more ]
#zio
Alvinalexander
4 months ago
JavaScript

ZIO 2: Solution to "ZIO.cond not working" (code not running)

Understanding how ZIO.cond works is crucial for proper error handling in ZIO applications. [ more ]
Alvinalexander
2 months ago
JavaScript

ZIO 2 Example: Print values after a random delay (and the ZIO error channel)

ZIO example highlights random delays and error handling. [ more ]
Alvinalexander
4 months ago
JavaScript

ZIO 2: Solution to "ZIO.cond not working" (code not running)

Understanding how ZIO.cond works is crucial for proper error handling in ZIO applications. [ more ]
Alvinalexander
2 months ago
JavaScript

ZIO 2 Example: Print values after a random delay (and the ZIO error channel)

ZIO example highlights random delays and error handling. [ more ]
morezio
#reliability
Medium
4 months ago
DevOps

How to Retry Cron Jobs with Cron To Go

Setting up retries for cron jobs using Cron To Go ensures reliability and smooth operations during unexpected errors. [ more ]
CodeProject
6 months ago
JavaScript

Error Handling in the Practical Type System (PTS)

Error-handling is often neglected in software development due to the perception of being less enjoyable and postponed for later.
Good error-handling is crucial for reliable, robust, and user-friendly software despite programmers' aversion towards it. [ more ]
Medium
4 months ago
DevOps

How to Retry Cron Jobs with Cron To Go

Setting up retries for cron jobs using Cron To Go ensures reliability and smooth operations during unexpected errors. [ more ]
CodeProject
6 months ago
JavaScript

Error Handling in the Practical Type System (PTS)

Error-handling is often neglected in software development due to the perception of being less enjoyable and postponed for later.
Good error-handling is crucial for reliable, robust, and user-friendly software despite programmers' aversion towards it. [ more ]
morereliability
SoftwareMill
4 months ago
Scala

Safe direct-style Scala: Ox 0.1.0 released | SoftwareMill

Ox project 0.1.0 release offers safe direct-style concurrency and resiliency for Scala on the JVM. [ more ]
Kilian Valkhof | Front-end & user experience developer
4 months ago
JavaScript

The problem with new URL(), and how URL.parse() fixes that | Kilian Valkhof

URL.parse() with URL.canParse() allows for better error handling and readability compared to new URL() construction. [ more ]
#python-programming
Realpython
4 months ago
Python

Using raise for Effective Exceptions - Real Python

Learning how to effectively raise exceptions in Python is crucial for handling errors and developing robust programs. [ more ]
TechBeamers
7 months ago
Python

IndexError: List Index Out of Range in Python

An 'IndexError: list index out of range' in Python typically occurs when you're trying to access an index in a list that does not exist.
The primary reasons for an IndexError in Python typically revolve around attempting to access an index that does not exist in the given list. [ more ]
Realpython
4 months ago
Python

Using raise for Effective Exceptions - Real Python

Learning how to effectively raise exceptions in Python is crucial for handling errors and developing robust programs. [ more ]
TechBeamers
7 months ago
Python

IndexError: List Index Out of Range in Python

An 'IndexError: list index out of range' in Python typically occurs when you're trying to access an index in a list that does not exist.
The primary reasons for an IndexError in Python typically revolve around attempting to access an index that does not exist in the given list. [ more ]
morepython-programming
#sqlite
Medium
6 months ago
Data science

BUILDING A REST API WITH GO AND SQLITE(PART 2)

Implementing CRUD operations for a Blog API with Go and SQLite.
Introducing error handling and validation to ensure API functionality. [ more ]
Medium
6 months ago
Web development

BUILDING A REST API WITH GO AND SQLITE(PART 2)

Implementing CRUD operations in Go with SQLite
Introducing error handling and validation for API functionality [ more ]
Medium
6 months ago
Data science

BUILDING A REST API WITH GO AND SQLITE(PART 2)

Implementing CRUD operations for a Blog API with Go and SQLite.
Introducing error handling and validation to ensure API functionality. [ more ]
Medium
6 months ago
Web development

BUILDING A REST API WITH GO AND SQLITE(PART 2)

Implementing CRUD operations in Go with SQLite
Introducing error handling and validation for API functionality [ more ]
moresqlite
Alvinalexander
5 months ago
Java

Java socket timeout: How to set the timeout on a Java socket

Set Java socket timeout using socket.setSoTimeout method for a non-zero timeout period
The timeout must be greater than 0; zero means infinite timeout [ more ]
#javascript
Medium
5 months ago
JavaScript

JavaScript Default Parameters: Unleash Function Flexibility

Default parameters in JavaScript allow setting predefined values for function parameters, enhancing flexibility and avoiding undefined values.
Using default parameters can efficiently handle situations like setting themes, handling null values, and incorporating object destructuring for better function behavior. [ more ]
CodeProject
5 months ago
JavaScript

.Net core razor pages (MVC) SignalR client error message "connection disconnected with error 'websocket is not in the Open state'" handling.

Placing SignalR client side code outside the @section Scripts {} can resolve 'websocket is not in the Open state' error.
The recommended approach is to place JavaScript code in the <head> or end of <body> section to avoid interference with other scripts. [ more ]
Medium
5 months ago
JavaScript

JavaScript Default Parameters: Unleash Function Flexibility

Default parameters in JavaScript allow setting predefined values for function parameters, enhancing flexibility and avoiding undefined values.
Using default parameters can efficiently handle situations like setting themes, handling null values, and incorporating object destructuring for better function behavior. [ more ]
CodeProject
5 months ago
JavaScript

.Net core razor pages (MVC) SignalR client error message "connection disconnected with error 'websocket is not in the Open state'" handling.

Placing SignalR client side code outside the @section Scripts {} can resolve 'websocket is not in the Open state' error.
The recommended approach is to place JavaScript code in the <head> or end of <body> section to avoid interference with other scripts. [ more ]
morejavascript
Paddy3118
5 months ago
Python

Finding a sub-list within a list, in Python

Using list.index can simplify the search algorithm for finding a sub-list.
Implementing try-except blocks is necessary when using list.index to handle errors. [ more ]
GitHub
6 months ago
JavaScript

GitHub - unadlib/mutability: A JavaScript library for transactional mutable updates

Transactional updates ensure errors prevent partial data corruption.
Mutability library supports transactional mutable updates. [ more ]
Partial function is very useful
Medium
8 months ago
Scala

Functional Pills # 15- Partial Functions

Partial functions are functions that are not defined for all inputs.
Partial functions can be used to handle specific cases and avoid errors. [ more ]
JS-Tutorials
8 months ago
Node JS

Solved "Cannot find module 'fs/promises'" in Node.js

The error message "Cannot find module 'fs/promises'" can be ambiguous, particularly in relation to the filesystem (fs) module promises in more modern Node.js versions.
There are several causes for this error, including outdated Node.js versions, outdated npm packages, and incorrect import statements. [ more ]
#error handling
Sitepoint
9 months ago
JavaScript

How to use the File System in Node.js - SitePoint

Node.js provides a comprehensive API for reading and writing files
Cross-platform considerations are important when working with files in Node.js
Error handling is crucial when reading and writing files [ more ]
Medium
9 months ago
Scala

Functional Pills #11 : Try-helping us in Scala's waters!

Try in Scala is a container that encapsulates computations, which may result in an error.
Try allows for elegant error handling by converting exceptions into Failure and providing fallback strategies.
Map, flatMap, and pattern matching are powerful tools for navigating and transforming Try results. [ more ]
Sitepoint
9 months ago
JavaScript

How to use the File System in Node.js - SitePoint

Node.js provides a comprehensive API for reading and writing files
Cross-platform considerations are important when working with files in Node.js
Error handling is crucial when reading and writing files [ more ]
Medium
9 months ago
Scala

Functional Pills #11 : Try-helping us in Scala's waters!

Try in Scala is a container that encapsulates computations, which may result in an error.
Try allows for elegant error handling by converting exceptions into Failure and providing fallback strategies.
Map, flatMap, and pattern matching are powerful tools for navigating and transforming Try results. [ more ]
moreerror handling
#sign-up-flow-design
Medium
3 months ago
UX design

5 Best Practices for the Sign-up Flow (with examples!)

Split sign-up flow if additional information is required. Use social login for quicker process. Offer password tips and error feedback. [ more ]
Medium
2 months ago
UX design

5 Best Practices for the Sign-up Flow (with examples!)

Split sign-up flow into steps for better completion rates, ask for essential information only, consider social logins for quicker process. [ more ]
Medium
3 months ago
UX design

5 Best Practices for the Sign-up Flow (with examples!)

Split sign-up flow into multiple steps for better user engagement and completion rates. [ more ]
Medium
3 months ago
UX design

5 Best Practices for the Sign-up Flow (with examples!)

Split sign-up flow if additional information is required. Use social login for quicker process. Offer password tips and error feedback. [ more ]
Medium
2 months ago
UX design

5 Best Practices for the Sign-up Flow (with examples!)

Split sign-up flow into steps for better completion rates, ask for essential information only, consider social logins for quicker process. [ more ]
Medium
3 months ago
UX design

5 Best Practices for the Sign-up Flow (with examples!)

Split sign-up flow into multiple steps for better user engagement and completion rates. [ more ]
moresign-up-flow-design
LogRocket Blog
1 month ago
JavaScript

Error handling in Rust: A comprehensive tutorial - LogRocket Blog

Proper error handling is crucial in Rust for reliable software development. [ more ]
CodeProject
2 months ago
JavaScript

We Should Eradicate the Empty String - Here's Why

Understanding the distinction between an empty string and null in programming is vital to avoid errors and ensure proper data validation. [ more ]
Pybites
2 months ago
JavaScript

Learn Python From Scratch: We Extended Our Newbie Bite Exercises From 25 To 50 - Pybites

Active engagement through coding exercises is vital for effective learning in Python. [ more ]
Marcin Wanago Blog - JavaScript, both frontend and backend
3 months ago
JavaScript

API with NestJS #152. SQL constraints with the Drizzle ORM

Constraints in SQL databases such as not-null, unique, and primary key play vital roles in maintaining data integrity. [ more ]
Simplilearn.com
2 years ago
JavaScript

Try Catch in Java - Exception handling (With Examples) | Simplilearn

Java exception handling is crucial for preventing abnormal program terminations and maintaining the robustness of Java applications. [ more ]
Simplilearn.com
2 years ago
JavaScript

PHP Include & Require : All about Include vs Require in PHP | Simplilearn

Using 'include' in PHP allows for reusing code across multiple pages efficiently. [ more ]
[ Load more ]