- [[...]] attribute
-
- [[using namespace : attribute_list]]
-
- [[noreturn]]
-
-
- std::exit/terminate/abort, throw, infinite loop
-
-
-
- never return to previous control flow, the next control flow never execute
-
- asm volatile (
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
#include <chrono> | |
#include <iostream> | |
#include <mutex> | |
#include <thread> | |
struct ExpensiveFoo | |
{ | |
ExpensiveFoo() | |
{ | |
std::cout << "ExpensiveFoo default constructor... "; |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
#ifndef STRING_CONSTANT_H | |
#define STRING_CONSTANT_H | |
#include <cstddef> | |
#include <stdexcept> | |
#include <string> | |
#include <type_traits> | |
#include <utility> |
from django.contrib.sites.models import Site | |
class Object(object): | |
def __init__(self, model, key): | |
self.model = model | |
self.key = key | |
def __call__(self, *args, **kwargs): | |
params = {} |
Update: 2023/11/30 Bruce Momjian's take on things: https://momjian.us/main/blogs/pgblog/2023.html#November_22_2023
Given a table...
CREATE TABLE foo (
id SERIAL PRIMARY KEY,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
...
);
I've been a MacPorts user for quite awhile now. There was nothing religious about the decision - on my first day of work I was handed a new Macbook Pro and proceeded to set up a development environment. Tried to, anyway. While I'd been an avid Mac user for most of my life I'd never actually used it for serious web development - I did some small work back in the 90's but that was the days of OS9 and it was all un-Unixy. Long story short: I was a newb at developing on OSX.
Being an Ubuntu user, I was pretty spoiled by apt-get
. After about three mintues of trying to compile stuff myself I marched back into my boss's office and asked if there was a package manager for OSX. He directed me to the Mac Ports website and I left extremely relieved. I think I ran across Homebrew at some point but I never explored it further.
For about three months this was satisfactory. MacPorts works well enough but it has a habit of annoying you at certain intersections. The biggest problem, though, was that the rest of the wo