#python-discussion
1 messages · Page 276 of 1
we don't have a channel dedicated for that, sorry
Damn I'm new idk those
I’m learning os, reading ostep. Do I learn the basics of c for it?
Np what's the most relevant for using python for antibody sequence and structure analysis. If there's not one, I can start
it's not handler, it's handle
it's the handle to the window. Handle WiNDow
a handle was kind of like a pointer.
ooh i thought the nd was from handle not window
lel
makes sense
does linux also use these handlers?
or are they only a windows thing
only windows, and it's a legacy of 16-bit operating systems
How much does Windows cost
Probably something with hooking and spying on calls to the windows API and faking responses. Make a fake thing that pretends to be the windows API and keeps track of state and hook everything somehow to replace calls. Novel idea though.
Do some research. There's a lot of moving parts to a video game. Even indie solo projects.
handles were needed because of limited memory sizes
how do handles help with that?
i forget the details, but they were indexes into a table somewhere, and the table had the addresses.
and what does linux use then if im not bothering you
pointers
and how is that different from using an id?
what is an id?
its something that identifies something i guess?
and a pointer just points to something
by id i meant the handle xd
i see what you're getting at but its not quite the same thing
these days a handle is just a pointer, but the name hwnd remains.
yes
though i haven't used the win32 api in a very long time
as far i remember from win32 api, a handle is a dword that is not a pointer, its an ID
dword is just a 4 byte unsigned? (not sure) integer
originally it wasn't the win32 api, it was 16-bit, so the handle was probably a WORD.
Yeah, obviously win32 is still supported but i'm not sure which is the standard now with windows
Thank god i only use cross platform libs
In old Mac programming before OS X, handle were just pointers to pointers. That let the memory manager rearrange allocations to make more room
but can you see how silly that implementation was? just map the handle id to the pointer or piece of memory holding whatever struct or data needed
You’d get a handle to a chunk of memory, and if the pointer to the memory changed you could still access it
Doesn anyone know
How to add selectable points in mathplotlib
either a pointer to a pointer, or the index in a table of pointers. Either way, the extra level of indirection gives you flexibility.
yeah, but the later option is safer and better overall
this usage of safer made me feel like a rust enthusiast which i'm not..
Delphi (object pascal) / C++ background
idk which latter option you mean is better
"index in a table of pointers. "
in the original mac, the pointer was 16 bits anyway, so it might as well just be a real pointer.
all this time i was thinking about real pointers..lol
i'm talking about a time when a real pointer was 16 bits
or was it? Maybe i'm muddled
no, it couldn't have been, the first mac was 128kb
on 16 bits computers pointers were 16 bits as far i know
back to Python!
Thank you for your help earlier. I posted it on the #1035199133436354600 channel.
I would like your feedback too!
how huge a mistake would be to just jump to develop the endpoints of my application without any auth and then when its convenient add auth?
pretty common tbh
I find its something that will waste my time and won't add to the general value right now
you can build whatever part first that you want.
Hello, I have finished watching the CS50P course, are there any more popular resources for learning python?
At this point it might be a good idea to do a few small projects to solidify what you learned in cs50p
are there any recomendations?
Motorola 68000, 16/32. 32 bit registers, 16 bit address bus
Why'd the picture change?
!kindle
The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
damn it i was close
I thought black history month was all month
Yes, but we don't do the branding all month
Yes sir!
surprising lack of bannables for bhm this year. wonder if june shall provide similar paucity
morning
is the branding worthwhile if it historically causes issues with "bannables"? /genq
i guess helpers wouldn't be in charge of that anyway, mb
Subjective. But it's important enough that it's been voted into existence by staff.
okay, thanks
Evening 😃
are test suites worthwhile if they cause issues during development?
Cause or expose?
think of it as a great way to debug
Isn't that the point? Pain now instead of pain later?
It is annoying when I'm doing rapid development and the tests aren't stable. But long term tests are critical.
i don't really love test suites but i think i get your point
oh right valentine's
This is quite off-topic but I feel it worth saying; The branding's primary purpose is not a filter or a test. It's to celebrate something.
right, right it's just a side effect
If the tests aren't stable you should probably slow down a bit before they get worse.
Yeah, while the branding can have ranges within a month the holiday reacts are month long.
cool
except AoC, which is apparently the entire year now
AoC - All of Code
Development is still early enough that tests are being outdated not updated. 🙂
Annum of Code
👍
That's a different issue. If the tests are not relevant than just ignore them.
Which is kinda what I was saying. I added in some basic tests as i want the pipeline correct. But then I have to replace them if I redesign to hard. Still worth it.
thanks
If you're in the process of rewriting the code and the tests aren't relevant they should be ignored/disabled.
never made a test in my life, i find it burdensome
anyone here practice test driven development? It seem like the best way to do things for many things, but I am to lazy for personal projects
the thing about tests
Do it now
Use pytest
i find that it's beneficial in helping me reframe my thoughts
I do, but not as an unbreakable rule.
i thought it could be useful to check if the premises are still true
often times halfway through writing a test, i would rethink my implementation
think of how i can refactor things etc
How do people usually host python backends?
What do you mean?
On a host, usually. Any computer or service that provides that feature. There are a ton if different hosting options.
I have a webapp i want to put on the web but how would I host the backend?
Maybe its useful to think about your code as "interfaces" - how the usage will be, how good they are at abstraction
I use Digital Ocean. Other people use Hetzner or AWS or other services like that. Depends who you want to pay. Or you could set up a server in your home lab and open the relevant ports that has security issues that you need to deal with and generally isn't recommended.
exactly
tests are really good at forcing you to look at your internal interfaces.
im not a god programmer i dont write good code the first time round, or the second time round, or even the third time round
so i find it quite beneficial for my development process
But recognizing that and iterating and improving is exactly what makes you a good programmer.
I was looking into AWS but remembered i'm broke, what's you experience with Digital Ocean?
i am a god programmer ama
how different from public interfaces? the difference between internal and public interfaces are who owns the interface and how stable they should be right?
I don't know what makes one a "god programmer" though.
yes. but also, it's easy to not think about the design of your internal interfaces.
I've been happy with DO. I pay ~$5/month for the 1 droplet I need for https://bnet.boo
dime-a-dozen on linkedin
I get that but I don't get what it's supposed to mean. Programming is an iterative process and it doesn't matter how good you are, each pass makes it better.
all. the. time.
tests are also testing you, lol
I find that tests quickly point out where internal interfaces are either overly complex or needlessly trivial. Where I haven't broken things apart enough or where I've over abstracted. These are things that are difficult or impossible to see from the external interface.
One of my harder rules for myself is that if I can't test something, it's not ready to be committed.
there are tools to assess that
we already have codecov
yeah, that is useful, maybe i should try it in my new journey
then what are you worried about?
we are not doing fuzzing at the moment
Event with the last part said; it's not a concrete rule. Like all things, it depends.
so there are a lot of input that can cause issues that we are not testing
Yo I finally learned 1 thing bro
That's what coverage helps you figure out.
it helps a lot
but i realized that there are edge cases that i can miss sometimes
i cant think of a concrete example atm, sorry
There are always edge cases and it's really hard to find all of them.
perhaps you want Hypothesis
exactly
What's hypothesis?
property-based testing: https://hypothesis.works/
im going to suggest that we add property-based testing to the maintainers
Nice. TIL!
hypothesis is great
my laziness in writing tests is overruled by the fear that im going to mess up the data of the ~30000 users
I think you can host that to render.com
Motorola 68000, 16/32. 32 bit registers, 16 bit address bus
anyway i should stop yapping and get back to actually writing the tests
Have fun storming the castle!
its gets easier when you actually start doing
My laziness in writing tests is overruled by my laziness in needing to write all the fixes after I miss something. The lazier I am, the more stable my production code!
The good engineer is the lazy engineer.
another thing about tests: ive found it quite beneficial for other people to understand what your code is doing
because i find myself looking at the tests written by other people to understand the code better
ok i should actually stop yapping now
what good engineer drops the prod database?
@frosty oriole reference
How did you get that from what I said?
because Robin is kinda lazy
💯
Random team member contributing to something I maintain: "So, walk me through setting this up locally will you?"
Me: You want nox -s dev and nox, that's it. That runs everything you need. Look in the noxfile.py if you care to know how it works.
Them: .... I love that.
😄
I don't know Robin.
unfortunate.
folk
The easier it is to run the tests and the lints and the type checks the better it will be.
Yeup!
"What do I have to do to be ready for a PR?"
Did you run nox? Did it pass? You're done.
Especially making it easy to run before it hits CI.
I wish i could just write python instead of LaTeX for work
The one issue I've run into is that I work on a Mac and (for work) PROD is linux and that can, on occasion, cause issues that we can't test properly locally (but are properly tested in CI) which make life a PITA.
For the OSS stuff I've run into issues in Windows/Linux CI that I didn't have locally on my Mac.
So "It passed all the tests locally" doesn't always mean it will pass CI if CI does it properly.
Write Python that writes LaTeX?
I tried writing an mcp for it
I haven't run into that issue with the folks that use Windows at work. It's a possibility though and one I'll happily spend a few hours overnight to iron out.
Havent given it a real go in python though since it seems like id have to use a mainstream ai api to do it
The Windows stuff I've dealt with mostly is FS related. In the case that I hit it was the tests being written in a nix specific way.
Local models on a mactop dont perform well enough
Oh wait, I have run into it at least once. I have a cli utility that "fixes" certifi certificates for operation behind the corp vpn. That one didn't play nice with Windows at first. Had to fix quite a few little oddities.
how do i take discord out of fullscreen
It's always something.
f11
I also write on mac and deploy on linux but linux seemingly has less problems than my mac when writing
It was file (share|access) related too. Windows is so peculiar about that.
That happens sometimes. There can be some little idiosyncrasies. Such as AFS not being case sensitive while every other nix system is.
APFS?
linux: You want to write to the same file as sixteen others right now? Sure, fine. Don't cry at me.
Windows: Excuse me, you cannot touch that file as someone--of whom I know not--was thinking about it at some point.
Yeah. Windows is weird when it comes to that.
Yeah.
interesting

I tried arch on mac and it was damn good
Too bad it lost support
Although id never try wsl
Would rather use a VM or just launch from a usb drive than deal with microsoft
pyright i think is the only microsoft i still use
Not even sure if its even theirs
WSL on Windows 11 is quite nice. Would recommend if needed.
I try to avoid Microslop like the plague. They turned a reasonable OS into malware. Deliberately.
Yeah i have a vendetta for all the wasted time i spent debugging anything on there
Like how does a sound card not even work out of the box on a fresh install like wtf
Also why are their ISOs so huge?
Easily 25-30GB
Might even use steamos before using windows ever again
Off topic anywho
true
Is pyright owned by MS?
uhhh what
It's ~7GB, no need to be extreme.
it's like macOS size
it's not 20gb+
i remember win 10 being something like 4gb
iirc
7??? More like 15!
you're probably thinking after its extracted and installed
I remember sitting at the computer changing floppies so often to do basic installs.
Doom was ~15. Win3.11 was 7 floppies. Maybe nine if there was language packs included.
I remember some MSFT product back then being ~15. Maybe it was Word?
insert disk 7 of 18 lol
floppies? in python discussion? unimaginable
Could have! I just happen to have been moving the win311 install kit last night so I remember 7.
for the youger ones... A floppy disk is the "save" icon.
Fair enough.
Hi, everybody
Why is that an "Oh no"?
Greetings and salutations!
They had 1.4 mb of storage the size of your palm, and in less than 20 years, terabytes on micro sansdisk
Pretty crazy
it's significant work to write
oh, @vale wasp Nice to meet you
I'm currently holding a 32GB thumb drive that's smaller than my thumbnail. Absolutely mind boggling. ((and it's not even that much storage in comparison))
crazy
It's general
some say the printing press is the greatest invention in human history. Idk, the transitor is right up there.
Waw!
we literally walk aroud with star trek technology in our hands and we watch... tiktok or whatever kids do these days.
not all kids
But you've figured out how to make it better. Is it enough better that it's worth the effort?
The internet capable smartphone is better.
of course
yeah i know just an old man yelling at clouds. We are still turning out engineers and comp scientist.
walk around with star trek technology... ssh-ing into my pc at home
I have 128GB on my lap.
thats kinda like a teleporter if you squint your eyes lol
Agriculture
or maybe fertilizer
The printing press enabled the scientific advancements that led to the transistor. Without the printing press knowledge would be much less readily available.
dunno, agriculture was definitely more of a discovery than an invention
hey i'm technically a kid and I program (i'm 14 btw before anybody tries to report my message)
There you go.
yeah, but where would we be without fire
of course the inventions stands on the shoulders of giants, but they still see further than before
whoever invented beds because its geneuinely irresistable in the morning at 7am
it's still annoying
Fire enabled agriculture which enabled civilization. The printing press enabled real scientific advancements and global collaboration.
But worthwhile.
That's okay. It just means you are more up with the tech than some of us here.
I think it changes based on your definition of great, the very first discoveries are simple but allowed progression. First isnt super great or complex
that hit hard
didnt mean to start a tangent. But I will say cause/effect is not really what I meant.
What we see as simple was not simple at the time.
Next time please start a cosine.
🥁 🤣🤣🤣🤣
lets break out the proofs! everyone open your text book to page 23
Suggest more topics here!
!pypi py-wordsearch-gen
!pypi cooklang-py
!pypi render-engine (This one I'm a maintainer on, other people started it though.)
!pypi re-plugin-pack (And this is plugins for Render Engine)
Yeah, it's wild. Partner just installed two 2TB ssds into the new computer. Just... what even will I need that for?
This was was used to create the word searches the PSF handed out at PyCon US last year.
I have a 2TB external drive attached to my Mac Mini because that was cheaper than adding storage internally.
I actually logged into PyPI to verify the package names before I typed them in.
yeah im doig that rn
I'm actually thinking of modifying the word search generator from a CLI to a TUI - I think it will make it more usable.
Well worth doing. There have been a few typosquatting attacks, even on PyPI.
PSF security developer in residence coined the term "slopsquatting" last year.
!pypi quaternionpy
this is mine
Nice
im also working on an api wrapper
Oohh, my lib disappeared
That's not good.
disappeared from where
I had created a library/framework called Con-re, which was used for testing, executing large commands, and managing specific parts; it even had its own language, called cr.
I must have deleted it from PyPI.
So what happened that it's no longer on PyPI?
But it was awful, I couldn't get it to work properly.
But it should still be on my Github :D
You can try it, but you'll probably find it unpleasant.🤣
i'm not seeing evidence that a package called con-re was ever hosted on pypi
Bruh, what do you mean? I remember very well hosting him.
Let me see here, I made a project roadmap.
I hosted it on TestPyPI, according to the roadmap.
It sounds like it wasn't ready for the majors.
It wasn't there, but it was worth a try; at least I learned more about creating terminal programs.
yours is called conre, without a dash, it seems, but i still don't see evidence of regular pypi having it. though my sources are not absolute
Even though I know better I still pronounce (in my head) PyPI as ππ.
There is value in that.
wym know better? that's one of the common pronunciations
That's the one.
ππ is PyPy. PyPI is properly pronounced PIE PEE EYE to differentiate.
or they're both pronounced the same, differentiated by context
Yes :D
i say piepie
I have been told that they should not be. By the people that run PyPI.
ah, so it is.
getting people to follow that guideline, on the other hand
Getting people to follow any guideline...
sounds like you got conned
first, i was right
second, 
Actually no, I just got confused, he was right :D
My package was on TestPyPI, not on PyPI itself.
And you added a - where there wasn't one.
Typign is hadr.
In my project folder, there's a hyphen (-) in the middle.
bold of y'all to assume I have any other context besides con-re
yae i htae ti
Ofr eral
guys I want advice for python project idea what should I build
I just saw this message and saw an opportunity for a pun
So msot poelpe wlil be albe to raed tihs wihtout seroius isuse becusae the fisrt and lsat lteter and wrod lentghs remian the smae.
What are you interested in?
cybersecurity, finance and I guess I can say Art
I unfortunately didn't understand the pun.
Try doing some ascii art?
con
true im just creating stuff for a portfolio since I already worked on a Remote Admin Tool, I created some cybersecurity tools for a portfolio project. Man I am just stuck right now.
now I am working on a API for invocing as a portfolio project with one of my buddies
So try something new and different.
Thank you fellow python user
also I want your opinion is it really worng if I use AI for researching and looking stuff up but I am still thinking and learning?
You are the only one who can answer that. I will only say that you should not release code for use by other people if you do not fully understand it.
the thing is I do
and plus I also contributed using my own code
maybe I am just overthinking again
If you release something into the wild you have a responsibility - to a point - to maintain it and address issues in it. You can't effectively do that if you don't fully understand it. That is the only point I am trying to make. LLMs are a tool and if you can use them effectively, more power to you. The issue I have with the code generation is that it tends to be overly complex and, therefore, difficult to understand and maintain.
that part is true
this is why for me I always fact check it to see if it works since sometimes it can release redudant code
i made Mad Libs from https://nedbatchelder.com/blog/202011/mad_libs
mad!
Hi
!pypi climail
Only one 💔
Only one yet.
is that a teen programmer I cant believe it theres someone like me here
Greetings and salutations!
Yeah
nice to meet you fellow teen programmer
Who knows, maybe one day I'll launch a real library on PyPI.
Not everything on PyPI is a library.
I think I know what Im going to do for my next project
All (python) libraries are packages but not all packages are libraries
yall arent the only ones 💔
yeah man
theres more
Icl i havent written anything in a really long time
same
is there a new code jam?
Not yet
whens the next code jam and what we going to do?
It'll be announced at the time of the event
is there a project anyones workin on rn
no im tryna find out what to do
its like I did everything what else can I do
Im working on a vehicle dynamics sim
tbh I may just go create a open source project ngl
Why is the logo a different color
See #changelog
its black history month man
package manager, discord api wrapper and a http/ws server/client side lib
Hi 👋
I’m learning programming.
Can I ask you a question?
We should make a command !logo-color that just links to the latest post on #changelog icl
When has anyone ever remembered that lol
You just did.
W community
But I'll give you another one, on the house. 😉
go ahead and ask
hey @chilly trout may I dm u?
sure, about what?
pretty cool icl
im thinking of creating a project and im tryna get ppl
why are you writing a discord api wrapper though?
sounds interesting
is it paid because if not it depends how interesting it is
eh for fun
is it bindings to python
because atp why not just use discordpy
tbf discordpy is annoying asf to use
mine is gonna be a more easy to use maybe
do you have it on github?
is it literally sending http requests
idk how discord bot API works but cant you just bind the C library to python
rn im working on a game engine in cpp
pretty fun project
in python though
you could always try to create one for youreslf
Why am I suddenly getting OSError: [WinError 17] The system cannot move the file to a different disk drive?
Let me sanity check my code
I dont know cpp though I only know python
learn cpp
You're doing FS operations on Windows. Nuff said.
why even ues windows atp
if Im already learning python, golang and js should I learn cpp I mean this can be good since i want to be a software engineer / cybersecurity engineer & red teamer
Path.move doesn't care about file system boundaries but apparently Path.replace does.
I don't remember why I used this method... move is clearer anyways, guess we're just going back to that
oh yeah no if your into cybersec id completely move to cpp
I can add that to my list of tools
You should at some point but don't overload yourself.
i mean its personal preference but automating the exploitation of vunlerabitlies is much cleaner in c
yeah thats the thing since its like python, golang and js is already good since i plan to be a SWE
We were kvetching about tests failing in Windows because of FS issues.
im not trying to stress myself out here lol
i mean, if you know how memory works cpp is pretty easy
*once youve understood how programming languages work in general
A lot of software is written in C++. But you are young and do not need to learn everything at once.
*not as a begginer of course
true
once point i will make is that in security research specifically you pretty much NEED to learn C
like no way around that
Might be Gipppity's fault
Gippity also said I can do this to launch a Textual app from Typer if no Typer subcommand is invoked
But now it's opening the Textual app on every run of the CLI and waiting for the Textual app to be closed before executing the Typer command 
app = typer.Typer(name="Xio", invoke_without_command=True, add_completion=False)
app.add_typer(designs_app, name="designs")
app.add_typer(doctor_app, name="doctor")
@app.callback()
def tui() -> None:
"""Launch the Textual interface."""
XiomaraTUI().run()
if your not doing some kinda security research youll be fine
I swear I had this before, I just can't remember how I did it
what can C do that C++ can't for security research?
im doing a trade school for SWE they have a project where you have to learn a new language for the capstone project
but for now I just plan on prioritizing getting good with python and js (by building stuff of course) than moving on to different langauges to learn
I've never used Typer for CLI so I can't really help.
i said C while referring to cpp
its a habit for me to use them interchangably but i really should stop that
gets confusing
ah
They are very different.
yeah i know its just the name that sounds similar
when im not thinking ill call C c++
I know which is unfortunate.
or c++ c
or I may learn c# or C++
since for this trade school they have you at least learn 1 other language
I would suggest C or C++.
what can I build as a capstone project with C++ for backend?
I wouldn't use C++ for a web backend.
or should I build a red teamer chatroom?
yeah
it's just so i can get some knowledge of working with API's
What is the definition of "capstone project"?
no no this is for a trade school im applying to for computers
im not talking about using c++ for the web backend
you just need to use C++ as the primary language for your project?
no
I can learn other languages for this capstone project
what does "backend" mean then?
I would find something you want to make and then find what language is best suited for that
I am using node.js for backend and python
I at least want to learn 1 good enterprise language tbh
i'm very confused
Are you implying that Python is not that?
no im not
tbh im js all over the place
what's your question again
if im learning and almost getting good with 3 programming langauges should I study more
study what?
IMO I would focus on projects and pick the best tool for the project. That's how you study and improve. At some point you will find that the best tool for a project is a new language and you will pick up that tool and learn how to use it. The basic concepts transfer, it's the syntax that changes.
im stressing myself out for no reason ngl
Probably. Common theme among humans.
I think you need some focus. It sounds like you're trying to do a dozen things at once and none of them are going well and it's stressing you. Pick one and give it some love, and then move on to the next.
wow this explains why I've been trying to learn new languages but always stop and move back to python after a couple days
actually this was a bot that I have been trying to get hosted on for a while I was just stuck to be honest
OK. Hosting costs money. Not necessarily a lot but some.
theres no free hosting
I can't say with any level of certainty that there is no free hosting. I do not know of any free, general hosting.
because at that point you're essentially losing money
I should at this point try and host it on my old computer
keeping servers online has upkeep that's the reason why subscriptions are really prevalent in hosting platforms
Do you need something that people reach in to or just something that reaches out?
?
Is it a web service that people call or something doesn't have an external facing API?
it does have a API yes
but it sleeps and I have to go call it manually
im using render
So locally hosting means you will not be able to access it from outside your home network without setting that up - which is risky if you don't know what you're doing (it's really easy to misconfigure a DMZ or firewall.)
how to be good
the API is being hosted on render the only issue is its sleeps
I pay ~$5/month for a simple droplet on DO.
tbh I might as well just go host it on my own manually but I would have to make sure I dont get hacked though
aren't you able to host on the aws free tier instead i heard its completely free
DO have a free tier aswell btw
so why pay monry
More resources
i thought having a card is enough for billing with free tier
I might not have known about the free tier when I set it up or I might have decided that the free tier had limitations that I wasn't willing to accept.
ok
Guys I've read in Saas books that you should market before / while you build your product but what if somebody stole your idea?
suiii them
Well an idea isn't bound by "law"
you can get the patent
Unless u patent
people stealing your idea probably isn't as big of a risk as you think it is
in corporate i think its common
they aren't in corporate; building in public isn't bad advice
just look at these mobile phones copying apple
The case that I can think off is how a game dev studio that made Unrecord got their idea "stolen" by the studio that made Bodycam game
Plus alot of ideas have been done, youtube wasn't the first video streaming platform and netflix wasnt the first movie service
it all comes to the fact that who releases the MVP first
Doordash too
Tru the second movers advantage is always missed, people think because something has already been done they need to think of a completely new innovation
which was the first video streaming platform
Generally got no clue
you must have that one thing that makes you better than your competitor
yt was found in early 2000s
There was probably a few small video streaming platforms that never made it mainstream or close
But there is always the dodgy marketing stuff that helps these bigger companies make it mainstream
yt was not a bigger company it was bought by google..
How's everyone doing today 
i am so bad
What's wrong mate
everything is wrong
Hope it gets better then
Regardless, anyone here upto something lately? Anything cool y'all been working on
I'm thinking of learning something like fastapi :D
I posted my code to be reviewed a few hours ago. Received no response under an hour. I think, people who have seen it must've thought in their mind: how could someone even code like that? 🥀
So yeah pretty much worse.
Writing the good, right code is hard 🥀
I think it's far more likely that someone looked for a direct question, couldn't find one, and moved on.
Full code reviews are time-costly endeavors.
what is window to viewport transformation
Makes sense
even single PRs are expensive to review
let alone an entire codebase
is it true that AI agents are making PRs
It's true for most PRs
How can maintainers know what?
maintainers allow these AI PRs?
Some do, some don't.
i thought everyone rejects it
yo, what do y'all think of using chatgpt in coding
There are very few absolutes, and even those are squishy.
The only code reviewer and assistant i have so far
I prefer to write code myself.
The only way, I use it for is error handling and refactoring code
You do you. It's not for me.
Yeah, I was just to curious to know your opinions
It depends on how you use it. If you're going to write entire code pieces, I don't recommend it; you won't learn anything that way.
I just learned print("Hello world!") how much more of python is there
tab tab tab tab tab ...... tab
am so good
You only have like 10% left tbh
But if it's for support, analyzing errors, answering programming questions, I recommend it.
It's a good thing for assistance, it sometimes helps, sometimes not. So you should be the main brain. Use it as an opinion provider. Not for copy pasting code.
I use it for variable naming when i am unable to, if this func/class is becoming too complex, is this an over abstraction? Am i breaking any principles, is there any std way or de-facto way of doing this, is there a built-in solution than making my own version, etc-etc.
dang am like a pro now
Yeah bro
Good luck man
nah python can't be that hard right
Now try to make your own print, without using the built-in print. XD
wait what
Think think.
No... It's not...
ooh like print("I love pizza")
Try to make a game that deletes system 32 upon losinng
yeahhh
easy
Not that hard, use subprocess to do an echo "Text"
whats an echo
nah just do input("hello world")
input?
yah
Bash language's print
I thought there was only print
Its a stand in a series called jojo's Bizzare adventure
lol
Big brain moment
oh yea I know jjba thats where muscular men fight eachother
It's the function we use to create methods from scratch...
so you make a new print from scratch?
There’s also some women sometimes
Big genius
tbh at this point idec anymore
I used to wonder, how python prints out to the terminal and why only the terminal? I didn't have the knowledge of std* variants.
I did a thought experiment, since it's written in C, it's probably using printf() or similar.
reject if it's bad
your right my bad look at dms
I don't like that part tho tbh
so how would you use input
joseph was cool what do you mean
now how does C print to terminal
Then i looked into github source code, and it disproved my hypothesis.
am on part 3 anyway so idk
You need to go on bizarre adventures to learn.
No, I am talking about part 6 its when women show up
wait python is written in c?
50 day Egypt
change the topic
with jojo?
Created by a guy named Jonathan "JoJo" Joestar.
!topic
jonathan joestar wrote c?
Yup
Yep
yep
I don't know man he was too busy in egypt
CPython is the standard implementation of the Python programming language (as defined by its grammar and spec).
The full code is available on GitHub/python/cpython
so python came from c then what did c come from
Lots of my hypothesis about how python used to work and how certain things do that way were answered as i grew up and my brain grew to handle more complexity.
It was a beautiful phrase. The more i learn, the more I see how less & little i know.
Assembly
In C, initially bootstrapped by earlier programming languages.
c was written in bcpl, and later, c itself
So I have this English Flimmaking project. And the teacher asked us to make a video for this topic. Should I make a slide show and just record that and do the remaining stuff or actually use the video software and make the thing needed? If I do print("5+5") it will return a string 55, right?
how does computers even understand code
010101010100101001010101111
yea but like how does that show stuff on my screen
Also a little fun fact, C doesn't have an official implementation reference like Python (Cpython) does. Its defined is a specification (if that's the appropriate way to say)
They are translated into binary so the computer can understand them.
Then its translated back to us
oh I think those mean off and on right
A compiler compiles whatever we type and then it makes that into machine readable code like 1s and 0s
Yes
power of electronics
Kinda
Did you see my updated version of the website project?
how does it even understand 101010101010101010101
Is that you in your pfp??
Those are just voltages , and even in that, electrons moving from holes
There are certain componenets in a computer and when it's on it gives 1 and when its off it gives 0 so like that.
Zeros and Ones (binary) are not even real language they understand. Its all game of electrons
I think so.
oooh
🗿
so its all just electrons?
Yes that's what i understand based on my research
always has been
*Insert Impressed GIF
saul goodman? I thought you were defending people that had rights
*Breaking bad intro intensifies
wheres the yellow tint
got bored of it , i now make circuits
i think you should understand that these code we write in languages are just txt files. the compilers and interpreters are the big dwags
With an Arduino?
that's cool
.topic
no
With a box of scraps
Cool topic
Because I realised that Game Development is not for me yet.
I wanna build airplanes and I think you need python to do that
And what's even mysterious is that electrons are the one of the fundamental particles, we don't have scientific understanding of what they're made up of so far. Theories like string theory are trying their best to understand them.
Same too.
Aeronautical Engineer?
I was bored
really?
Yes
Is that You in your pfp??
You need to know electronics, CAD and coding to be an Aeronautical Enginner
I started learning Python after studying JavaScript :D
We just don't have an answer to why even stuff like this Exists.
for any kind of engineering degree the very first thing u need is math
I already know CAD and 3D modeling so yes.
I don't know much about planes but I think am good at math and its cool
Basically, I started studying out of curiosity.
I know none!
but am willing to learn
This 3D modeling is the easiest to learn.
does tinkercad count
Since you don't really need to move or get real parts like electronics
Kind of? There's Fusion 360, I'm learning that now. Blender is good but not meant for engineering
There's a free license version for Fusion 360.
oh yea autodesk fusion
So it's like Tinkercad but more advance.
yea I got confused
I also used Tinkercad before
i think i lost my curiosity
I made a lot in it like a missile model.
It's okay.
nice
You can't really use Python 100% since it's mostly used for Data Science.
what if i don't focus on math
This curiosity led to a job for me in another country.🤣🤣🤣🤣🤣🤣
Then become a Scientist.
What?
I like math
the company gave u visa?
Is it the USA?
ii hate math
what math is it
🦅
all math
dang
then you will just have a hard time
math is the core of most engineering things
i score good marks in math but i don't like studying math
I was born in Brazil, got a job in the United States after saving for a long time, passed the interview, and spent those savings on the trip. Now I live in the USA.
i do it for the sake of degree
There's an way to study maths
Now you have a pet snake
Brazil !!
She died last year :/
compsci is different thats why i choose this
I just like it because you don't need to worry about anything else just the answer
😎
Make it into a robot and revive it???
for example , in our electronics , we have to solve circuits and do circuit analysis
and when u actually start doing it , what do you know , its just math , differential equations , different transforms etc
there are subjects like signal processing which use transforms like fourier transform etc and which are all just integrals
you still need math for compsci , its not really that different
I wish I knew how to create a robot snake.
This my first year in highschool chat wish me luck!
We all do. Then I could've made my cat into a Robot.
man i hate calculus so much
Good luck!
Don't hit people. That's it.
It's okay if you do it in lower classess but if you do it in higher classess it can cause problems.
don't worry highschool is cool and it's cool that you know python in highschool
I've already made some robots that could walk on their own using Raspberry Pi and Arduino, but nothing very advanced.
for software development jobs you don't need these linear algebra calculus or geometry
How do I start Arduion? Which kit should I buy?
like it or not , you will have to learn it
although for compsci , unless u choose to go AI/ML route , you dont really need calc that much
I've made an Arduino project before which was an automatic plant waterer but I lost the that Arduino nano...
Dude... Arduino uses C++ as its programming language, that's the hardest part.
Good luck! Stay chill & Sigma 😎
that doesnt mean learning them is pointless
if you are a mathematician , you probably will use a calculator to do all the math for you , that doesnt mean the math u learnt is pointless , you still need to know what to type
My first Arduino was a Nano, too!
Yes but it's not pure C++ and there's a Python addon to code the Arduion I think.
no , no python
I've never heard of it.
I am going to a rich kid type highschool bro
i mean what kind of pleasure do you get while studying maths. do you get an end product. you don't get a chance to apply your knowledge..
yes you do
well am guessing your a rich kid too huh
Well, You do get it
Nope
rip
solving a circuit literally involves solving an equation
for stuff like image processing , you literally have to apply math , thats the application @solemn rain
you can use it irl
Currently... Yes, many areas of development use mathematics, both in the creation of algorithms and in the field of Data Science.
https://docs.arduino.cc/arduino-cloud/guides/python/. Maybe not what I thought.
Thats the point , all my friends going into the same school except for me
You can use probability for gambling.
damn I mean what if the people there are nice
correct use of math ❤️🩹
Math isn't as explicit as python and it breaks PEP8 conventions
Also should for my filmmaking project should I make a slideshow and record that or make the thing in the video software?
I mean there's a chance that the planet will explode
but thats just arithmetic. i am talking about these algebra,trigno,calculus,geometry,combinatorics.. i don't get any value from learning these i feel its time wasted
uuuuuuuuuh what if one person is nice
no , thats not just arithmetic
you actually use calculas , solve integrals , solve differential equations to get results in that subject
Yeah that might work well
just find that one person then
We all gave the test but only I passed and the school is pretty damnn good
you guys gotta do filmaking?
the question is "find the current flowing through this coil in the given circuit" and to solve that you probably need to solve a differential equation @solemn rain
yea if the school is good take advantage of it and you know python too so you can impress everyone
wass, should have stayed a lawyer tbh
It's for my English Project the teacher randomly told us this because it's also a group project and she doesn't believe that we will present it in front of the class. It's a new thing for me so I don't know what to do.
i think its too late for me to go back and sit on these basics and truly understand the applications. am going to complete my degree soon and i been just studying math just to pass exams
no time too
The topic is about the weather of two states of my country.
if you are already close to completing ur degree u should already know how widely used math is xd
what the? please don't say this is sophmore year
or maybe our countys are different so am good
Do what you think that you are the mosst comfortable at
im not saying you will find application for every math concept you learn , but that goes t rue for anything u learn , not just math
No it's highschool
yea but idk it do not feel interesting worth a headache
Our teacher is thinks we can do it
yea sophmore is 10th grade
No...
yeah if you are compsci you definately have the options to choose non math heavy routes
what do you mean
So should I make a slide show and record it
like web dev or whatever
i still don't have clear idea on logarithms and euler thing limits stuff
or make a video like those commentary YouTubers that you soemtimes see?
Yeah, if you are comfortable with slideshows you can do that
Will that look good?
you should know what log is at the very least 💀 ,how else would you know if O(N) is better or O(logN) for an algorithm
what does 0(N) mean
yea just basics its small than n
I mean, sure it will if you put the effort in it
i dont think that's basic math
for a person who is almost about to finish a CS degree ? it absolutely is
for any self respecting programmer, yea
thats very basic math
most people know what a log is even before they go to an undergrad degree
so i would very much call it basic math
theres no way they are in college
not like 4th grader math but still very basic
7th grader math
That's not 7th grader math bro
ik the basics but i don't know anything more than that. and i feel its not worth investing time and effort to it
The problem of using a slideshow is that I can see my mouse in the video
we must be using a different definition of college
eh i can see 7th-8th
their definition of college is probably what we call high school
mm am i misremembering? i was doing logarithms in 7th grade iirc
personally i learned about it (in school) was 9th grade with sort of a mini-introduction at the end of 8th
I'm using Microsoft Clipchamp for the video editing
if you gradutae high school i would expect you to know what a log is or have heard about it at the very least , doesnt matter if u learn it in 6th grade or 10th
well that's true but still not 7th grade, i was doing roots in 7th grade not logs
true...
Yup, console.log, pretty basic.

lol
Face palm
am not telling that i haven't heard of it. i am saying i never really tried to understand it
print("Hello")
breaking: different places teach different concepts at different grades
oh that wasnt directed for you
i think i learned set notation at the start of 6th
System.out.println("Hello, World!");
2ˣ better than log anyway
or 5th?
Explicit > implicit.
switched schools and relearned it 2 years later
obviously its java.lang.System.out.println
i wrote all my java in college with explicit java
!pypi imsosorry
like a masochist
imsosowwy
Even java doesn't follow its explicit philosophy properly. 🥀
someone needs to port the current imsosorry code to lancebot
its not caught up with the state of the art
just use imsosorry as a dependency
lmao the last release was almost exactly a year ago
So you also prefer using x.toString().concat(y.toString())
sir-lancebot#1373
Uh no...
rejected
This repository is a learning tool for our community.
Installing a 3rd party package and having the bot be a thin command wrapper around it does not reach this goal.
Anyone is welcome to pickup the outstanding issues around the uwu command if they want to lean about discord bots, regex, or contributing to github repositories themselves.
A logarithm is essentially the inverse of an exponent.
!uwu based
hmmm it's not uwu
.uwu
anyway i leave it to you to ameliorate the poor state of lancebot
yeah ik that and basic stuff. but my point is why do we need to learn all those formulas associated with it. and in calculus we learn a bunch of formulas again
its not worth the time
So that you can combine these in combinations.
yes i hate that part. it feel its wasted effort on something you won't really use to make anything useful
there is a point at which you use something often enough that you dont need to refer to the docs anymore, you just havent reached that point yet
If you're happy to derive it all from first principles, less memorisation is required.
I'm fairly sure I've used everything I learnt in maths and the sciences at some point, one way or another.
are you software developer
Presently.
for the forseeable future
There are many, many applications of all of these. Including as a programmer, depending on what kind of programs you work on.
Maybe you don't work on those, so it feels wasted to you, but that doesn't mean they're useless in general. I think they should definitely be a part of a general technical education.
there were a lot of math in qm1 that i completely dont understand at all, and im just memorizing things without knowing their applications at all. it's not until the second half of qm1 and qm2 when i finally understand why those math were being taught
you guys actually took time to understand and study maths from basics during university? or your high schools or secondary schools were good that you understood how the concepts work without just memorizing formulas? i mean i just memorized the formulas for school i got good marks but i don't like maths
I confess for some exams I rederived things on the fly in the exam instead of memorising everything.
I guess that's why you don't like maths
I never really did particularly well on tests, but I feel like I got the intuition and concepts down pretty well. I'm comfortable applying them when needed
in university they were building upon what i learnt in high school
when i finished high school , i still struggled with the concepts lile limits , like i could solve an example if i saw one
but i didnt know what it meant or what it was doing
so i did go back t o learn it from scratch
Real
That's not really a bad thing, it's just a smart use of your time if you can think and derive fast enough
math is the one subject where you don't need to memorise everything in high school
More that my memory is lousy. 🙂 And I hardly rederived everything.
once you have gaps in math , you have a really hard time to understand a lot of stuff that is built on top of it
and so u just start hating the thing in general
I used to rederive nearly everything in my physics exams, to great success
it's foreseeable
you a working professional?
Hello how's everyone doing?! I'm bored any fun python project ideas guys
that is WILD
high school i can understand
rederiving college physics in exams is WILD
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
tbh i don't know what a limit is even now
We didn't really have that many physics classes in uni
We had like one on waves (optical and mechanical), and one on electronic circuits
if it's a 2 day on-site exam, rederiving does not seem that infeasible
My HS physics curriculum was way broader
2-day on-site exam?????
yeah, with like sleeping and everything, yk, the usual
i would absolutely hate that exam
WASS
Pydis when joke:
is that a joke?
there are unironically contests which need you to stay there for multiple days
nice, i might have to re learn math but am not sure whether it would time wasted
hackathons are understandable enough
Longest exam i have given was 4 hours long
once i get out of university
Yeah but you don't do that for uni or HS
exams???
And they're not really exams, yeah
sleeping in a multi-day contest is "wasted" time in a competition since you're incentivised to just not
which is just bad QOL
btech?
our exams are usually 2 hours tops
how i won the pygame competition btw
ok
Well, at some point your performance declines, so there's an optimum to be found
even a declining performance is better than 4 hours doing nothing
or more
that's debatable
the hours after sleeping might catch you back up
well, unless it's 3+ days
that's some copium
and instead you have to memorise 3 800-page books cover-to-cover, word-for-word
Reminds me of those doctors who published a paper in which they rediscover calculus in the 21st century
its difficult but its all connected
huh
not some random words except pharma
(a lot of random words)
oops spelled 2-Arachidonylglycerol as 2-Arachidonilglycerol? FAIL
^ this book is 1761 pages long
going to graduate in one year. i am planning to look for software dev jobs and hope they don't ask me what is the limit of this function in interview
as long as it's not data science/analytics etc roles, i kinda doubt that will happen
try not to apply to any Ltd. then
general everything like app/web/engineering
lmao
so final take- learn math from scratch after uni maybe after getting a good job
i have to start making some
Hello!
hi!
"An Idiot appreciates Complexity, A Genius appreciates Simplicity." 🗿
i love this quote
i agree simple code is better than making optimized code
overcomplicating stuff is bad
would you rather be an idiot who can do anything or be a genius who is useless
i am already the former
a genius is not useless.
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
He can be
if a genius is useless then theres no point in being genius
even python agrees
well if an idiot can do anything it will be idiotic
im writing ts right now
Everything he does will be Idiotic
we're all the same genus
troublesome