Message from @Maw

Discord ID: 463483272190492693


2018-07-01 20:43:52 UTC  

clang-tidy/format are great

2018-07-01 23:55:25 UTC  

That method, `std::ios_base::sync_with_stdio()`, controls whether the standard stream objects `cin`, `cout`, `cerr`, `clog`, `wcin`, `wcout`, `wcerr`, `wclog` are synchronized with `stdin`, `stdout`, `stderr`.

2018-07-01 23:56:25 UTC  

If you turn synchronization off, you might get better performance in `cin`, `cout`, etc.

2018-07-02 00:00:44 UTC  

If you're just using the standard library, don't worry about `using namespace std;`.

2018-07-02 00:02:51 UTC  

But, if you're teaching someone C++, you don't want them to learn bad habits.

2018-07-02 00:03:56 UTC  

So yes, `using std::cout;` is a more controlled way to do it.

2018-07-02 00:57:59 UTC  

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

2018-07-02 01:05:36 UTC  

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.

2018-07-02 01:10:42 UTC  

```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";
}```

2018-07-02 01:11:38 UTC  

This is an example of a justified use of `using namespace std;`.

2018-07-02 01:13:42 UTC  

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;
...
```

2018-07-02 02:51:07 UTC  

Yeah, but what you're taught is usually shortcuts that aren't always used in production.

2018-07-02 02:51:34 UTC  

There are many style guides out there that would castrate you for not following if you're working with a team for software design.

2018-07-02 02:52:34 UTC  

There is a reason you refactor codebases more than you actually implement more functionality.

2018-07-02 06:55:27 UTC  

those eyes...

2018-07-02 21:29:06 UTC  

mfw using split on visual studio

2018-07-02 23:14:14 UTC  

Or the standard layout. I don't need like 3 output windows, repo, and project directories on startup. pls.

2018-07-02 23:15:22 UTC  

I'll only use VS for large projects I actually need intellesense.

2018-07-02 23:15:28 UTC  

Otherwise atom.

2018-07-02 23:17:03 UTC  

Most stuff I do doesn't need a massive IDE though.

2018-07-02 23:17:58 UTC  

@Deleted User Ironically, I just got done today working on the largest Excel spreadsheet I've personally ever made.

2018-07-02 23:18:29 UTC  

why?

2018-07-02 23:20:13 UTC  

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

2018-07-02 23:23:03 UTC  

It's a lot of writing formulas to calculate percent change when reducing electricity usage in certain areas.

2018-07-02 23:46:39 UTC  

@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.

https://cdn.discordapp.com/attachments/423219052849397773/463490723086467072/Capture.PNG

2018-07-02 23:51:50 UTC  

@meratrix are the formulas in **google sheets** the same as excel

2018-07-02 23:55:45 UTC  

I believe so.

2018-07-03 01:35:08 UTC  

Why do you ask @M4Gunner ?

2018-07-03 01:42:34 UTC  

because i havent used excel in a long time

2018-07-03 01:43:30 UTC  

Ooh

2018-07-04 00:41:43 UTC  

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.

2018-07-04 00:42:50 UTC  

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.

2018-07-04 01:50:05 UTC  

and then you have merge conflicts.

2018-07-04 01:50:10 UTC  

and they respond with: ???

2018-07-04 01:50:15 UTC  

"rebase"

2018-07-04 01:50:17 UTC  

"???"

2018-07-04 02:35:06 UTC  

`git reset --hard`

2018-07-04 02:35:35 UTC  

That's why I use mercurial.

2018-07-04 03:13:12 UTC  

I had to fix a mercurial server about a year ago that had destroyed every single repository on it after an update

2018-07-04 03:13:46 UTC  

I mean I've had messed up git repos but this was next level