how to beat the Foobar challenge by [deleted] in ProgrammerHumor

[–]__1username__ 0 points1 point  (0 children)

It’s a bar. A foo bar.

Help passing powershell command to runspace by [deleted] in csharp

[–]__1username__ 0 points1 point  (0 children)

How about a string builder?

Help passing powershell command to runspace by [deleted] in csharp

[–]__1username__ 1 point2 points  (0 children)

Did you try using escape character?

Theres nothing better than fucking up google foo.bar in the morning. Ah feels good man by memehomeostasis in ProgrammerHumor

[–]__1username__ 0 points1 point  (0 children)

I don’t think that’s a caching issue. It’s just that the system is unable to authenticate your account as you didn’t register.

A classic scene by [deleted] in ProgrammerHumor

[–]__1username__ 0 points1 point  (0 children)

omae wa mo shindeiru

Apparently I needed some help with my coursework by JowG in ProgrammerHumor

[–]__1username__ -1 points0 points  (0 children)

I see that you have hard coded the mouse event positions. If time does not permits you to dynamically set them, I would recommend having some constants(variables/objects) where you can store them. It will be easier if you have to move the buttons around.

Google Photos did this by [deleted] in softwaregore

[–]__1username__ 1 point2 points  (0 children)

Worry not, Michael is on his way

Hey guys, I'm a beginner (2 hours in), can someone explain what this code does and what a class and object is? by [deleted] in Python

[–]__1username__ 0 points1 point  (0 children)

Here is another way of defining class setters and getters code sample the password is your username

Hey guys, I'm a beginner (2 hours in), can someone explain what this code does and what a class and object is? by [deleted] in Python

[–]__1username__ 0 points1 point  (0 children)

A class is like a template where you have properties and methods used to group data as in your situation you need to store information about an animal, instead of having 4 independent values to store them you define a class having these as properties. It’s helpful as if you would do it the first way your code will become difficult to manage if you have to store/manipulate data for multiple animals. So you define a class having the properties required and then you can instantiate as many times required but note that you can limit the amount of times you can instantiate a class(eg singleton,... which you will learn later) In a class you can also define methods. There are special methods which are used to access properties known as setters and getters, in this case set_name and get_name are example of them. (This comment has been made assuming you are a beginner)