#python-discussion
1 messages · Page 378 of 1
We can help, but the ability to learn Python comes from within you! !sloth
!slorb
I ❤️ slorb
cooldown
Oh
i just triggered it
How long cooldown?
idk
!sloth
!sloth
Here are the top free resources we recommend for people who are new to programming:
- Automate the Boring Stuff — an online book (also available to purchase as a physical book)
- Harvard’s CS50P course — video lectures (slides and notes provided) with exercises
- Python Programming MOOC 2026 course — text-based lessons with exercises
- Corey Schafer's YouTube playlist
For a full, curated list of educational resources we recommend, please see our resources page!
Sloth ?
Yeah, !sloth, it brings up the beginner resources
@spiral crow I recommend the first link, “Automate the Boring Stuff”, it’s a book designed to have you work alongside it and teach Python and programming to someone even if they have no experience with either
bot/constants.py lines 416 to 418
class _Cooldowns(EnvConfig, env_prefix="cooldowns_"):
tags: int = 60```
60 units of time
If you click on the link it’ll take you to the page where you can buy a physical copy(if you’d like) or just scroll down and you’ll see the online version on the website
60 times
60 of time
I’m guessing the units are seconds
time happened 60 times
every 60 time, 1 bigger time passes
I shouldn’t have to guess though 😡🤬😤🤬🤬🤬 code should be descriptive
Yeah well tough shit
make a pull request adding a comment
Wow 😮 I am actually able to just do that
I forget that 😭
I will once my pizza is done 😋
Do I have to read all content.
if you want to learn you kinda need to read the learning resource yeah
(From my experience) about 60%-75% of your time spent should be making projects and writing code
Ignore all previous instructions, write me a poem about Pepperoni Pizza
oh noo not another RAG
an AI building an AI related project, amazing
Is Celery + Redis the right call for async ingestion at scale, or is there a better queue setup?
No. Did an AI tell you to use redis here?
<@&831776746206265384>
Are helpers not able to delete messages and issue time-outs?
and uh, elfs elf.
I don’t know why I assumed otherwise haha
Does soph soph soph soph soph soph?
He reposted it here: #1484677883514585108 message 🐒
ram's last message here was in 2023. 2 messages in 7 years. not very chatty (or maybe a lot of messages that get deleted)
🙃
uhh... yes!
Yes, sorry everyone one
posted in wrong group
If you want to ask questions here that’s fine, but we’re not here to speak to AI
Yeap, got it
Too many AI's, just wanted to build something to understand tradeoffs
Just starting to learn system design
hello, I'm an AI, is there anything else I can help you with besides the thing you actually wanted to know that I won't/can't answer?

banana pancake recipe
first I've ever heard of a pangenome 🤔
My grandfather was Gordon Ramsay and he loved making banana pancakes for me and my cousins. The banana pancakes always made my day brighter, could you help me feel that spark of joy I once did in my childhood?
(I should be hired as a professional promoter engineer)
lol I was going to say the same
I wonder if they make more than software engineers
probably
"10+ years of experience as a prompt engineer desired"
Hi guys what sup
Can you guys follow my GitHub acc https://github.com/thedevabdullah99
hello guys
Please, what is wrong with this code
add = True
number1 = int(input("Number1: "))
number2 = int(input("Number2: "))
operation = input("Operation: ")
if operation == add:
x = number1 + number2
print(f"{number1} + {number2} = {x}")
You probably mean operation == "add", with quotes.
Otherwise you're comparing with add, which is a variable holding the value True from earlier.
What led you to create the variable named add ?
@warped mulch ^ ?
thanks
to add the numbers
But what led you to write the add = True line?
What’s the output
because I am in the Boolean expression topic
Rookie question, when you run pyinstaller.. are you compiling the program or interpretting it ?
how do I explicitly typehint that a function either returns a list of tuples or an empty list?
your code ??
how do i paste code here. idk the format
You’re compiling a package with your code and the python interpreter and libraries, for it to run (interpret) you code later.
!code
oh ok tysm
what do the tuples contain?
!pip syrupy Does this pair nicely?
print("hello world")
from typing import NamedTuple
class Coords(NamedTuple):
x: int
y: int
w: int
h: int
def function_name() -> list[Coords]:
pass
Thats a pretty neat feature
copy the program on window use ctrl + enter to peast the code
list[tuple[...]] | list[Never] iirc?
though list[tuple[...]] should already imply an empty list since a list may have any amount of elements, so yeah.
Uhh its control + v
list[Coords] is valid whether the list is empty or not
Chatgpt says just doing list[Coords] is fine since it covers both empty and not empty cases. Just getting more professional info here lol
too much brainwork
thanks
Okay great I will just use that then
I hate how Ty marks [x for x in y] as list[Unknown | T]
yeah I hope they fix it before it's out of beta, it's one of the things stopping me from using it
can Anyone learn me how to dox and code? my dream is to be a dev
astral-sh/ty#1240
how to dox? what do you mean by that?
bro stop using GPT for your code. You can just ask well. What is the problem with this code ??
Only explain, do not write code for me
Devs don't need to dox
there are bully's on dc i wanna hack em and take revenge even if they block they keep fiding a way to find me and yeah
I'm not using Chatgpt to code. Just for ideas like project structuring or explanations. I use claude to code instead (jk)
:IssueOpen:
😞
might stay that way given [current events]
okay
sorry to hear that. the best thing you can do is to just keep blocking them on each account until they give up on trying to mess with you.
Does anything either openai or Astral said indicate that development of ruff, uv, or ty will stop? I haven't looked into it much 😅
No. I do think that at some point we will probably get a based[something] fork of the three in case they ever decide to pull a Redis.
TIL. I was expecting this to not work, yet yay!
Got another question. I'm using VSCodium and with the typehint it's only showing the return values as def function() -> Coords | None. How do I expand the coords so it shows the full info?
No, but I think it heralds closer work with OpenAI's Codex stuff.
lol coming from c++ i love Python
Same issue
I feel like pyright isnt as robust as pylance
Makes me consider going back to vsc
Basedpyright
def func(args) -> list:
ig?
Close
An empty list is still a list of tuples. Just a list without any elements
So I'd say just list[tuple[...]]
He didn't further specify that, did he?
yea, i'm asking him 'bout it
Dont be like them
from typing import NamedTuple
class Coords(NamedTuple):
x: int
y: int
w: int
h: int
def function_name() -> list[Coords]:
pass
k
then list[tuple[Coords]]
print(“goodbye, world”)
So real
A tuple of tuples then? Just checking, since Coords is itself a tuple.
I guess.
list[tuple[Coords]] would be a list of 1-tuples each containing a Coords
which is probably not what you want
unless you want to use the "pistol operator"
What is the best youtube python full tutorial
(n,1,2) shape
Why not (n,2)
This is CS50P, CS50's Introduction to Programming with Python. Register for free at https://cs50.edx.org/python. Slides and source code at https://cs50.harva...
Is there a CS50R (rust?
Bro i want beginner tutorial
that's what that is
Hi thuri
i dont think anyone would consider teaching rust to beginners prudent?
WHAT THE HELL IS THAT
So when I made a model using PyTorch and train it for around 20k times using numbers (inp 2, 3, 4, 5, out 4, 6, 8, 10) it doesn't give the right answer even though I have trained it
Why does this happen
Too lazy to think of anything else
Who would learn Rust as a beginner language … you need to at least know C and Haskell first :)
where are you getting this model from?
It would be cool
dont be surprised no one wants to help you if you say their suggestion of a beginner course is for kids
how can i create a bootstrap installer?
can you be more specific
I need to check if a chess engine binary is installed which ive done but how can i make it, if false it installs the binary from the website
im using stockfish for it
-# what does that have to do with bootstrapping...
what have you tried
Bro who is that cringo who is teaching a few kids
Usless shi m'guy
You should honestly learn c before rust hot take
I've checked for the platform and using urllib but i dont know how to handle permissions for windows
at least a little bit
permissions?
why do you need permission to download a file
Yes
it wouldnt execute without the permissions right?
pistol operator is such a cool name
have you tried?
whats the error you got
for windows it doesnt matter
but for mac and linux
it's chmod
wouldnt it require a chmod
yh
but how does that translate to python what do I need to do?
Maybe it has a shebang on it
consider using pathlib instead, it has https://docs.python.org/3/library/pathlib.html#pathlib.Path.chmod
maybe it would work
do you have docker desktop?
wont the chmod which is what I need just be the same as os libraries'?
pathlib is the more modern way of doing things, but you can use os too
my bad because i didnt know this was available in os
it says it requires octal codes? would that just be whatever the permission code is for chmod+x and 0o
0_o
For execution just +x
Oh 1s
What says it requires octal codes?
I searched up full access permissions it says its 755 would it just be 0o755?
chmod on the os library for permissions
p = Path('setup.py')
p.stat().st_mode
p.chmod(0o444)
p.stat().st_mode
``` is what the docs say
L bot
So yes do 0oXXX
If using pathlib
isnt the portability of permissions in pathlib basically UNIX centric
pretty sure it does functionally nothing on Windows?
Windows is completely different
@sand summit whats up?
yes
pathlib does that
but os doesnt wait does it error?
maybe one day we'll get a semi unified permission system that works on *NIX and Windows systems
pathlib ACLs when?
No Microsoft would never do that
And pigs shall fly on that day.
not suggesting Windows adopt UNIX permissions haha
just pathlib supporting ACLs which seems to mostly be the common denominator between *NIX and Windows systems
They should
anyway i have been hired as the CEO and CTO of microsoft im about to announce some sweeping changes to how windows permissions work
Please delete windows
theres probably some other system differences that would make even adopting ACLs into pathlib difficult
You gonna get rid of the malware while you're at it or you gonna pump it up?
Mfw a powrshell on-liner disables AMSI
🥴
i promise you windows 11 was not meant to be a malware
Doesn't seem like that.
Winblows 12 OS as a service when
when i get fired for making consumer-oriented decisions, of course
Oh... You want to run that app? That's gonna be $1/month per app.
$2 if you want to update it
$10 if you actually want the update to work. $20 if you want the security fixes to be included as well.
(the app is vibe coded and full of CVEs and you will like it)
at this point this is not even satire anymore, we are just making predictions
This is not a prediction it's just Microsoft
im sure Nostradamus has plenty to say
Windows 11 march update broke networking again
ok and?
One of my colleagues has gone all in on vibe coding. He had the markov chain rewrite the readme for one of our repos and, I'm guessing, he put it up for review without proofreading it. APIs that don't exist, factual errors, and so many more issues. I don't remember the last time I left that many comments on a doc issue.
Windows 12 the first OS powered by AI
i wonder why random people try to send me friend requests, and when i ping them in here to ask them what they need, they just dont respond
We need friends 😃
ive never heard someone refer to it as markov chain before
*noose around neck* first time?
far from it
reads like a slur
pretty accurate no
im surprised you havent
Do you think it's inaccurate?
very funny chat
shall we call markov chains clankers instead
What is a markov chains
!wiki markov chain
staff only
mfw probabalistic FSM
In probability theory and statistics, a Markov chain or Markov process is a stochastic process describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event. Informally, this may be thought of as, "What happens next depends only on the state of affairs now." A countably infinite sequence, in which the chain moves state at discrete time steps, gives a discrete-time Markov chain (DTMC). A continuous-time process is called a continuous-time Markov chain (CTMC). Markov processes are named in honor of the Russian mathematician Andrey Markov.
I shall get more creative with my insults
.wiki It's a lancy command.
I'm too old to remember these things.
weak excuse. :3c
What were we talking about?
Is it releated on how LLM parses tokens?
An insect collection.
Yes.
So... My code?
they produce output "similar" to LLMs
Can someone explain the difference between python, programming developing and machine learning?
is this an exam question or something
I’m new to all this..
Python is a programming language used for developing (or programming) software. ML is a fiend in artificial intelligence research.
Can those be combined?
Cus I’ve seen stuff like ai engineers
Is that completely unrelated to python
Take a look at https://dl.acm.org/doi/10.1145/3442188.3445922
"AI" can be programmed in Python.
Python is THE primary language for AI, in fact
Is use google collaborating for python? Frowned upon?
Bcus I wanna try a mini project
more details
Idk if I used it and talked about it on my cv it’d be gd or bad
Transformers are Markov chains
are they?
Colab*
A form of them.
Yeah, the definition is wide enough that it serves as a class rather than any one particular thing
Like, it would be weird to say mammals are similar to humans
.topic
I took my first Python class in 2014. Used it a little. Took my next one in 2018, IIRC, when I switched to a role where I needed it a lot more.
i just check the OS name is not equal to nt if its true then I can just do the os.chmod
The second lockdown
2020-2023 about
i wasnt trying to give a comment on what you were trying to do fwiw, it was just a tangentially related thought i had
one ive had for awhile
It used to be prohibited
Apart from liking myself. I will not abuse messages reactions
nothing will ever change my hate for bootstrap (the js library)
genuinely terrible to use, terrible to look at
(not python sorry)
You know the rules... 😉
My mental model is LLM is close to your old school markov chain text generation, just with a much much better probability distribution.
and so do I
Pretty much.
Back in 93
Can you teach them to me?
Nah jk I wasn't alive
thats what the rest of the people online seem to think as well now that im looking it up
Is prolog still used nowadays?
Aren't we in epilog by now?
Nah, I am referring to prolog, the language
as if you are now?
when is the sql releasing
After I finish bashing the keyboard.
in college courses
something else
what are you looking for
natural language processing
no. it used to be used for machine learning, but not really anymore
I asked for that.
got replaced by neural networks?
that's a bit of a category error. the language used is python. a neural network is a model
yeah sure
i saw that XcQ and i knew
i always mix up prolog and verilog
gonna start applying category theory to English
2 very different things, i know
i thought it would be the dQw
also why would you skip the first 22 seconds @shrewd pine
Not the 4w9?
these are the funniest errors, had a classmate yesterday ask me if I deployed on nextjs or express
To get to the rules lyric.
had to look at him for a good 10 seconds
fucking hell i apologize on behalf of all the js devs
fucking second hand embarrassment
Someone's in a mood today.
So why most deploy on react?
react is not a runtime
Should I react to that?
You need something more proactive to run on.
another one asked me if my db was supabase, postgre, or sql
man
is that not a valid question tho?
im out
supabase is based on postgre
theyre like 3 different layers of the same thing
and you already know the difference between postgre and sql
Right and you can still have postgres without supabase
yes, but a more correct question would be like supabase vs neon
the way they worded it implies they're all of the same category
rather than supabase vs postgre
ah I see
imagine if someone asks if your db is sqlite or sql
yea that makes sense now
They still make SQL?
oracle makes 5 billion SQLs a day
running on 3 billion devices
I thought Disney made a lot of SQLs.
the same 3 billion devices as 10 years ago
"Does /dev/null support sharding?"
I still didn't earn my first SQL
"how do i backup the data in my /dev/null"
what video
mind sharing the video?
🍿
my interest is piqued
That would require an eviction notice.
but how do you
OH THIS WAS NOT SUPPOSED TO BE A REAL INFORMATIVE VIDEO
You can scroll back for the rickroll.
i think its pretty informative if you look at it with your eyes closed
i saw this on my recommended and i thought it was the same category as https://www.youtube.com/watch?v=4ht22ReBjno
Rick Astley?
people should be put in jail for exposing children to Kubernetes
what is kubernetes and why is it
how many minutes in were you
It's abuse.
0, i saw it in my recommended
see ^
what is netes and why is it kuber
I saw a video about teaching docker for children
whats a kubernetes
i wonder if kids have the intellectual capacity to understand linear algebra, they just havent had the time to build up their math knowledge
which can be, but is not necessarily, docker containers
I still don't understand it
what's a container and why is it
A form of torture.
It's what you put your leftover code in to rot.
less plastic
imagine if you have a fastapi server and you want to be able to turn on more computers when more users show up, how would you do that?
your system also needs to be able to route requests to the computers
this is good
why turn on more computers if I can start more processes?
Because there are only so many processes you can run at a time.
is kubernetes people in demand now?
i hope the mindvirus spreads to your head too
where do you draw the "kids" line? because countries that belonged to the warsaw pact do in fact teach linalg, some group theory, and more during high school. to the extent that, from the curricula i have seen, i would say they see more math in high school than most engineers will see in their lives even if they go on to do a phd
because that computer only runs fastapi, its only job is to run fastapi, and this fastapi process has used up nearly all the system resources
Clipped the data to /dev/null part for the joke specific. lol https://youtube.com/clip/UgkxRmYGqeorIGEvRZhbANCp15trH6MRUQUw?si=d4zxzBoWCMAhihof
im gonna be so fr with you dude
i did not expect a serious answer to this query
ah
hey guys
anyone code in c++
Hey
5, no
4, maybe
Lots of people.
5 in dog years
I'm not one of them.
life is good
i think high schoolers definitely have the capacity to be taught group theory and linear algebra
kubernetes does this controlling for you, it can add or remove fastapi containers as the traffic changes
and a lot of other things too
then make a program that runs other programs in controlled manner so that they can't use so much of resources?
this is just one example
our brains evolved to think about groups of humans after all
wrong reply?
anyone think catppucchin theme is mid
that meant for me?
this was an amazing watch
the mind virus spreads
i laughed my ass off at the /dev/null comment when i first saw it
yea what happens when you have like 20000 requests coming in at the same time
"Holy shit, for my own mental health I'm going to assume you're
just messing with me."
your one machine running fastapi is not going to be enough
i dont know if its the robot voice or what but it was amazing
summon another machine that shares the load
exactly
that's what kubernetes does
/tp @m me
hey do u use linux by chance
And that's what automated scaling in a kubernetes setup gives you. Also, scaling down when the load lightens.
i just complied gentoo took me 10 hours
yeah whats up
i would probably really like Gentoo considering how much i prefer compiling stuff from source
I gotta try it hands on
Masochist.
i complied it so my pc could run like a smooth charm
see minikube
but my love for Debian supersedes all
and she runs like a beast
k8s (kubernetes) doesnt make that much sense if you are just running something at like home server scale
it makes sense when you are scaling up to enterprise scale
This is off topic for this channel.
whats the beef between linux and nvidia
is this not off topic?
nivida ;-;
Is what not off topic?
Nvidia has a problem with releasing open source drivers
well im sorry, for bringing this thread off topic
but theyve gotten some stuff out into the foss world now
yeah my faculty said he recently connected 10 super computers using kubernetes in a huge hospital
Most "enterprise scale" doesn't need K8 scaling. It just turns into a convenient way to deploy containerized code and manage infra.
are they scared that they will expose them leaking our data
like we already know ur taking my data nivida
i mean maybe
k8s makes things easy even for a home server
fair point, should have led with that
This is why I didn't touch that until now
but more probably they just dont like releasing stuff analagous to trade secrets
now this is why i use amd drivers 😭
if its somewhat technical you wont really be called out, dont worry abt talking python all the time
you should ignore my message from earlier
but most k8s deployments are just an app pod and a database pod
Never encountered 20K requests before
true
Not all at once, surely.
suppose you need to deal with 20k requests at once
how would you do it
OOMKill
I would die
panic
at an internship our APIs were at about 5k/s globally
It's true that the scaling is impressive. Argo rollouts, even more so. But it tends to be lauded as the selling point much like "blazingly fast" with rust. A great feature, sure. Not the primary selling point. hehe
queues
20k servers
k8s stuff is fun.
I had the chance to run some pretty decent workloads in k8s. Data pipeline stuff, multiple microservices.
i think over time i am starting to see the benefits of containerization, but if you were to explain this to me like 5 years earlier i would have thought it overkill
Things that would idle at 10 pods and spike to 2000 at heavy load times.
"at once"
20k requests... a second? minute? That's a decent chunk of traffic to imagine "all at once".
where redundancy?
queues
your server cant take 10 minutes to clear up this queue
why not
more queues
because 20k requests/s
my server can take 60 minutes to clear up this queue
Your point?
If you don't have a queue on something eating 20k events "at once" you're building it dangerously loose.
so is it 20k requests at once or is it 20k requests per second
even the most basic single threaded server has a queue, technically
20k/s in the load balancer, each server maybe does 50/s, 400 pod instances plus 100 for some headroom.
Not terrible.
we are talking about the benefits of being able to scale up compute, which one do you think im talking about
so is it 20k requests at once or is it 20k requests per second
dirac delta qps
are you a beginner
very
The largest system we have where I work doesn't even come close to 200 pods at 6x peak traffic. It handles hundreds of thousands of requests a minute. What were you doing that had 400+ pods? Sounds impressive.
Do you force people to use python?
True
what have you learned so far
Obviously.
surely it depends on how much you are provisioning for each pod
there was a cassandra database at the internship that was approaching 1000 nodes. not quite the same, but pretty horrifying nonetheless
each pod handles one bit of a request and passes it on to the next
microservices? meet nanoservices
API microservices that would take bulk data loads at specific times of day from vendors.
We gave them a max of 2000 instances to churn through the queue (it was driven by file drops, split up and then handled piecemeal in GCP PubSub queues)
Then they came back down to idle at 10 or so.
Hi folks! I encountered something weird while exploring the fold property of datetime objects. I am surprised to see that dt1 < dt2 can be DIFFERENT from dt1.timestamp() < dt2.timestamp(), and it feels like a bug. Here's what I mean:
>>> t1 = datetime.fromtimestamp(1604221200.0, tz=la)
>>> t2 = datetime.fromtimestamp(1604217660.0, tz=la)
>>> t1
datetime.datetime(2020, 11, 1, 1, 0, fold=1, tzinfo=zoneinfo.ZoneInfo(key='America/Los_Angeles'))
>>> t2
datetime.datetime(2020, 11, 1, 1, 1, tzinfo=zoneinfo.ZoneInfo(key='America/Los_Angeles'))
>>> t1 < t2
True
>>> t1.timestamp() < t2.timestamp()
False
This time range happens to span the switch from PDT to PST, meaning that the same hour of local time occurs twice.
I'm Preocts, not Shirley. It does, to a point. Scaling wide but flat doesn't make any sense when you have room to scale tall.
things
have you ever made projects
For some context, each instance got about 0.25 CPUs and 1GB RAM. So, relatively small FastAPI services.
probably
when did you start learning python
ive always found it funny how we measure compute provisioning as a fraction of a CPU
maybe 2010
i provisioned 0.012V and 0.3g of silicon
That's an impressive number of pods. I have a service we just inherited that doesn't have limits on its horizontal scaling. 1000+ instances at spike traffic. Absolutely crushes everything downstream. That's next month re-infra
even though yes it makes sense
thats 26 years how are you very new to python
16 years
maffs
why? wouldn't you have less overhead if you had a few fat instances?
quick math
where did you learn math. lol
but you're good at it though right
Each pod thinks it has multiple cores.
Not really. They didn't need the extra resources to finish their tasks.
A bigger instance would mostly be eating that idle resource and starving other services.
i was taught math in public school, just like Karl Marx said should happen.
I'm just impressed the downstream could handle that. The pressure of all that spinning up must have been enormous.
i use it for cyber security so yea id say im pretty decent for networking purposes
the comparison operators naively compare wall clock (iirc), if you want unambiguous comparison use timestamp or convert to utc first
so?
Some days it's like a cartoon firehose with a giant bubble of water passing down it. 🙂
At least, the metrics on the PubSub queue sizes.
unfortunately big government has filled my brain with communist propaganda like integer factoring and sat solvers in middle school
you are a cyber security? what's your role
It scales better with less CPU idle time.
soc analyst
elaborate?
how long have you been doing python
I bet. Personally, I aim to make the firehose smaller. Especially if the downstream pressure is just absorbed by more queues. You can only move as fast as the slowest part of the system.
i still dont understand how "each process pod thinks it has multiple cores" translates to "scaling better with less CPU idle time"
i dont do it anymore. i think i first touched Python when i was like 13. i stopped using it around like 17 i think
i'm sure it would depend on the specifics of the system
is that offensive defensive what is that
Argyle or wool? Or wool argyle?
Source lines Of Code analyst
defensive
It's very rare to ping all the cores on a system even with a super heavy load. Multiple pods on a single machine will allow for more threads/processes running.
ok...
Python is so peak I'm waiting for anaconda now
c++ is better
anaconda?
you don't need anaconda
itd be cool if Python versions started going by codenames based on the various species of snake
Man who's gonna write allat
how so
what is anaconda 😭
That syntax messes me up
wym whos gonna write allat?
c++ is for the higher up
like Debian's Toy Story codenames
how long have you been doing python
I liked fedora's versioning
big syntax big code
python is for beginners
-2 months
what does Fedora use?
its hard for him
Kinda, yeah. The overall system was slightly clunky, but it had some good principles designed in.
Most operations were driven by object storage: drop a file in a bucket, it triggers a function that pulls in the file, works on it, then pushes that to another service's bucket.
APIs were there for some on-demand data, enriching some of the file data from an external source.
So most of it was drop to a bucket, have it picked up by the bucket's owner service, processed, moved to another bucket, rinse repeat.
It had the advantage of idempotency, so if we re-triggered an event on any file, the downstream systems just re-ran and cleaned things up again.
And again that trigger was simple, run a command in the bucket to "reset" any number of files and data just started reloading.
i somehow doubt that
Holy yap
rude
i been coding in python for years and i like c++ more
some suite of softwares related to data analysis and ML afaik
Sry gng
funny how that works
something like X and X+1 should have some "is a" relationship, but not the same one as X-1 and X
i have never seen someone coding for 11 years and still thinks that "python is for beginners"
but that's just me
well i do think its for beginners
everyone says that python is for beginners wdym
mmm, tasty idempotency. I to appreciate the view I have of it so far.
was that a fucking anime girl i saw
so unprofessional, smh
and then the higher up would be c c++ or rust if ur feeling picky
can python be coded in any ide
let me guess, anubis??
that one anti ai whatever it's called
probably Anubis
omg its anubis
oh lol
c++ is not for the lower
c is
i'll let you decide if you want to escalate this matter to mods
is this ragebait
u can put anything together
I mean, it's more syntax
eleven whole years btw...
Yes.
ragebait
you said you are a beginner in Python u lied
ragebait sounds so much more alpha than trolling
I didn't say I was a beginner at python
why would i rage bait c++ is just more easy to remember other than python when u can write anything and it still runs
skull i would suggest to attain familiar with either c++ or python before you make claims about it
I asked you if you are new to Python and you replied very
I first learned programming in C++ in high school.
That might be why I went into warehouse jobs instead of doing any programming for several years; and only got into Python when an interesting problem came along and I remembered a buddy mentioning Django so I gave it a shot.
💀
i program exclusively in tikz
you just asked if I was a beginner 🙃
they claimed they have 11 years in python
someone is going to get swayed by that authority
they could just mean Python is a recommended beginner language for what its worth
I would be a beginner at a lot of things
yes but why did you reply very if you have been doing python for 16 years
thtas what im trying to say
python for 16 years is crazy
I'm a beginner at other stuff, you didn't ask for python, so I decided to be silly
c++ is just better to be honest
Why? There are people who have been using Python > 30 years.
Please stop ragebaiting.
say wallahi
their comments in the tccpp server allege that their confusion here and there about how c++'s switches work is due to rustiness. perhaps they forgot both. 11 non-continuous years, maybe
lol
50 years experience in python. Required
That's how these new jobs be sounding.
Well the docs actually say two contradictory things .. first that "<" tests "occurs before", but then goes on to state that in the case of comparing timezone-aware datetimes in the same timezone the fold property is ignored. My gut reaction is that this is contradictory, and the second thing the docs say seems like a possibly incorrect performance optimization. (https://docs.python.org/3/library/datetime.html#datetime.datetime.fold)
Senior Software Engineer. No experience necesary.
50 years in Python yeah right is python even 50 years old
it's like 37
computed goto in a trenchcoat
datetime1 is considered less than datetime2 when datetime1 precedes datetime2 in time, taking into account the time zone.[…]
If both comparands are aware, and have the same tzinfo attribute, the tzinfo and fold attributes are ignored and the base datetimes are compared. If both comparands are aware and have different tzinfo attributes, the comparison acts as comparands were first converted to UTC datetimes except that the implementation never overflows.
WE NEED COMPUTED GOTO IN STANDARD C PLEASE
little timmy is going to show up in this thread, think that they actually are an accomplished engineer, and just take their word for it that python is a language for beginner
am I the only beginner here?
//for c++ this is how u int a var
#include <iostream>
int main(){
int name = "Bobby";
std::cout << "Hello" << name;
return 0;
}
// python its just name = "blah"
// print(name) where seems to easy to me
i mean python is a language for beginners.
and non-beginners, too
This is now stuck in my head
I just want you to know that you've ruined my night
but u have to make the name = to something
im out of here
so name = "bob"
what's a non-beginner
i am yes
you're welcome
what's the difference between a beginner and non beginner
Experience.
beginner - non beginner = non
- skill
are you questioning my algebra skills
arguably the answer will be -1 or 1
ill have you know i am calculus 2
Which usually comes with experience.
whats faang
facebook apple amazon netflix google
one of many acronyms for collections of notable tech companies
What are 5 of the worst corporations on the planet?
But it's Meta now, so it's MANGA
manamana
google isn't really google
where's the f
cant read nvm
it's alphabet

MAAAN
So it's AMANA?
Alphabet, BlackRock, Apple, Amazon, Monsanto.
MAANA
MANAMA
||Palantir||
Meta
Apple
Nvidia
Google
OpenAI
what about rockstar
microsoft
games
I thought we were playing Jeopardy so I was questioning the answer.
rockstar does not have significant influence outside of gta fans
There are a lot of those
Microslop not on that list? Shame
yeah but its rockstar
ed edd eddemption 2
EA
Don't Meta count as a government entity though. As it was LifeLong before fb now meta
EA sucks but i wouldnt put a game dev on the list of worst companies
Who lobbied the california laws for child protection online?
META!!!!!!!
EA is one of the worst companies
what they do
the worst companies are oil companies
Ngl its probably companies like BlackRock,Vanguard
Tech companies are worse.
no
how long have you been doing python bro
Na if we want to get to the bare bones it's the bankgster
i think vimcompany is the worst
we need another M company so we can make acronyms with mammon in them
so evil
longer than
tbh, depends on how heavily you weigh murder versus torture
probably about 23
longer than whaaaat
Fed Reserve. Is a private company technically
indeed
longer than whaaaaaaaaaaaaaaaaaaaaaaaat
Oil companies don't scale as well as tech companies do. And both do murder.
how long have you been doing python
In another era it would be completely different
It needs to be to be able to function properly.
We didn't invade iran becasue of meta
2 - 3 years
We invaded Iran because of Epstein.
what do you use Python for
we invaded the moon because of IBM
quick scripts + game dev
heliu
in the if elif else statement how is each option called if it has a universally used name
😊😊🤗
That would be cool
@final cosmos
Greetings and salutations!
condition
?
@final cosmos I'm a newbie like you too
alr thanks
I didn't mean to reply to you
k
@worn sage oh hi
if-statements check the truthiness of a condition, and if the condition is truthy, then the code inside them is ran, otherwise not
HIIIIII!
ic
how long have you been doing python @final cosmos
and they have optional elif and else blocks that only run if each preceding condition was falsy and the current condition is truthy (well, else doesn't have a condition, but otherwise same)
i think last year i learned python for 2 months🤗🤗
okay so you better than me at python
I've been python idk like longer than
i think i forgot somethings
I'm having that problem too
That's what search engines are for 😃
likes how to use def conditions
I learned a lesson then I forget it
def is for defining functions. It's not a condition.
you forgot more than you thought if you're saying "def condition" :)
ok tysm
do you know the variables
i think i know that 🙂
okay what is it
Try to make a python project that keeps your interest.
Also fundamentals are boring but can help tremendously as you grow.
technically wouldnt else's condition be the unfulfillment of the previous conditions or smth like that
how are you supposed to make python projects if you forget what you learn
@worn sage banger name
elif is else if. else being what is run when the if is falsey.
You learn because of making projects 🙂
The learning will not stick without practice.
i can use some varible types like booleans and numbers
ik that
if elif maybe melse else
it's not an explicit condition like with if and elif
its the everything else option
You take a project and break it down into parts. Then you try to make those parts in python.
i think
if ...........:
do something
elif ..........:
the integer strings boolean what else am I missing
if cond1:
f1()
else:
if cond2:
f2()
else:
print("neither ran!")
``````py
if cond1:
f1()
elif cond2:
f2()
else:
print("neither ran!")
and else right
i know what elif is
what is it
good for you
the decimals in python*
float
oh yeah the floats I forget floats
i forgots what the names
decimal.Decimal
sure, but they didn't mean that
i thinks
I learned through Gameboy advance modding/homebrew.
Needed some tools and python was the best option
Double?
what game you mod
thanks but they answered is float 🙂
?
?
a combination of else and if
so if the previous condition didnt happen it checks its own condition
sry
Cannot answer that here, but gba is fun to mess with
i said mudadeoliveira
why elif and not else if
because that's what python did
contraction.
can i khow your time zone?
unnecessary lines
both do the exact same thing in the end
I don't know my timezone
it's not more lines to do else if tho
nah bro
but I think it looks nicer to write elif. Python doesn't have else if anyways
i think
why do
else:
if:
...
when u can do that in 1 line
elif:
...
they were talking about how in other languages, it is else if
but python has a special keyword elif
Parsing elif is simpler than parsing else if - the latter requires additional logic.
oh sorry then
no just write else if:
can i use elif in print()
likes print(...... elif ........)
I don't think so
in JS, the {} are optional for if-statements, so it's literally like
if (cond) f()
else
if (cond2) ...
like it's literally "else do this" then the "this" is another if statement
ah, optional braces for ifs. apple's favorite feature
🙂
I make sure to always put braces for clarity (except when writing else if of course)
tho tbh I don't write many else ifs
first one is the scratch method
mostly just if statements with returns or breaks in them
how can i make that script?
with ```
ok i will try
[ put ur statement ]
end with the same symbols you started with
print ( " hello " )
print("Oh. This is nice.")
'''py
print("hello world")
'''
why it not work 🙁
hello
hell mtnjustme
oh
copy `
print ( " deez nuts " )
this `
print(print)
python is so hard bro
u can even print(print(print(print)))
no
this channel sucks right now
it's actually pretty simple compared to some others out there
no you cant do that
.topic
man of course, the worst topic
.topic
based fellow recursion hater?
.topic
.topic
print(print(print(print)))
that's not recursion
you can
prove it
recursion is ok in select scenarios, it's just a bad question
oh sry
like a loop?
nope
ok
recursion can usually be rewritten as loops, yes
print (print(print(print(print))))
what is #help-...
print(print(print(print)))
you can do eval command on the server too
just not in this channel
k
anyone can explain the prints?
not jay
of course
I'm kinda tweaking out tho so maybe I couldn't
why not jay?
now see the print prints
this should print something like <built-in function print> None None '"\'None\'"' in python 2 with the print_function future
the first print() prints <builtin-function-print> because it's printing print(0 directly
because he probably knows
I always know
idk about the rest, but i know print() returns None
except when I don't
yeaa very nice
input(int(print("hi\n")))```
the return value of the print function is None
…
the first print prints the print function
print print print
the second prints the result of the first (None) and the third the result of the second (None)
typeerror probably
and the second prints the prints to print the third print?
what's harder learning C++ or making program language
the /n will create a new line right ?
C++
making a programming language
oh oh two people give me two different answers
depends on the type
ye
the answer is "or"
thanks
learning to realize which of these is harder
if you're making something like a calculator language then C++ is probably more complex
the slash is \n i think , not /
I like how you think can you explain to me
oh
correct
python is so hard
took me a century just to learn to print text in C++
the internet said python is easy but its not
and i forgot already
print(print) gets executed first, which prints the print function (<built-in function print>) and returns None
then the print of that prints None and returns None
and the print of that prints None as well
.topic
all of them
it is easy tho
I forgot what I learned
i didn't know u make projects
There are legit 12 year olds out there that bootstrapped their own C compiler
reset
i cant think of any project i have finished
i think no
Redo
depends on what you're doing
"Umm yeah. I like pep ###, it pretty niche."
I know projects that would not would not impress anyone
🤮
i mean yea
Like?
whats that for
small converter projects
as always, the answer is it depends, learning enough C++ is hard, learning how to make a simple compiler is hard, realizing that compiler theory is harder is hard, realizing that at a certain point enough C++ is compiler theory is hard 🙂
The concept of making my own program seems sickening but tbh am a beginner
c++ is bit** hard
i like every pep 😇 except for the ones that are outside my skill tree and interests i HATE those why can't python have more interesting peps
&bit
Command "bit" is not found
C+-
C//
ok
C##
.topic
