Message from @meratrix
Discord ID: 463484783398486017
But, if you're teaching someone C++, you don't want them to learn bad habits.
So yes, `using std::cout;` is a more controlled way to do it.
I agree, when I was taught c++, we were told to have ```Using namespace std;``` and it took me a while to get out of the habit of it later
I say, never overlook possible excuses for a programmer to copy-paste shit. If it gets too verbose, you can be a good fraction of programmers just copy-pastes shit to avoid typing.
```cpp
void dump_debug_stats(const Data& d)
{
using namespace std;
...
clog << "Data Type: " << setw(4) << hex << uppercase << setfill('0') << d.type << "\n";
clog << "\tpayload: " << setw(12) << setfill(' ') << right << d.payload
<< "\ttimestamp:" << setw(20) << dec << d.timestamp << "\n";
}```
This is an example of a justified use of `using namespace std;`.
Because if you say "always use `using std::somename;`", you know what's going to happen. Some idiot will create one single header, `usingstd.h`, and fill it with
```cpp
using std::cout;
using std::cin;
using std::endl;
using std::sqrt;
using std::string;
using std::vector;
...
```
Yeah, but what you're taught is usually shortcuts that aren't always used in production.
There are many style guides out there that would castrate you for not following if you're working with a team for software design.
There is a reason you refactor codebases more than you actually implement more functionality.
those eyes...
mfw using split on visual studio
Or the standard layout. I don't need like 3 output windows, repo, and project directories on startup. pls.
I'll only use VS for large projects I actually need intellesense.
Otherwise atom.
Most stuff I do doesn't need a massive IDE though.
@Deleted User Ironically, I just got done today working on the largest Excel spreadsheet I've personally ever made.
why?
I was helping my mother who is the sustainability manager of our county, and they've basically thrust some of the light work their data scientist should be doing onto her. Her, being a 57 year old middle aged white woman, has no fucking clue what she's supposed to do. So I help her with that stuff. @Deleted User
It's a lot of writing formulas to calculate percent change when reducing electricity usage in certain areas.
@Deleted User @M4Gunner Here's an part of it. You can enter in a custom % reduction and it will calculate each row using the new percentage from that row and the other data from the table above, and the bottom table allows you to enter in a custom % reduction for each category individually. However, unfortunately, because of floating point error, it's not exact. Thus, if you enter in a 0% reduction, it actually calculates a 1% increase in the final column.
I believe so.
Why do you ask @M4Gunner ?
because i havent used excel in a long time
Ooh
Dealing with devs who ignore merge requests because they don't understand how to use github/gitlab is a surprisngly common thing now. "Oh here, I fixed this bug for you" and it just rots till the code base changes so much it can't be merged anymore and I delete it.
also if you disable the issue tracker and want me to do something like talk to you on Google Groups or some equally awful service I hope you get some sort of non-fatal but uncomfortable disease in your testicles.
and then you have merge conflicts.
and they respond with: ???
"rebase"
"???"
`git reset --hard`
That's why I use mercurial.
I had to fix a mercurial server about a year ago that had destroyed every single repository on it after an update
I mean I've had messed up git repos but this was next level
still better than f*ing SVN though seriously fuck SVN
Weird, I never seen that.
You have to go out of your way to fuck up a mercurial repo.
dude, the people who were using it were/are idiots