Message from @What Would Jack Conte Do?

Discord ID: 617926559407538176


2019-08-28 16:15:01 UTC  

@Tero it's Windows specifications

2019-08-28 16:15:03 UTC  

Or was

2019-08-28 16:15:04 UTC  

🤷

2019-08-28 16:15:23 UTC  

I don't think Microsoft knows how their stuff works anymore

2019-08-28 16:15:29 UTC  

```AppData\Roaming is designed for use in what I’ll call a corporate environment, though any widespread deployment of Windows in a large environment could be configured to make use of it.

 

In these scenarios the idea is that your Windows account isn’t an account on a specific machine, but rather an account in your company’s overall IT infrastructure or “Domain”. In theory, then, you could log in to any machine connected to your corporate network on which you have permission with your single corporate Windows account.

And when you did so, the data that applications had placed in AppData\Roaming would follow you to the machine you logged in on. It would “roam” to whatever machine you happened to use.

```

2019-08-28 16:16:37 UTC  

yes

2019-08-28 16:17:00 UTC  

but like, i would imagine the things you would want there would be things like browser profiles, extensions, things like this

2019-08-28 16:17:09 UTC  

i.e. app data, as it says

2019-08-28 16:17:13 UTC  

not program files

2019-08-28 16:21:42 UTC  

@Tero Blame windows

2019-08-28 16:21:56 UTC  

You need admin access to install there

2019-08-28 16:22:22 UTC  

kek

2019-08-28 16:22:25 UTC  

```One of the benefits of installing to Program Files is that is exactly where the user expects it to go. 
The biggest downside is that the user needs administrative privileges, which isn't always required by the program.```

2019-08-28 16:22:33 UTC  

Ain't nobody got time for that

2019-08-28 16:22:50 UTC  

i actually don't know why installing to program files requires admin

2019-08-28 16:22:55 UTC  

do things there have special privileges?

2019-08-28 16:23:29 UTC  

I know 20 year old electronics graduates that won't install an altium product if it pops up windows utc

2019-08-28 16:24:00 UTC  

lol

2019-08-28 21:14:46 UTC  

https://cdn.discordapp.com/attachments/423219052849397773/616380177923964948/39hico4n67j31.png

2019-09-02 03:39:21 UTC  

how do i avoid getting scope fucked in c++

2019-09-02 03:39:32 UTC  

if i have an if statement

2019-09-02 03:39:39 UTC  

to store a smaller or larger int

2019-09-02 03:40:27 UTC  

but then i want to use those variables globally

2019-09-02 04:00:59 UTC  

maybe extern keyword could help?

2019-09-02 04:01:09 UTC  

not sure, I've only done arduino C++, but that's how I usually do it

2019-09-02 05:00:23 UTC  

BJ's PPP has some prank questions, like it gives questions that require knowledge of scope and list sorting before it teaches you it

2019-09-02 14:32:23 UTC  

avoid global variables for most purposes

2019-09-02 15:47:50 UTC  

globals are fine as long as properly named and it has few setters (ideally, it's just set in one place, once)

2019-09-02 15:49:38 UTC  

having used threads a bit it's abundantly possible to make the kinds of errors people supposedly cause with globals by referencing an object or variable with multiple threads

2019-09-02 16:08:09 UTC  

`Although threads seem to be a small step from sequential computation, in fact, they represent a huge step. They discard the most essential and appealing properties of sequential computation: understandability, predictability, and determinism.`

2019-09-02 16:53:33 UTC  

(this is probably where functional fans come in and tell everyone about how having any shared state is bad)

2019-09-02 17:01:34 UTC  

https://cdn.discordapp.com/attachments/423219052849397773/618128396731416603/unknown.png

2019-09-10 03:54:10 UTC  

for some reason this program returns x as 25 million times its number

2019-09-10 03:54:12 UTC  

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
inline void keep_window_open(){ char ch; cin>>ch; }

//for some reason, the square function returns 25 million
int square(int x)
{
x +=x;
cout << x;
}

int main()
{
int i = 0;

cout << "Enter a value.\n\n";
cin >> i;
cout << square(i);
}

2019-09-10 04:02:20 UTC  

seeing all these double >> around are you sure you're not bitshifting something?

2019-09-10 04:02:32 UTC  

i don't actually know C++ though

2019-09-10 04:06:32 UTC  

@Tero that's how you print in c++

2019-09-10 04:06:37 UTC  

And take input

2019-09-10 04:06:48 UTC  

In C++ the '>>' and '<<' indicator data flows with iostream

2019-09-10 04:06:48 UTC  

ok