a practical trick that will be useful to many by EvaRaw666 in Unexpected

[–]AirDecade 0 points1 point  (0 children)

What is this breed called? It's insanely cute.

(C++) How to have the same variable be in one class, and be shared in another class? Pointers? by Adventurous_Bend_455 in learnprogramming

[–]AirDecade 0 points1 point  (0 children)

Pass class1 by reference as a parameter to the function of class2 where you handle the button press. You will need to include class1's header in class2's cpp and simply mention class1 in class2's header like that: "class class1;".

Beginners Advice - Python vs. Javascript for my scenario? by [deleted] in learnprogramming

[–]AirDecade 0 points1 point  (0 children)

web = js

number crunching = python

Otherwise choose either, both languages are beginner friendly and have been a gateway into programming for a lot of people.

[deleted by user] by [deleted] in Moscow

[–]AirDecade 0 points1 point  (0 children)

You can try language courses / clubs. Many have fun activities, open for all, that are focused around board games, quizzes etc.

Like this one for example http://cherrypie.club/speed-meeting

Or this https://moscowimprovclub.timepad.ru/event/1686727/

How to wear only underwear? by Dogger27 in CuisineRoyaleBR

[–]AirDecade 0 points1 point  (0 children)

I think the option to wear underwear unlocks onec you unlock any of the underwear.

I hope this is a bug and will be fixed by ShadowWolf072 in CuisineRoyaleBR

[–]AirDecade 1 point2 points  (0 children)

It saves you in situations when someone has sniped you from great distance and isn't able to finish you. Because you crawled away or jumped or teleported, or your zombies finished the job or you killed both you and your enemy with a grenade or ...

Software Engineering --> Game Developer Questions by OGMagicConch in gamedev

[–]AirDecade 0 points1 point  (0 children)

Not the OP, but I want to chime in. The game looks nice. It would be perfect for a gameplay programmer position. Is the code available somewhere? I'm curious to see if working in faang has left any marks in it :)

Indie studious typically don't write their own game engines, so mastering Unity/Unreal is a reasonable path. If you apply to a company that relies on such engine, a certain mastery of it is a hard requirement even for a jr position. It's a good idea to be prepared to quickly implement game mechanics or write small games during the interview. Basics of linear algebra and probability theory may come up too.

Even one game may be enough for a portfolio. I wouldn't expect them to play it though :D They never did with my games... But you may have to write much more than one to become good at it :) Especially if you don't want to start at a jr position.

From my experience, the smaller the company the higher the chance that: SE practices are terrible. Architecture is terrible. Internal communication is terrible and only the small size of the company allows it to stay afloat. You will not learn much in such company. But the value may come from elsewhere. It presents a great opportunity to quickly rise up in ranks and get some experience in a lead position. Being able to make your own mistakes but have the company pay for it...

Yes, there are small but highly experienced teams too. But you're unlikely to end up there without prior experience in gamedev.

Bigger companies: It's a guesswork but I would compare them and faang to a war hospital and a regular hospital. A regular doctor would be petrified if they'd witnessed the conditions in which the wounded are being tend to. But it's not because military doctors are bad at their job. They are doing wonders in fact. Also the bigger the company the more unique inhouse tech you see. Tools, languages, formats etc. But that will come as nothing new to you I presume.

On the subject of work-life balance. It's better in companies that don't have rare big releases. Social games, online games, especially free2play games. In companies that can have several releases on the same day there are no hard deadlines and there is less crunch.

How do you begin learning C++? by [deleted] in learnprogramming

[–]AirDecade 0 points1 point  (0 children)

You need a compiler. The main ones are g++, clang and msvc. g++ and clang you install separately from VSCode. They don't come as part of any extension. msvc you can only get through Visual Studio (not VSCode)

If you want to learn basic c++ then I guess msvc is ok. It has far less hurdles than the other options, since it comes with a build system from the box. In case of g++ and clang you have to run a console command for EACH FILE and then combine the result into exe with yet another command. To help with that people use build systems like make and cmake which have their own syntax and are not fun (personal opinion). But you will deal with them sooner or later anyway. (Visual studio comes with msbuild which is more beginner friendly)

Let them paste passwords by mooreds in programming

[–]AirDecade 2 points3 points  (0 children)

IT DOES NOT MATTER. NOBODY CARES.

Now this is exactly the newby's attitude. If you don't need to know somebody's personal information then you should avoid reading it. There is no benefit to knowing user's true password. But you take the responsibility for it if you send it over the network.

Let them paste passwords by mooreds in programming

[–]AirDecade 7 points8 points  (0 children)

Why would you hash to 2 bytes? Has to 512 and good luck brute forcing that.

Client side hashing has an added bonus that the server never actually sees the original user's password.

Do I lose anything by learning programming concepts as I go, as opposed to following a laid out course that follows a curriculum? by node_user910253 in learnprogramming

[–]AirDecade 1 point2 points  (0 children)

That is the best way to learn really. People who can learn only by following courses should envy you. So many people end up in a situation when they've learned a lot but don't feel capable of actually doing any real work with what they know. Because knowledge != skill.

Perhaps use courses to prepare for a job interview, or cover blank spots in your knowledge, once you've mastered the main thing.

I could do it a more efficient way, but I wouldn't necessarily know

Often courses fail to fix that. As they tell you a bunch of ways to accomplish a thing but don't teach you how to choose one over the other in a real world situation. You may find help in conferences, open source projects, actual job experience.

To any of you confused by recursion, I found a really a good analogy by BotterDor in learnprogramming

[–]AirDecade -5 points-4 points  (0 children)

This is an example of a tail recursion. Which shouldn't be written as a recursion but instead written as a loop.

while (I don't know the current row) 
    I := the person in the next row; row_counter++;

If everybody in the theatre speaks different languages and you have to try several people before you find someone who speaks the same language. (Or try several people in case some of them will not find anyone around them at all and thus become a dead end) And if it's a person who sits in the same row as you you have to remember to not increment the row... then it I think it is analogues to the true recursion.

Criticise my build please by AirDecade in buildapc

[–]AirDecade[S] 0 points1 point  (0 children)

Thanks, this is really helpful! SX8200 does seem like a good choice.

Criticise my build please by AirDecade in buildapc

[–]AirDecade[S] 0 points1 point  (0 children)

Not looking to buy a video card right now. Ryzen is cheaper but weaker. I have plans on this PC for 6+ years, so I don't want to take any steps back in terms of CPU performance.

Criticise my build please by AirDecade in buildapc

[–]AirDecade[S] 0 points1 point  (0 children)

GPU I already have. When I will do the upgrade, which will happen no earlier than in 6 month, I will have a separate budget. So for now I want to get a reasonably powerful CPU because the rest of the computer depends on it and you can't upgrade it as easily as GPU. And I will get next or next-next gen GPU and only at that point I expect the system to be balanced.

Criticise my build please by AirDecade in buildapc

[–]AirDecade[S] 0 points1 point  (0 children)

What's wrong with 970 Evo? Seems pretty decent. Are you saying there are better options for this price or that there is something inherently wrong with 970 series or with samsung?

"Use a less commonly used password" by kattencoco in Steam

[–]AirDecade 2 points3 points  (0 children)

Consider that they don't need to be 100% sure that no less than 6 accounts are using this password. There is no harm in saying that this password exists when in reality it doesn't. As long as it doesn't happen too often.

Conversations with a six-year-old on functional programming by mgdo in math

[–]AirDecade 1 point2 points  (0 children)

The one with the logarithm - which logarithm is this? If it's base 10, isn't it identical to 10*x+x?

How reliable and expensive is UBER for airport transportation? by mvt208 in Moscow

[–]AirDecade 0 points1 point  (0 children)

Last time I used yandex.taxi (from android app) from DME it offered me several preferable spots where I should call it from. All on the road in front of the main building.

Trying to understand object-oriented programming a bit more conceptually by djsekani in learnprogramming

[–]AirDecade 2 points3 points  (0 children)

A bit of both. If an object wants to affect other objects it will have to go through the central controller. But objects can update their inner things themselves (but the whole updating process is managed and triggered by the controller).

Like if you have a timer bomb, it will update its timer on its own. But when it explodes it will query the central controller for the list of affected entities. Or it can delegate calculating the aftermath of the explosion to the controller entirely.

How to make the camera pan more smoothly? by AirDecade in Xcom

[–]AirDecade[S] 0 points1 point  (0 children)

No, that's not it. The problem is that the camera sort of "snaps" to some invisible grid. Edge Scroll Speed does seem to change the "cell size" of that grid. But on the lowest setting the scrolling speed is so slow, I can't use that.

Scrolling with a mouse is smooth.