« first day (4071 days earlier)      last day (863 days later) » 

5:21 AM
Did have a weird interview where the candidate was more familiar with Rust and than C++. Made me feel old.
Its almost 2020 and we don't got no C++22
 
 
1 hour later…
7:03 AM
Has anyone else ever tried monitor beneath table setup?
 
8:04 AM
I have bought a few too many sub standard goods from online places, I am annoyed.
Two of them worked once, then never again.
 
 
2 hours later…
9:48 AM
@Mikhail Do you think Rust has the potential to bury C++?
 
Rust alone? No way.
It might take a bite into it. But if you're already taking the bullet on switching a language then there's so many options out there nowadays. There's nothing about Rust that handily beats all alternatives
 
So, assuming that you know both languages well, in which situations would you pick C++ over Rust?
 
when I need to interface with a lot of C or C++ libraries
 
So, if C++ were not so ingrained in the industry, there would be no reason to use it over Rust?
 
I don't know about "no reason". Having a stable code-base that you don't need to update every few months because the language evolved underneath might be another reason.
 
10:01 AM
Oh this is interesting. I never used Rust so I have no idea how it works. Is it like Java, where old code stops working or does not work as expected?
 
Which Java code stopped working?
The JVM has really been stable for backwards compatibility, with maybe the exception of some libraries
 
Unless I am mistaken, deprecated features eventually get removed
Is this the case for Rust? Can a program I wrote years ago stop working / compiling ?
 
10:43 AM
I don't know. I know they introduced their "epoch" system to try and deal with language changes. But I've seen people recommend non-stable stuff in that community all the time, because "everyone uses that".

Not sure what they do about libraries
 
 
1 hour later…
11:54 AM
Oops, was wiping keyboard ...
 
 
6 hours later…
6:22 PM
@fredoverflow Hey I am new here and I find your videos interesting. I just noticed that you use using std::string instead of using namespace std;, but then you use std::cout. I was wondering, why not use using namespace std;?
 
I do not understand what begin and end would be if you were not using the namespace std. The compiler would guess report.begin()?
 
for most arguments it would still find std::begin because of argument dependant lookup
 
Then the compiler would not know begin and end and would complain about undeclared identifiers, as it should.
 
Ah! I understand now. You got a completely different error than was expected.
 
6:30 PM
@PeterT Oh, so vector iterator minus begin would still find std::begin?
@MangaD Yeah, the error was "You can't subtract a function from an iterator".
 
I think I'm missing context. I was just thinking of using begin(x) versus x.begin()
 
Also, you say in this last video that you cannot return an array, but what about std::array?
 
You can return std::arrays just fine, I just don't like them :D
 
Oh, why?
 
You need(ed?) to initialize them with {{ ... }} instead of { ... } for example, because it's a struct containing an array, and both need braces.
3021
Q: Why is "using namespace std;" considered bad practice?

akbiggsI've been told by others that writing using namespace std; in code is wrong, and that I should use std::cout and std::cin directly instead. Why is using namespace std; considered a bad practice? Is it inefficient or does it risk declaring ambiguous variables (variables that share the same name a...

 
6:33 PM
Oh, that was true! I think that was fixed with C++14.
 
Then I should probably get over it and use std::array from now on... can't really think of a reason not to.
 
@MangaD I would always choose C++ because 1) C++ is faster to write and maintain due to lack of pedantic checks 2) better template support 3) better library support (and less dumb stuff like poorly performing hash maps that are always randomized) . Note #3 doesn't say much about the language
 
Those are interesting arguments. I do not know much about Rust, but I am glad that there are valid reasons to choose C++ over Rust.
About note 3, do you mean the standard library or libraries in general?
 
The debate seems to be heated
 
Just learn both and see what you like better.
 
the real tragedy with rust was that mozilla wanted a borrow checker but instead implemented a new language :-/
we could have gotten a better C++ static analysis but instead got ecosystem fragmentation
the other tragedy with rust is that I find most advocates haven't done much C++
 
...So we should invent a third language that combines the strengths of C++ and Rust? Got it!
 
My advice is to just code in French
 
7:00 PM
Bonjour monde!
 
Bonjour, mon chéri
 
I think they contain alcohol.
 
7:18 PM
Mon Chéri is an internationally known brand name of the >>> Italian <<< Ferrero
ಠ_ಠ
also
For the American market Mon Chéri was actually filled with hazelnuts and did not contain liqueur
tragique
 
nwp
7:49 PM
Americans have taste, who would have known.
 
How truly tyranical is the US government? Can't get toys in your chocolate, can't get liquer in your mon cheri, literally 1984
 
8:14 PM
@MangaD The RWR crowd is very passionate... almost fanatically so. To the point they ignore issue with the language
@Mikhail tax reasons
distributing liquor in the US requires a federal license and in many states would require selling only in liquor stores
so if you want greater market presence you need to not include any alcohol
 
 
1 hour later…
9:21 PM
Forgive my ignorance, but what does RWR stand for?
 
@Mikhail So they actually made it edible for the American market :o
 
 
2 hours later…
11:45 PM
@MangaD Rewrite in rust
 

« first day (4071 days earlier)      last day (863 days later) »