|
Well, I can guess where the photographer's attention/focus was on
|
|
|
|
|
The 'Death Star Trench Run Memorial' protective goggles?
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
In our news here: Why Microsoft is going all-in on AI
That's easy to answer.
Artificial intelligence is the only remedy for natural stupidity.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
This is MS we are talking about: Artificial Stupidity, anyone?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
At least they try.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Oh, I find them very trying from time to time...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Choice: go something "artificial" vs. something "real,"
Answer: former easier to cover the mistakes.
... and based on their own past performance there will still be plenty to cover.
Sin tack ear lol
Pressing the "Any" key may be continuate
|
|
|
|
|
ehem[^] and... ehem ehem[^]
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
It is becoming apparent that the ease of personal survival is inversely proportional to the level of personal intellect. If we give man A.I. so it can make all of their decisions for them, man will no longer be able to think on his own and will become subservient to the A.I. and its controllers.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
CDP1802 wrote: Artificial intelligence is the only remedy for natural stupidity.
Sig'd!
Marc
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
CDP1802 wrote: Artificial intelligence is the only remedy for natural stupidity.
Better get going then!
|
|
|
|
|
So, as some of the longer term viewers may know, I used to be a C++ developer; way back in the mists of time. I loved C++ and then the new girl came to town and seduced me with her wiles. No longer would I put up with manual memory management, iterating over for statements when I could use the seductive foreach.
Well, I have recently started getting quite heavily back into C++ using the newer additions to the language such as auto and for (auto index : my_vector) as a foreach. The features that are available now are great and C++ really has matured. So much so that I'm using it to write some drone software. I'm a big fan of fluent interfaces so I thought I'd play around and see how they work in C++ to see if I still want to keep with the new C++ and damn it, it's so straightforward.
#pragma once
#include <librealsense/rs.hpp>
class RealSenseStream
{
public:
explicit RealSenseStream(rs::device* device)
{
this->device = device;
}
~RealSenseStream()
{
}
RealSenseStream &WithDepth(rs::preset preset)
{
device->enable_stream(rs::stream::depth, preset);
return *this;
}
RealSenseStream &WithColor(rs::preset preset)
{
device->enable_stream(rs::stream::color, preset);
return *this;
}
private:
rs::device* device;
};
This space for rent
|
|
|
|
|
An empty destructor is almost as scary as an empty catch block
I just hope that they will one day add reflection. It has been under consideration more than once, but never made it into the standard.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
What would you use it for?
|
|
|
|
|
Serialisation or deserialisation of objects. Loading the layout of a UI from XML in a handful of lines and getting an instance of the object tree sure beats constructing those objects in code.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
That empty destructor isn't actually empty - I just didn't post the contents. There's more going on in this class and I've just stripped it down for brevity.
This space for rent
|
|
|
|
|
Yes, sure. Any reason for not using constructor initializer? Such direct assignments are where they shine!
|
|
|
|
|
When debugging, I like to have all my eggs in one basket. A single destructor where everything is in one spot makes it harder to overlook something instead of when the initialisation is distributed all over the place.
For clarity and readability, I think there should be exactly one way of doing something. If not, choose one and stick to it. This way there are less surprises for those who look at your code for the first time.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
It is, but I'm not that worried about this at the moment. I will refactor later on, but right now I'm using this to log out the device status and options so while I'm locking this down I'm staying old school.
This space for rent
|
|
|
|
|
It's not a bad thing to keep classes as stateless as possible. So much less that has to be memory managed or made thread safe. An empty destructor would mean that the class is very safe in that respect, but it's not a good idea to try to reach this at all cost.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Glad to see you enjoy the new goodies. In my previous job, elephanting legacy forced us to stick with C++03.
for(auto index: my_vector) is cool.
for(const auto& index: my_vector) even more so!
And, today we do not have to use pointers in containers any more.
... such stuff as dreams are made on
|
|
|
|
|
C++98 a la VS6. In 2016.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Please forgive my curiosity. You have been in that place for quite some time (I think), do you ever consider a switch?
... such stuff as dreams are made on
|
|
|
|
|
Almost 5 years, 9 months as a (paid) intern, 3 years as apprentice and then finally hired for good.
I am considering a switch, for a number of reasosn, mostly for the low pay for the job I do but the working environment has its faults that are grating on my nerves after all this time. Its 4 years and a half that we have to upgrade to VS2008, I started using it but was forced every effing time to reimport all the changes in the VS6 project and fix the effing code because several things present and accepted in VS2008 fail under VS6. I stopped due to frustration.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Indeed, modern C++ ist an elegant language. It has one huge flaw though: It's legacy. I, for example, can write elegant code in modern C++, but several of my coworkers can't. Some even brush me off with "I've learned it like that in the 60s and I won't learn anything new". Some even treat the C++-compiler as a C-compiler and write plain C, bluntly ignoring all the wonders of std::string or array<t>. This makes me think that C++ still isn't ready for prime-time. The standard needs to deprecate all this legacy stuff and throw warnings all over the place if someone refuses to dig into the last 50 years of CS progression. If C++ starts doing that, I'll take it seriously. Until then, I'll stick to C# (unless I'm on a ressource-contrained embedded target).
|
|
|
|