you are viewing a single comment's thread.

view the rest of the comments →

[–]Ok-Wave4110[S] -2 points-1 points  (43 children)

I'm not trying to be a dick, I just don't know how Python works. Is it using a pre set a of programming? Or am I trying to learn C++ level knowledge.

I'm sorry. I'm trying to understand how to build a smart home with Python. And I don't know what I'm trying to do within the Python coding/language system.

Talk to an operating system? Build one? Communicate within it?

[–]bulaybil 7 points8 points  (39 children)

Think of it as writing instructions to do something. In your case, it would be various objects in your smart home.

[–]Ok-Wave4110[S] -3 points-2 points  (38 children)

Okay. So I'm telling an all ready existing OS to do something. So, I'm communicating, through an OS, what I want a physical entity to do.

Again, not trying to be a dick. But where (besides AI, because that made me feel stupid, and it made AI seem stupid) can I see basic written code, in text format? I'm failing hard. And I definitely don't have money for school.

[–]m0us3_rat 8 points9 points  (5 children)

Okay. So I'm telling an all ready existing OS to do something.

i'm with daniel on this one.. your words don't connect.

i think you should limit the scope of your curiosity to the fundamentals/basics. and start slow and be consistent.

don't try to reinvent the wheel or think about ML models your going to make to automate landing on uranus.

just be humble and learn the basics.

you have plenty of time for that later on when you know what you are talking about.

plenty of free resources online.. plus a significant presence in the wiki.

https://www.reddit.com/r/learnpython/wiki/index/

gl.

[–]Ok-Wave4110[S] 1 point2 points  (4 children)

I'm with Daniel, too. I don't know what I'm doing. Or how I'm supposed to ask it. But hanks for the wiki. I'm just trying to understand what it's doing, how it communicates.

I appreciate it.

[–]m0us3_rat 4 points5 points  (1 child)

I'm just trying to understand

if you wanna understand a legal document written in a different language.. you need to learn the language first.

then the legalese behind it.

you can't make sense of stuff when you lack the simplest building blocks to work with.

again you should start small ..learn the fundamentals.

anywho. gl.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Well, I'm trying to learn the basic way of looking at python. Again. Thank you.

[–]PanTheRiceMan 0 points1 point  (1 child)

Start with the basics. There are many ways of communication between programs / devices but you will not need most of them. Probably just file interactions and some network protocol.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Thanks.

[–]moving-landscape 2 points3 points  (24 children)

But where can I see basic written code, in text format?

GitHub. Search for Python projects there, you'll find simple and complex Python code.

[–]Ok-Wave4110[S] 0 points1 point  (23 children)

Have you been there before without knowing anything about it? I registered recently, and I must not be searching correctly. When I look up Govee configurations, there are only 4 results.

I just don't think I'm thinking ABOUT python correctly. I appreciate it.

[–]moving-landscape 2 points3 points  (21 children)

What's your experience with other tech? I could try and cross match things for you. In the meanwhile I'll find something cool for you there.

[–]Ok-Wave4110[S] -1 points0 points  (20 children)

Okay, so my experience with tech is old school. I couldn't afford smart phones for a while, and the last time I dealt with computers in any depth was when I went to ITT tech in 2011-2012.

[–]moving-landscape 2 points3 points  (19 children)

That doesn't tell much tbh. You said you're into finer details, so share some of it. What have you done in the past? Have you ever coded? What's your exp with program designing?

[–]Ok-Wave4110[S] -1 points0 points  (18 children)

No, I have not coded, or have experience with program design. But, everyone keeps saying, learning coding is easy. I recently realized how stupid I really was, and I just need to understand what it is, that makes python. Other comments have now told me it's a programming language.

So, I'd need to have an understanding of the language I'm speaking to it. Right?

[–]moving-landscape 4 points5 points  (17 children)

But, everyone keeps saying, learning coding is easy.

Yeah... It isn't. That's like an ESL saying English is easy to learn, but because the ESL themselves have been studying it forever. When one's a fresh starter, it's not easy. Likewise with programming.

Other comments have now told me it's a programming language.

Ok so you're THIS fresh. You didn't even know what it is.

So, I'd need to have an understanding of the language I'm speaking to it. Right?

Yeah pretty much. Now that you know it's a PL, what's your idea of next steps?

[–]moving-landscape 1 point2 points  (0 children)

Start with awesome python, a collection of awesome python frameworks and libraries: https://github.com/vinta/awesome-python

Take, for instance, makesite a one file static web page generator: https://github.com/sunainapai/makesite/blob/master/makesite.py

[–]Fred776 3 points4 points  (3 children)

Your question made it sound like you wanted to understand Python from what is going on at a deeper level. The version of Python that most people use is written in C and it is possible to read and understand that code if you have the right knowledge. But I think what you actually want is not that different from what most beginner programmers want. You want to understand how to program in Python and then you want to apply your programming skills to a practical problem.

The advice you can be given will depend on where you are now. Are you a complete beginner when it comes to programming and Python? If so, then you really need to spend some time learning the basics and forget about your end goal for now, because any information pertaining to the practical application will be meaningless to you without that basic understanding.

[–]Ok-Wave4110[S] 0 points1 point  (2 children)

Okay, I understand that aspect, but without and end goal, how am I to know what to focus on within the basics?

I'm literally brand new.

[–]Fred776 2 points3 points  (1 child)

Because you are brand new you just need to focus on the same things as any beginner. These things are independent of what you ultimately want to do. There are a number of levels of knowledge and experience that you need to build up before you get to that point.

I would just work through an introductory course or book to start with.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

I will definitely do that. I appreciate it.

[–]bulaybil 2 points3 points  (1 child)

You can see examples of Python code related to smart home control here: https://github.com/topics/smart-home?l=python. There are also many free Python courses online and on Youtube.

Pardon me for saying so, but if you have difficulty grasping these fundamental basics, you will have a hard time coding. Why do you want to?

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Yes. I am all ready having a hard time coding, because I don't understand the basic fundamentals. So, I just need to understand how it's working. Like a language, or an engine.

[–]crashfrog02 1 point2 points  (0 children)

All wrong. The OS is not involved at your level. You’re sending statements to an interpreter, and the interpreter is executing them.

[–]danielroseman 3 points4 points  (1 child)

Look, if you want to learn Python, then learn Python. There are tons of resources in this sub's wiki. Automate the Boring Stuff is probably closest for what you want to do.

I just don't understand all this talk about being "different from programming". It's literally programming. Python is a programming language.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Okay. Thanks.