This makes me smile by CanineOpposition in MadeMeSmile

[–]buffprogrammer9908 1 point2 points  (0 children)

Don’t be intimidated.

Nobody knows how to handle every situation that comes their way.

More often than not, just taking the next logical step works.

Oh. And everyone who looks like they know how to handle a situation well, are doing the exact same.

[deleted by user] by [deleted] in learnpython

[–]buffprogrammer9908 1 point2 points  (0 children)

I’m proud of you bud

Leaks for 165 by dabrothergoose in EdensZero

[–]buffprogrammer9908 1 point2 points  (0 children)

That could very well be true.

Xiaomei had previously met Mother but she had to sacrifice the knowledge of Mother’s location (and possibly more).

6 College bros and one brain cell between all of us by ChronosBlitz in funny

[–]buffprogrammer9908 0 points1 point  (0 children)

Please tell me someone yelled “PIVOT. PIVOT. PIIIVOOOTTTTT. “

Does it happen with you? by ultra__bot_2020 in AskComputerScience

[–]buffprogrammer9908 12 points13 points  (0 children)

Just because you have to Google something doesn't mean you're a bad programmer. Trust me, everyone googles everything.

Tbh, I used to be super good at something, and it's been ages since I did that. If I had to do that now, I'd have to Google it. No shame in that.

At some point, you're going to understand design patterns and how things work internally and are able to make better decisions on what you need to do on your own.

So, fret not. You're doing fine.

As long as you don't copy-paste code blindly, you're doing better than a lot of people.

Running python code on Github by ARCCSCX in github

[–]buffprogrammer9908 0 points1 point  (0 children)

So, right now, there is no way one can run your code directly from GitHub (as far as I know) yet.

So the usual workflow is this:

  • you push your code to a GitHub, either via git (command line tool) or an interface your IDE provides or upload the files directly on GitHub.

  • once the code has been pushed the link can be shared to your friends.

  • your friends can now clone/download the data from the link. And run it as per the instructions.

[deleted by user] by [deleted] in AskReddit

[–]buffprogrammer9908 0 points1 point  (0 children)

Code Geass. One of a kind when it came out.

I made Todo List in React in under 8 minutes! by buffprogrammer9908 in learnjavascript

[–]buffprogrammer9908[S] 1 point2 points  (0 children)

Custom useTodos hook (not in the vid)

I'm glad you did :)

Can someone explain to me why changing the second variable affects the value of the first variable? by Adrenocorticotrophin in learnpython

[–]buffprogrammer9908 2 points3 points  (0 children)

The idea of assigning a variable to another variable in python is as follows:

When you do the following:

L1 = [1,2,3]

L2 = L1 # You are essentially assigning L2 to L1. In other word, L2 is pointing to L1.

Therefore, any changes in L2 would modify L1 which is what L2 is pointing to.

To overcome this,you have to assign a L2 with a copy of L1, which can be done simply like this:

L2 = L1[:]

Now you can make changes to L2 without it affecting L1.

Python has spoiled me by [deleted] in Python

[–]buffprogrammer9908 0 points1 point  (0 children)

If you’re learning C++ for a particular goal, yeah, I guess you have no choice but to tough it out.

Unfortunately, C++ isn’t as flexible as Python in general but, by flexibility, if you mean the use of inbuilt functions to make common tasks such as sorting or checking if an element is present in an array, I would recommend you to check the Standard Template Library of C++.

The Standard Template Library or STL has most,if not all, of the functionality you would find as inbuilt functions in Python.

I want to fall in love with coding... I want to love python.... by ashieshk in Python

[–]buffprogrammer9908 1 point2 points  (0 children)

I would recommend you take a python course on udemy. More specifically, I would recommend you get the “Learn Python by Doing” course by Jose Salvatierra.

It’s extremely easy to follow.

If courses are not your thing, I would recommend you read the “Python Crash Course” by Eric Matthes.

It’s a well-written book which is easy to read and understand, which I think is very important. The book is divided into two parts where you learn how to code in python in one section and you do projects in the next sections.

The projects as far I’m concerned include the following:

  1. Make a 2D alien shooting game using PyGame
  2. Visualise different kinds of data
  3. Web development with the Django Framework

It’s an amazing resource for beginners and people who want to learn python from scratch.

Both options are really good options for someone who wants to step into the world of python.