249 karma · joined April 28, 2019
C++ is object oriented not because it has compile time support for polymorphism or any of that other bad programming practice, but because classes have code sections that live with them, whether on the stack or in the heap, that can operate only on memory belonging to that instance of the class.
Object oriented programming is a coding style and choice. Some languages make it a first class part of the language design. It is purposefully not part of C.
However you can do OOP like things in C: a popular paradigm is to pass around pointers to structs that (should) live in the heap, and to have a number of functions which work on these structs. This is very similar in practice and mental modelling to OOP as users of C++ might know it, but is distinct in that no code ever lives in the stack or heap, and no code is restricted from operating on any of the program memory.
I also think there were good reasons the author's linters were left as optional, and its probably not because everyone thought they were great ideas.
Once his advisors realized the reality in , they begged to get back into the TPP at the original terms, but that ship had sailed. [https://www.ft.com/content/bc65dd72-3f2d-11e8-b7e0-52972418f...]
Nothing trump did China wise ever made up for this disastrous failure, and all of his tariffs hurt Americans even more than they bothered China.
The ACA is actually a wealth transfer from the young to the old, like social security, because the young pay much more than their portion of healthcare costs, while the old have a ceiling on their healthcare costs.
Whether this is good policy is for the think tanks and politicians, but after the ACA it is not true that health insurance discriminates against older Americans.
Running sudo checkinstall after building with make does several things: 1. “Installs,” the compilation product 2. Packages it into a .deb that makes it easy to install anywhere 3. Allows you to use dpkg to uninstall a compiled project, e.g. “sudo apt-get uninstall ffmpeg-v4.5-source-aarch64-github” assuming the latter is what you named your package
Obviously this isn’t an end all be all, but is already saving me a lot of time
I worked with someone who had been the navigator in a growler, and he complained that they would always get lower scores for their landings while the f-18 pilots would auto land and get full marks
Mind if I send you an email as well?
Our house growing up was full of cable segments, superconductors, lasers, and microscopes. I remember one day he brought home a $100,000 microscope that had been thrown away, which I proceeded to use to look at banal things like leaves and insects, but was designed to look at the ends of cut fibers.
Anyway, its incredible to me how much these cables have transformed the world, and how invisible it is to all of us. Imagine if trans-continental communication relied on satellites? The global internet we have today would be much more isolated, with fiefdoms based on proximity.
For those interested in a fiber science story:
He once was asked to calculate the rate of seawater diffusion into glass, which he and the team found ridiculous, but I suppose it was unknown if water could soak into glass in an appreciable way over long periods of time. (Water is an important impurity to try and control)
How would you measure such a thing? There's no good way to increase the rate of diffusion of water into glass, but what you can do is make fiber with excess water in the core, and heat the fiber while measuring the diffusion of water out of the core into the outer portions of the fiber.
Then simple rate relations imply the rate of diffusion at sea floor conditions.
I believe the result was that you would see a 1% increase in the water concentration in the fiber over a period of 10,000 years. So his instinct, that it does not matter, was incredibly correct.
I hope nobody else has ever had to repeat such a measurement!
On another note, US anti-air capabilities are already far behind the S-400. I understand we don’t have an immediate use case ourselves, but the lack of a credible AA system pushes potential partners like India and Turkey to fight with us for the right to buy the S-400.
I suspect this is the case; I used to really enjoy the FT but think the spark has gone since the Nikkei acquisition.
Just because something is different does not make it horrible. I actually rather like /. and think many others do as well.
A shift of both demand and supply, resulting in increased prices, is one way inflation can happen.
What is important in CPI inflation are the prices consumers pay.
How that fits into bigger picture money supply * money velocity is a different conversation
I cannot think of a resolution to this, but think the 3 day compromise is a fair start.
There are many, many more thieves than stalkers, but stalkers can do arguably much more harm per incident.
You do not have to use these features if you do not want to.
C++ is very powerful, and has an amazing world of libraries available, but sometimes I feel like it is at least two languages at the same time.
For example, one benefit of using C++ over C is writing C style programs with modern libraries and convenient containers in the STL, but you quickly learn that C style programming isn't supported across the board, and hitting that wall can be jarring and unexpected (Looking at you openCV - just try to allocate space for a struct containing a cv::Mat)