/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

cukic.co
| | andreabergia.com

Error handling is a fundamental aspect of programming. Unless you are writing hello world, you will need to handle errors in your code. In this post, I will discuss a bit the most common approaches used by various programming languages. Return error codes This is one of the most ancient strategies - if a function can fail, it can simply return an error code - often a negative number, or null.
3.8 parsecs

Travel
| |
| | www.foonathan.net

Just like regular function parameters, template parameters can also have default parameters. For class templates, this behaves mostly just like default function arguments: if you pass fewer template arguments than required, default template arguments are used to fill the remaining places. However, for function templates, it gets more complicated as template parameters for functions can be deduced by the normal function arguments. This leads to some interesting side-effects. In particular, default argumen...
2.2 parsecs

Travel
| |
| | www.fluentcpp.com

Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type.
3.0 parsecs

Travel
| |
| | ponyfoo.com

[AI summary] The article explains that ES6 classes are syntactic sugar built on top of JavaScript's prototype-based inheritance system, demonstrating construction, static methods, and inheritance with a tutorial on creating a Tesla class.
16.7 parsecs

Travel
|