#python-discussion

1 messages · Page 578 of 1

grim hatch
#

😭 come on, but basically he has a similar view like I had, which is why should we learn how to push pull and stuff like that, why shouldn't we insert it automatically

#

His issue is he doesn't understand these things in practice

ashen cipher
#

you need to learn how to use stuff in order to use them?

grim hatch
ashen cipher
#

im so lost

grim hatch
#

That's what's confusing him prolly

keen fox
#

what things?

grim hatch
#

Bruh

grim hatch
keen fox
half pewter
#

dude, you know where you are and that people try to be helpful

ashen cipher
#

sorry your explanation didnt really help TwT

autumn forge
ashen cipher
keen fox
#

you know when you wanna rollback, do transitions, commit, merge, stash gabba gabba just no need to write it 🙂

grim hatch
vernal wind
#

If you want something "exciting" you can always build a handcar, but replace the railroad wheels with tires and set up a steering system.

keen fox
grim hatch
keen fox
opal gull
#

autogit: watches your every move and runs git commands whenever it should
when

tardy flax
#

still talking about llm from earlier or a new thing?

ashen cipher
grim hatch
keen fox
ashen cipher
#

eh i mean you still have to write commit messages though

grim hatch
#

Does it read your brain waves? ducky_concerned

autumn forge
#

that's what I'm saying

grim hatch
#

@keen fox can we roll back to what your initial question was again?

grim hatch
#

I could decide to not commit a second after

robust ledge
grim hatch
grim hatch
grim hatch
keen fox
#

anyway typing bad

robust ledge
autumn forge
# keen fox not SOTA yet!

so what is the SOTA? From what you're saying it seems to be understanding (without learning) git so you can accept suggestions from an LLM

grim hatch
#

The LLM doesn't know what you want to achieve

keen fox
grim hatch
#

Unless you explicitly say

swift sparrow
#

that's how it becomes solidifed in your brain

autumn forge
grim hatch
robust ledge
keen fox
#

then why do we make machines?

autumn forge
#

if I look at something once I will probably not be able to understand it

grim hatch
robust ledge
swift sparrow
#

I guess musicians don't need to practice to get good at their craft then...

grim hatch
#

And increase the success rate of some other stuff

vernal wind
grim hatch
keen fox
#

and how often iits changing

grim hatch
vernal wind
keen fox
#

llike learn axiomatic truth it won't change

#

distributivity is still the same

grim hatch
keen fox
grim hatch
swift sparrow
#

are git commands one of those things?

grim hatch
keen fox
#

maybe text me after 6 years?

grim hatch
#

Xor are you trying to say that we won't need git, so no need learning it?

keen fox
#

i never said that?

vernal wind
swift sparrow
shrewd plinth
#

git gud

grim hatch
keen fox
vernal wind
grim hatch
robust ledge
#

There's that "memorizing" again. Did someone actually suggest doing that at some point?

ashen cipher
#

im sensing a motte and bailey here

charred tusk
#

Hi chat my movie is over now
What’s up?
Oh we’re STILL shilling AI?

charred tusk
ashen cipher
#

close enough

robust ledge
grim hatch
vernal wind
robust ledge
grim hatch
keen fox
charred tusk
autumn forge
robust ledge
swift sparrow
#

yeah just stop using your brain altogether!

grim hatch
swift sparrow
#

down with big brain!

keen fox
charred tusk
vernal wind
charred tusk
#

What is the actual argument here?

autumn forge
grim hatch
robust ledge
robust ledge
charred tusk
grim hatch
keen fox
robust ledge
keen fox
#

so they could implement their own git

#

making industry standard tools now 😛

grim hatch
charred tusk
keen fox
charred tusk
swift sparrow
grim hatch
autumn forge
grim hatch
#

If you wanna make compilers or even your own programming language that's up to you, but that's not the reason they teach compilers

keen fox
grim hatch
pallid garden
#

im using this person's argument as an excuse to rewrite everything in rust

swift sparrow
charred tusk
grim hatch
keen fox
keen fox
ashen cipher
keen fox
#

Ur literally making your own syntax

grim hatch
keen fox
#

Like how does it actually works

brisk gazelle
#

We have roots, trees, branches and even leaves, but I've never heard of twigs or flowers.

ashen cipher
#

what

grim hatch
ashen cipher
grim hatch
keen fox
ashen cipher
grim hatch
charred tusk
pallid garden
#

do you need to know how to build an engine to build a car?

grim hatch
pallid garden
keen fox
pallid garden
#

to build a car

keen fox
fiery yarrow
#

tbh, you don't need to know that a car has an engine to drive it

keen fox
grim hatch
vernal wind
pallid garden
#

yea, but do you need to know how to build an engine to build a car?

autumn forge
# keen fox Yk merkle tree?

I realise I phrased my message poorly. What I mean to say is: how will learning about persistent data structures help me use git practically? Do I just have to guess how to perform a given operation? What will having a conceptual understanding do to help?

ashen cipher
#

isnt an engine that thing from nodejs

charred tusk
grim hatch
ashen cipher
fiery yarrow
pallid garden
#

mclaren certainly didnt need to know how to build an engine to win the f1 championship, they just buy their engines from mercedes

charred tusk
fiery yarrow
#

so do black hats, doggo

pallid garden
#

there is a difference between knowing how something works, and knowing how to build it

charred tusk
bright shoal
grim hatch
vernal wind
grim hatch
swift sparrow
bright shoal
grim hatch
pallid garden
fiery yarrow
bright shoal
pallid garden
#

i can repair a phone, but i cannot build a phone from scratch

grim hatch
#

Ok we swerved to engines

#

Vroom vroom

pallid garden
#

my point being, knowing how to use something is different from knowing how to build it

bright shoal
grim hatch
#

I can use a programming language but I can't build one

ashen cipher
grim hatch
#

Anyhow, I also do think there is a difference between memorizing and recognizing a pattern

fiery yarrow
vernal wind
silk girder
#

Hello everyone I'm new here

grim hatch
charred tusk
grim hatch
#

Or an interpreter

swift sparrow
grim hatch
#

Welp that makes the two of us

ashen cipher
autumn forge
#

I use my brain most days yet I have no understanding of how it works

grim hatch
ashen cipher
#

well one person did

grim hatch
ashen cipher
# grim hatch Nope

its a multi layered joke
layer 1: having a yanmar engine makes it yours, and if i'm the person owning it, it makes it "my" yanmar, or myanmar
layer 2: burma is another name to refer to myanmar

pallid garden
#

that's the wrong flag soph...

autumn forge
#

damn

bright shoal
ashen cipher
#

damn

autumn forge
#

I guessed the country code wrong I guess

swift sparrow
pallid garden
#

🇲🇲

ashen cipher
#

i didnt catch that either tbf

autumn forge
#

what actually is the country code for myanmar

ashen cipher
#

mm is wild

grim hatch
autumn forge
#

I'm terrible at flags

grim hatch
#

Moment of silence for xor

bright shoal
pallid garden
#

im also terrible at flags, malaysia just happens to be my neighbor

grim hatch
grim hatch
pallid garden
#

no, singapore

bright shoal
grim hatch
#

PO PO PO PO POLAND

pallid garden
#

i havent been to malaysia for a long time though

bright shoal
swift sparrow
pallid garden
grim hatch
swift sparrow
grim hatch
autumn forge
ashen cipher
#

oh wait

#

singapore's an island...

steady rain
fiery yarrow
#

nah it's cool, they're different shades of red. just use the current singapore one and tint the right side a wee bit

pallid garden
steady rain
#

Yay

rare gazelle
#

helo

brisk gazelle
#

The flags, specifically.

still pelican
#

guys, has anyone touched on Whatsapp business?

runic flower
ashen cipher
#

i'm actually writing python like rust holy shit

#

it's just structs and traits and generics except instead of structs i'm writing "classes" and instead of traits i have "abstract base classes" and "protocols"

pallid garden
ashen cipher
pallid garden
#

i.e. impl

ashen cipher
twilit abyss
#

How can I get humidity better

pallid garden
#

humidity?

twilit abyss
#

Yes

pallid garden
#

answering with yes wont clear things up you know

#

wdym by humidity

twilit abyss
#

It sits at 80

#

In my tank

pallid garden
#

your tank?

twilit abyss
#

To cold

fiery yarrow
#

ohhhhhhh

pallid garden
#

this discord server is about python the programming language btw

twilit abyss
#

My snake

keen fox
#

.

#

ur what

pallid garden
#

there's nothing stopping you from talking about your python pet but that would go into the offtopic channels

ashen cipher
#

THEY LEFT

#

LMAO

fiery yarrow
#

that confusion has happened a few times

ashen cipher
#

no shot

fiery yarrow
#

we really should find a snek discord to direct people to

pallid garden
#

true...

fiery yarrow
#

but considering it only happens maybe once a year, and us programmers are hella procrastinators....

ashen cipher
#

i mean there's this site with great tips for actual pythons i think its called real python or something

fiery yarrow
#

uh huh

ashen cipher
#

its for real pythons

fiery yarrow
#

so how are you familiar with it?

ashen cipher
floral terrace
ashen cipher
#

we totally had to know that huh

floral terrace
#

"If I know about it, you should too" mentality

wise yarrow
#

it's called ℂPython

still pelican
halcyon fern
#
from pynput.keyboard import Listener
import pyautogui
import time
import shutil


def logger(key):
    screenshot = pyautogui.screenshot()
    screenshot.save('logged.png')
    print(key)

    shutil.move("logged.png", r"C:\Users\user\Desktop\logged.png")

with Listener(on_press=logger) as l:
    l.join()
    ``` would this code be labled as bad code ?
swift sparrow
halcyon fern
swift sparrow
#
screenshot.save('logged.png')
shutil.move("logged.png", r"C:\Users\user\Desktop\logged.png")
#

you're saving it and then moving it

#
screenshot.save(r"C:\Users\user\Desktop\logged.png")
#

when you could just save it right away to where you want it

halcyon fern
#

oh so get rid of the png

swift sparrow
#

right now you're saving a file into location A, then moving it into location B

#

but I'm saying you could just save the file into location B in the first place

halcyon fern
#

yes but its not supposed to be in the file when its ran

swift sparrow
#

I don't understand what you're trying to say

halcyon fern
#

its supposed to be sent to the desktop so the user knows it has been sent

swift sparrow
#

yes I understand that

halcyon fern
#

to there desktop and not having to manually remove the file and put it on there desktop

swift sparrow
#

you're not listening to what I'm saying

halcyon fern
#

i am

#

the png file is supposed to be saved on to the users desktop

swift sparrow
#

what do you think I'm saying and what do you think is wrong with it?

halcyon fern
swift sparrow
#

right now you're doing two operations

#

one is to save it

#

and another is to move it

halcyon fern
#

oh wait i see

swift sparrow
#

I'm saying if you save it to the correct place initially, then there's no need to move it

halcyon fern
#

nvm

swift sparrow
#

you're doing an extra unnecessary operation

halcyon fern
#

thanks bro

#

im just out of it rn

#
screenshot.save(r"C:\Users\user\Desktop\logged.png")
    screenshot.save('logged.png') 
``` i could do both if wanted
swift sparrow
#

if you wanted it in two locations, sure

#

but shutil.move isn't copying the file, it's moving it

halcyon fern
#

but no point since it would be unnecessary

swift sparrow
raven urchin
swift sparrow
#

Pretty good. First day of unemployment. Crushing it in slay the spire

raven urchin
#

Also, want to try slay the spire too

swift sparrow
raven urchin
raven urchin
#

Well- I am studying SQL with SQLBolt

swift sparrow
raven urchin
#

It's not that long of a guide

swift sparrow
#

in the middle of an ascension 10 act 3 boss fight 😬

raven urchin
#

After that, I'll watch a video about SQLite

shrewd plinth
#

Nice. Apparently the multiplayer in StS2 is pretty legit

#

Dayum, ascension 10 O_O

#

Good luck!

terse mauve
raven urchin
shrewd plinth
#

yup

swift sparrow
raven urchin
#

It's adapting 🗣️

shrewd plinth
#

Impressive!

terse mauve
#

gm all

raven urchin
#

gm tho

terse mauve
swift sparrow
#

1pm 🙂

raven urchin
raven urchin
#

I always think, imagine what would it be like to talk with people in other planets

swift sparrow
#

it would be hard to coordinate time zones

raven urchin
#

Imagine longer or shorter days

#

That'd be hell to manage lol

#

A planet with 8 hours day time

swift sparrow
#

You still working on the to-do list?

terse mauve
raven urchin
raven urchin
terse mauve
swift sparrow
#

I've still been prototyping my collapse widgets a bit

raven urchin
#

Oohh

raven urchin
#

I'm helping Delk

terse mauve
raven urchin
#

Thank you

#

Good night everyone!

swift sparrow
#

adios

inland karma
#

good morning!

tame vapor
swift sparrow
#

the header is a clickable QFrame and then it has a layout that holds whatever widget you set to it. "Collapsing" is pretty much just setting the visibility on/off of the child widget

tame vapor
#

ahhh

#

why not a single column QTreeWidget or whatever the built in tree widget is ?

swift sparrow
#

this is meant to act as an accordion style menu. It simply shows/hides whatever widget you parent into it

#

so I could put anything inside

tame vapor
#

i see

swift sparrow
#

here's an example of an already existing one

#

this is built into the 3d software I use though

#

and I wanted to replicate that same style in my own UI

#

this wouldn't work as a tree

tame vapor
#

why not thinkmon

#

cant u customize the tree child widget anyway u want like a regular widget ?

swift sparrow
#

because a tree only displays item widgets

scenic finch
#

For those who use LLMs, what provider do you use? I'm on the copilot that a student account gives right now but i just keep hitting rate limits even if im just asking questions about the codebase

#

I cant even access any claude model beyond haiku

swift sparrow
#

I also have no need for the nested capabilities of a tree

tame vapor
#

yeah makes sense
this is much easier solution

swift sparrow
#

this is just 1 header that hides/show things

#

I could in theory put sub-frames into these though

#

you can kinda see it from the indentation here

#

4 of them belong to the Display header

quartz fulcrum
#

Hi everyone,
!! GOOD MORNING !!

#

I am starting gym from tomorrow.....

#

again

nimble spoke
#

Okay

sharp sinew
#

How do input code into here?

#

Do i use "?

#

print("Seeing if bot will tell me")

pallid garden
sharp sinew
# pallid garden why do you need to run your code here?

I learned about a feature in discord recently that shows how to input code and have it have colors but i forgot how and I wanna send some code to my friend so I dont wanna run my code here but I wanna use that to send my friend python.

pallid garden
#

it doesnt run the code

#

it only shows it

edgy krakenBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

sharp sinew
#

Ohhh

#

Thanks!

snow moon
#

Can I use it py3 for code

pallid garden
#

you want to use python 3?

snow moon
#

Pydroid 3

#

For code in tablet because I don't have a laptop

inland karma
#

yeah, you can use pydroid3 on your tablet

pallid garden
#

you can definitely give it a try

snow moon
#

import pyttsx3
engine = pyttsx3.init()
engine.say("I will speak this text")
engine.runAndWait()

edgy krakenBOT
#

Hey @snow moon!

Please edit your message to use a code block

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
snow moon
#

Can you give me solution

pallid garden
ocean ridge
#

@snow moon paste the error

earnest leaf
#

Hi

wraith pike
#

hello

#

i am in windows 7, so how i can code python free by using a website?

peak relic
golden mortar
#

If it's your machine, that is.

cerulean ravine
cerulean ravine
raw bramble
#

I may be wrong but Lists in Python are dynamic arrays that store pointers to memory addresses of values?

tame vapor
#

id prefer to say "references" but yeah
i mean in python everything is a reference so ... 🤷

raw bramble
#

I don’t really get what a pointer is here?

#

What are they, how are they stored, and how do they store references to values?

pallid garden
tame vapor
#

a reference is like, a way to refer to some memory , point to it , a reference is under the hood just that , a pointer
it points to another object
so u make list of these pointers , each item in the list , aka , each pointer , points to an object somewhere in memory

opal gull
tame vapor
#

a reference is just a high level word u use , so u dont mix it up with pointer , which is an internal implementation detaili

raw bramble
#

I don’t know much about how memory is handled (benefit/downside of Python) so I don’t really understand what the references are actually storing, like idk what a memory addresses really is

tame vapor
#

you dont really need to understand it honestly

pallid garden
tame vapor
#

if u want to fix ur mental model , think of everything in python as a box , this box is called an object

raw bramble
tame vapor
#

so
2 thisis a box , that has the value 2

tame vapor
pallid garden
tame vapor
#

(although a "pointer" can generically mean "the one who points" in any language, in C it is a specific language construct)

pallid garden
#

the concept of reference in C++ is very different from the concept of reference in rust, for example

raw bramble
#

But a memory address is still the same idea though, no?

tame vapor
#

it isnt really helpful to mix langauges . If you are learning about python lists , learn about them , use the python lingo
if u want to learn what pointers in C are , learn that

#

try not to use words and lingo from one language into another as it can create confusion

once u learn both independently , then u can start to understand the similarities

tame vapor
#

if u want to point to some memory , u store its address , thats the basic idea

cerulean ravine
# raw bramble But a memory address is still the same idea though, no?

you can think of memory as a long sequence of bytes. They are numbered, 0, 1, 2, ... 16G or something. A low-level 64-bit int is stored in eight consecutive bytes. An object in Python might take 28 consecutive bytes. The address of the object is the byte number of its first byte.

#

@raw bramble at a low level, a pointer is a byte number (offset) stored as a low-level 64-bit integer at some other byte offset.

raw bramble
#

I definitely need to learn a whole lot more about the physical stuff that goes into computing

cerulean ravine
raw bramble
#

Yup

pallid garden
cerulean ravine
# raw bramble Yup

ok, and a memory address is a number, the number of the byte, is that ok?

raw bramble
cerulean ravine
raw bramble
#

Oh okay yeah!

tame vapor
#

https://www.youtube.com/watch?v=zuegQmMdy8M btw @raw bramble if u do decide to learn C and need a good resource to explain pointers , this is what helped me when i was learning
the first 5 chapters of the video is what u want

cerulean ravine
# raw bramble Oh okay yeah!

ok, then you can store a pointer to byte with address 1789 by storing the number 1789 at some other byte address.

raw bramble
#

So you say that bytes 0-8 are all part of the int?

cerulean ravine
cerulean ravine
raw bramble
swift sparrow
#

so rather than saying "what object is this", you're just saying "what's at this memory address"?

cerulean ravine
golden mortar
tame vapor
#

the data that is stored at that address can have varying size

#

an int will have 28 bytes, a string may have 150 bytes, it doesnt matter
but a pointer to both of those will always be 64 bits

swift sparrow
#

does the pointer know how many bytes the data is?

tame vapor
golden mortar
cerulean ravine
#

at this level, it's all just bytes. How to interpret the bytes has to be information from somewhere else. Including knowing that the 8 bytes are a pointer instead of an int.

tame vapor
#

in C , this would cause mayham if u said a pointer is just a memory address xd

arctic plank
#

Hi

cerulean ravine
floral terrace
#

I love when people ask such abstract questions and then big-brained people give such detailed answers. Bless your heart for letting me steal all of these information. Even though I still don't know what to do with it

quasi shuttle
cerulean ravine
golden mortar
floral terrace
golden mortar
#

It is, the human brain is primed to absorb information whether you want it to or not.

golden mortar
#

Although:

"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents. We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far." - Call of Cthulhu

golden mortar
#

Hm, that feels like a good concept for a cosmic sci-fi horror story. We build an AI that is smart enough to deduce some horrible truth that we are too dumb to realize ourselves.

pallid garden
cerulean ravine
#

At PyCon, there was a picture on stage of a pizza with pineapple on it. Paolo Melchiorre said, "at PyCon Italia that would be a code of conduct violation"

pallid garden
floral terrace
pallid garden
floral terrace
#

so Lovecraft predicted a widely-used machine learning model?

pallid garden
#

no im just joking

floral terrace
#

and I'm trying to understand :/

#

u know wot, no need to explain, I'm just stupid

pallid garden
#

im just joking that a fully connected neural network will be able to fully correlate all of its parameters

floral terrace
#

will it tho

golden mortar
# floral terrace will it tho

It's a joke referencing the part of the quote that says "the inability of the human mind to correlate all its contents" i. e. inability to connect its contents, but an FCNN is fully connected. It's nothing deeper than that.

#

It's just about the wording.

floral terrace
golden mortar
#

Guess you're not an AI then.

floral terrace
#

but still

blessed be the mind too small for doubt
war ham 40k

golden mortar
#

Warhammer 40k is also all about cosmic horror.

viral vale
#

Hey everyone 👋

golden mortar
#

Hi there

viral vale
#

@golden mortar are u a student or currently doing any job?

golden mortar
#

I'm employed

viral vale
#

Oh nice
Which company?

golden mortar
#

Until the end of the month, a company that builds financial exchange systems. Next month I'm starting at a consultancy firm, with a placement at a bank as a platform engineer.

viral vale
#

What will be your task there?

#

Means, what really will u do as a platform engineer

candid orbit
#

Unless you're doing more platform work?

golden mortar
final hollow
#

shit wrong server, sorry guys

golden mortar
candid orbit
golden mortar
pallid garden
final hollow
#

dementati, is your name intentionally close to "demented"?

golden mortar
quartz fulcrum
#

how important __slots__ are

golden mortar
swift sparrow
cerulean ravine
quartz fulcrum
#

last topic of inheritenca

cerulean ravine
quartz fulcrum
#

inheritance

cerulean ravine
quartz fulcrum
#

in the course

golden mortar
swift sparrow
cerulean ravine
pallid garden
golden mortar
viral vale
#

How many projects in cv are considered as good

quartz fulcrum
cerulean ravine
swift sparrow
#

you don't have to worry about best practice/implementation

quartz fulcrum
#

okay

cerulean ravine
inland karma
#

i would have to check, but im not sure i have every used slots for something real

wise yarrow
#

I think for most people slots is just a nice kwarg for dataclasses.dataclass

#

or a default thing you don't think about for attrs

golden mortar
tranquil turtle
#

Hi guys! imnew

viral vale
#

Hi 👋

golden mortar
inland karma
#

welcome!

cerulean ravine
viral vale
tranquil turtle
#

im mainly a roblox dev

#

but i like python too

golden mortar
quartz fulcrum
#

dont say this ned

#

you are young as you learn

tranquil turtle
#

i literally started python in 2021

pallid garden
#

that's a long time

cerulean ravine
tranquil turtle
wise yarrow
#

roblox would be lua right?

tranquil turtle
#

recently i got interested in uhh system integration, basically making roblox and python interact with each other

viral vale
quartz fulcrum
#

yeah...being healthy is difficult in middle and old age

tranquil turtle
inland karma
#

you get these DLCs in life that you cant uninstall... i got the one where my shoulder hurts! 😄

tranquil turtle
#

i started with scratch

viral vale
tranquil turtle
fair rose
#

Hi

fair rose
#

How are you

tranquil turtle
viral vale
#

Hello mate

fair rose
#

I am new here

quartz fulcrum
#

how old are you @cerulean ravine ?...i want to know

tranquil turtle
#

what are u interested in?

fair rose
#

I am new to Python

tranquil turtle
#

im 13 now and ik python, luau ( roblox )

viral vale
tranquil turtle
fair rose
#

How to start Python

cerulean ravine
spice hill
#

Above 0b100?

tranquil turtle
#

whats ur guys field of interest?

tranquil turtle
quartz fulcrum
brisk gazelle
edgy krakenBOT
viral vale
spice hill
candid orbit
# golden mortar Nope

Ah ok. How'd you get into that comapny? That side of fintech, companies like IEX are my target

spice hill
#

I too am older than 4

tranquil turtle
tranquil turtle
spice hill
#

nah, when you're born, you are younger than 4

tranquil turtle
#

that means my age is 0b1011

viral vale
tranquil turtle
#

like imagine a website control panel, and if you press abutton, it uses an api to control things in roblox

slow rivet
#

Is that actually possible?

viral vale
tranquil turtle
#

i mean, roblox has httpservice for sending requests

viral vale
#

@tranquil turtle you from which country?

inland karma
tranquil turtle
#

so u could make roblox send a request asking what event it should do, and once the website gets a button press, it tells roblox that specific event

slow rivet
#

Oh really, just feels like a thing they wouldn't allow

inland karma
tranquil turtle
viral vale
#

@tranquil turtle same here

slow rivet
tranquil turtle
#

🇮🇳

tranquil turtle
inland karma
golden mortar
viral vale
#

@tranquil turtle i am currently now in college doing btech in the computer science field and exploring machine learning side using python and python libraries

golden mortar
#

Probably not very helpful for you, unfortunately.

tranquil turtle
#

12 YEARS?! thats 12/13 = like 92% of ma life

tranquil turtle
#

and yes, i started python when i was EIGHT

viral vale
#

@tranquil turtle u are really ahead of your generation

tranquil turtle
#

idk coding seemed rlly cool to me

candid orbit
viral vale
#

@golden mortar why?

golden mortar
tranquil turtle
restive crane
tranquil turtle
#

he didnt even force me or enroll me in any class, i just was curious

viral vale
#

@golden mortar u said it to me?
Or someone else

swift sparrow
golden mortar
viral vale
#

@golden mortar ok misunderstanding

tranquil turtle
golden mortar
tranquil turtle
#

mine is my roblox avatar lol ( drew it myself since im also a digital artist )

swift sparrow
tranquil turtle
#

when did u guys start coding?

swift sparrow
#

age 28

tranquil turtle
#

guys i dont think u should reveal ur ages

floral terrace
pallid garden
#

we are adults

golden mortar
tranquil turtle
restive crane
tranquil turtle
restive crane
slow rivet
tranquil turtle
restive crane
#

I started with batch

golden mortar
tranquil turtle
restive crane
#

it was so shit

tranquil turtle
#

it all started when my dad showed me scratch, and my natural curiousty ( i was 8 ok? ) lead me to explore coding more

#

u guys all use a mac or linux right? i use a macos monterey

floral terrace
swift sparrow
tame vapor
pallid garden
slow rivet
tranquil turtle
swift sparrow
tranquil turtle
quartz fulcrum
tranquil turtle
#

i used windows 8 first, now i use a mac

tame vapor
tranquil turtle
#

(laptop)

tranquil turtle
golden mortar
viral vale
#

Bro are u guys sure about that u started coding at age of 8/10
Bro that is insane

tame vapor
#

no i started at like 18

golden mortar
golden mortar
tranquil turtle
#

if not i probably started b/w 8 and 9

viral vale
#

@golden mortar yes that's true

restive crane
golden mortar
tranquil turtle
restive crane
#

woah

swift sparrow
#

technically I started with actionscript in flash, but I didn't get too far

tame vapor
#

💀 thats crazy

tranquil turtle
viral vale
#

I started my coding journey with C programming

swift sparrow
golden mortar
golden mortar
#

Minecraft redstone is also Turing complete.

tranquil turtle
#

do u guys code in any other language too? i tried java and c++ too but ehh its kinda boring

golden mortar
inland karma
#

i read java, but seldom write it

tranquil turtle
#

i dont drink java? i dont drink coffee since im only 13

#

do u guys code as a job or as a passion?

golden mortar
golden mortar
slow rivet
viral vale
restive crane
golden mortar
tranquil turtle
#

I mainly use luau, python and jsx ( react )

#

luau is for roblox if u dont know

golden mortar
#

There's high stable demand since it's such a popular enterprise language.

quartz fulcrum
#

where java is used?

tranquil turtle
viral vale
#

Java has high demand in the Indian market specially

golden mortar
quartz fulcrum
golden mortar
golden mortar
granite wyvern
viral vale
arctic plank
#

Is it stupid to read a code u dont understand?

swift sparrow
tranquil turtle
golden mortar
quartz fulcrum
arctic plank
#

Kk

viral vale
tranquil turtle
#

its a shame i cant use aws, azure or google since i dont have a credit and card and im probably underage for it

tranquil turtle
quartz fulcrum
#

i am surprised you are surviving on discord as an underage(if you are).

tranquil turtle
tranquil turtle
restive crane
arctic plank
quartz fulcrum
granite wyvern
viral vale
#

I want to work with apis, can anyone guide me on how to start

granite wyvern
#

Might be jurisdiction spcific.

tranquil turtle
restive crane
golden mortar
#

The Discord ToS dictates that users be 13+, or at least it used to.

#

I haven't looked it up recently.

granite wyvern
tranquil turtle
#

ok lets not dive into ages, python is for everyone

restive crane
# restive crane I don't think it is

Age 16+: The Netherlands, Poland, Spain, Germany, Ireland, and several other European Union countries.
Age 15+: France, Czech Republic, Greece, and Slovakia.
Age 14+: Austria, Bulgaria, Italy, Lithuania, and Spain.
Age 13+: Discord's Global Minimum

tranquil turtle
#

@viral vale if u wanna create ur own python apis, i suggest watching a tutorial on FastAPI, its the best place to start imo

viral vale
#

How to get good project ideas, is there any suggestions from anyone

granite wyvern
edgy krakenBOT
#
Kindling Projects

The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

swift sparrow
granite wyvern
#

Otherwise, make something (small) which you would like to have.

tranquil turtle
tranquil turtle
granite wyvern
#

See above.

viral vale
#

Ok that's mean first i need to look in my personal life and make projects around it

tranquil turtle
#

ok thk!

golden mortar
#

It felt motivating to work on it since I actually used and got benefit from it.

swift sparrow
#

I play a card game with friends which is a pain to score, so I made a little app that we could use to help us score the game

tranquil turtle
quartz fulcrum
#

I also thought of making a webapp
...but that is not where i wanna go into

viral vale
#

Ok bye guys 👋
I have classes

restive crane
tranquil turtle
golden mortar
#

If you like movies or TV shows, you could write an app to track which movies and TV shows you've watched, and maybe recommend new movies and shows to watch based on what you already watched, or other criteria.

tranquil turtle
golden mortar
tranquil turtle
#

ive always thought abt making like a roblox admin abuse control panel in react, and use an api to actually make it happen in roblox

#

thats EXACTLY the field i wanan explore

golden mortar
#

But it's still useful, because I do a lot of different exercises, and it can be hard to remember what weights and rep count I'm supposed to use for each one.

tranquil turtle
#

ooooo ok

#

i read ur username as dementia 😭

golden mortar
#

It's also nice because I can graph my progress over time and evaluate which exercises and muscle groups I'm having trouble developing.

golden mortar
tranquil turtle
#

i dont exxercise, but i cycle like daily

#

im obth tall and heavy for my age

golden mortar
#

That's good, that's a form of exercise.

tranquil turtle
#

*both

tranquil turtle
golden mortar
tranquil turtle
#

im literally 5'5 or 165 cm ( yes rlly )

arctic plank
#

Does it require any third party modules?

tranquil turtle
tranquil turtle
golden mortar
arctic plank
golden mortar
tranquil turtle
hexed zinc
#

Hi

golden mortar
#

I think it's flask + sqlalchemy for the backend and react for the frontend

#

I think maybe I pulled in something to render the graphs

tranquil turtle
golden mortar
arctic plank
#

What can the turtle be used for apart from the usual

golden mortar
tranquil turtle
#

can u imagine someone new seeing our chat? they will be so confused

arctic plank
#

I was trying to learn flask a while ago but my PC crashed so I just started with automation

floral terrace
golden mortar
#

or maybe django

tranquil turtle
golden mortar
#

Don't really see why you'd pick flask over fastapi

floral terrace
tranquil turtle
golden mortar
floral terrace
tranquil turtle
#

whats flask-sqlalchemy for then?

brittle merlin
floral terrace
#

flask and sqlalchemy are 2 separate things

golden mortar
tranquil turtle
brittle merlin
tranquil turtle
#

idk that seems simpler, fastapi is mainly fot well, APIs

floral terrace
tranquil turtle
#

i use flask and regular python for backend

velvet trout
#

how to stop procrastinating and work on code

#

dopamine coding 🥀

tranquil turtle
golden mortar
brittle merlin
velvet trout
#

This is the end.

tranquil turtle
velvet trout
#

i think i just don't care anymore? temporarily uncared?

#

I don't understand myself sometimes

brittle merlin
tranquil turtle
tranquil turtle
floral terrace
velvet trout
tranquil turtle
#

just. start. da. project

velvet trout
#

i literally dislike writing english in docstring, explaining and README.md.

my brain shuts down and mood swings comes in

tranquil turtle
#

k guys ima go eat lunch now

brittle merlin
floral terrace
velvet trout
tranquil turtle
brittle merlin
tranquil turtle
velvet trout
floral terrace
tranquil turtle
#

bye guys

inland karma
#

damn... CSS got ifstatement now

#

i missed that

velvet trout
floral terrace
inland karma
#

well.. if function

inland karma
floral terrace
#

huh, what to do with that information?

brittle merlin
inland karma
bronze dragon
velvet trout
#

i don't understand this syntax at all

spice hill
velvet trout
#

raise ParserError("is that else inside if's condition?")

inland karma
granite wyvern
floral terrace
inland karma
bronze dragon
inland karma
floral terrace
spice hill
#

Even CSS got the order of operands in conditions expressions right 😭

#

must be one of my least favourite things in Python

tranquil turtle
velvet trout
spice hill
velvet trout
bronze dragon
spice hill
velvet trout
#

whenever the language developers feel like it — ☠️

spice hill
#

I think the idea to use actual keywords instead of ?: was good, but reodering the operands was not

velvet trout
#

x = if cond: a else: b

Like this?

jade robin
#

rust user

velvet trout
jade robin
#

i very much like t if c else f over ?:

velvet trout
jade robin
#

t1 if c t2 elif c2 t3 elif c3 else t4

velvet trout
#

Rip

spice hill
#

There's a PEP for the conditional expression: https://peps.python.org/pep-0308/
I'm a bit confused about the outcome. Looks like there was a vote and (if C: x else: y) won, but then BDFL decided to use a different syntax anyway. Maybe some details or context are missing.

velvet trout
#

python should've taken braces approach

#

😋

#

x = if condition { ... } else { ... }

jade robin
#
x = if cond: 
       p
    elif cond2:
       q
    else:
       r
pallid garden
jade robin
#

okay this sucks far more

spice hill
#
x = if cond: (p) elif cond2: (q) else: (r)
``` something like this
velvet trout
jade robin
spice hill
#

or maybe give up on the elif thing, and just ```py
x = if cond: p else: (if cond2: q else r)

jade robin
velvet trout
#

Yeah it does

spice hill
#

as opposed to being the first operand

jade robin
#

eh, i mean python does do it differently but you get used to it p quickly

spice hill
#

There's a reason if statements are not like this: ```py
do:
...
if condition else:
...

velvet trout
jade robin
velvet trout
#

in iterable for x, y: ...

jade robin
#

it's also a language choice, i don't particularly hate it

velvet trout
pallid garden
#

chatter, you have to shift your eyes when you're reading

slender urchin
spark obsidian
#

just add a plugin to describe the code line by line with a subways surfers gameplay in the background

pallid garden
gleaming knoll
#

is this the longest powershell name

pallid garden
#

who knows

charred tusk
#

Someone counted

#

That’s the one that gets used in the memes

edgy krakenBOT
#

cmdletsFromMgGraph.ps1 line 5962

Invoke-MgExtendDeviceManagementDeviceConfigurationGroupAssignmentDeviceConfigurationMicrosoftGraphWindowUpdateForBusinessConfigurationFeatureUpdatePause```
noble venture
#

hi

noble venture
# noble venture hi

is a week and a half w/ 4-5 hours of studying enough to cover basics of matplotlib - numpy

pallid garden
#

you should just practice

arctic plank
noble venture
pallid garden
#

like write some programs to calculate some values from a table using numpy

ocean ridge
#

@pallid garden do you use low level langs often?

pallid garden
#

no

ocean ridge
#

is there a good job demand for low level langs..?

pallid garden
#

no

inland karma
dreamy vigil
#

hello
for token in tokens:
if token is in keywords:
print ("next")
else
_input = "error : unknown keyword"
apparantly 'in' is invalid syntax what did i do wrong?

slender urchin
swift sparrow
swift sparrow
#

if token in keywords would be correct

dreamy vigil
#

ok

#

thanks

#

yes it is working now

dreamy vigil
#

"'py
_input = open("temp/input","r").read()

keywords = ["struct","body","par"]

errorcorrection_code = _input

preped_error_code = errorcorrection_code.replace("["," ")
preped_error_code = errorcorrection_code.replace("]"," ")
preped_error_code = errorcorrection_code.replace("{"," ")
preped_error_code = errorcorrection_code.replace("}"," ")

tokens = preped_error_code.split(" ")

for token in tokens:
if token is keywords:
print ("next")
else:
_input = "error : unknown keyword"

output= _input

open("temp/output","w").write(output)
"'

#

i inputed body[] it is coming as an error

swift sparrow
#

attempting to do what?

velvet trout
dreamy vigil
#

did i gave the wrong input

velvet trout
#

i gotta make a PR to fix that

gleaming knoll
swift sparrow
#
preped_error_code = errorcorrection_code.replace("["," ")
preped_error_code = errorcorrection_code.replace("]"," ")
preped_error_code = errorcorrection_code.replace("{"," ")
preped_error_code = errorcorrection_code.replace("}"," ")
#

this isn't quite doing anything too useful

velvet trout
#

Are you making a new programming language

swift sparrow
#

you keep overwriting the old value

rugged barn
gleaming knoll
#

it will also be wrong once you have a string literal with those special characters in the source code. you cant just replace on the whole source

dreamy vigil
#

you seem to be an expert

gleaming knoll
grim socket
#

Anyone got enough power to bestow screen sharing on this humble Python docs orator for VC 0 please ?

dreamy vigil
#

i am only experimenting right now

#

why cant you upload pics here

gleaming knoll
swift sparrow