> For programs in C/C++ where exception handling can get messy and affects the performance
(which is the whole reason for using C/C++)
there's a decent reason to avoid exceptions and use return codes
Nowadays, performance is almost never a reason to avoid exceptions in C++.
The only exception (pun intended) I'm aware of is hard real-time applications
where people might die if a computation takes too long (in such applications, even malloc is banned).
> There's also a perfect reason for using return codes on actions where failure is common or expected,
and where a user will likely have a fall-back plan
Yes. Though more or less a matter of taste, the code can sometimes look simpler and clearer to me
when checking for common and expected failure return codes, rather than throwing and catching exceptions.
See also:
Real-time Computing References
- RAID (wikipedia) - redundant array of inexpensive/independent disks
- Cloud storage (wikipedia) - a model of computer data storage in which data, said to be on "the cloud", is stored remotely in logical pools and is accessible to users over a network, typically the Internet
- Arduino (wikipedia) - designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices
- Dongle (wikipedia) - a small piece of computer hardware that connects to a port on another device to provide it with additional functionality
- GPSd - gpsd is a service daemon that monitors one or more GPSes or AIS receivers attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer
Virtual Machines References
- Re^2: Dancer newbie question by NERDVANA (2024) - advises managing your own virtual machine on a cloud platform like Linode or Digital Ocean (notes that DigitalOcean also has the App service which deploys one of your GitHub repos directly into a VM for you)
- Re: An update (was: Re^2: Holding site variables) by afoken (2024) - advises Bod to consider using virtual machines for the development server; compares VMware, VirtualBox, Proxmox (Debian Linux, provides VMs and containers, open source); RAID, SATA SSDs v SMRs, UPS discussed too
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.