[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: python_pepe.png (237 KB, 700x1007)
237 KB
237 KB PNG
It let's people of all experience levels quickly achieve results.
>>
File: Untitled.png (159 KB, 417x772)
159 KB
159 KB PNG
>>106477272
I'm currently learning Python now. Some parts are still confusing but I'm starting to get the hang of it. Currently doing the Unit Tests part.

[See Picrel]- will there be more sudden spikes in the learning curve ahead of me? Or am I through the worst/hardest parts?
>>
>>106477272
I do python for 25+ years now. other languages too, but this is the one I keep coming back to, and actually basing business software on.

it's not the fastest but who cares. I fucking love working with it.

too bad the CoC rotting has taken a hold in their community too. here's to hoping they can self-cleanse of the toxic snowflakes.

I keep myself away from their politics, AGPL+NIGGER license is the way to keep those lunatics far away.
>>
>>106477391
Yes learning CS from Harvard is like drinking from a fire hydrant but it's still the best way.

>>106477444
(((communities))) are always subverted. I always put some wrong think in my code. I'm just not gonna suck the CoC.
>>
File: 1737633873507361.jpg (10 KB, 600x180)
10 KB
10 KB JPG
>>106477272
>>
>>106477272
It sucks ass.
>>
>>106477272
>Say something nice about it.

It can be easily uninstalled.

Best python feature.
>>
>>106477444
>it's not the fastest but who cares. I fucking love working with it.

Python was my "gateway drug" into Lisp. I really loved Python -except for its execution speed, which I lamented from the beginning- until discovered Lisp and now I cringe at the many things lacking in Python.
>>
the standard defense of python used to be "it's good for data science and stuff" but it turns out that R is better for that in pretty much every way
>>
i once knew a craftsman who built guitars. he couldnt play music but he had a passion for building all sorts of guitars, with the most exquisite craftsmanship using the finest materials, and he was just waiting for someone to come along and actually make use of his creations so they wouldnt sit gathering dust
>>
>>106477272

python book big and heavy useful as stand and makes you look smart too bad that never looked other than covers
>>
>>106477272
Lua is better.
>>
>>106478725
Is that why torch moved on from Lua and became pytorch?
>>
>>106477576
>not putting the main function at the top
Heathen.
>>
>>106477272
It's neat that a personal project can grow to become the most used programming language.
>>
n=input();a,b="0","1";print(a,b,end=" ");[print(eval("str(int("+a+")+int("+b+"))"),end=" ") or (globals().update({"a":b,"b":eval("str(int("+a+")+int("+b+"))")})) for _ in range(int(n)-2)]
>>
best mainstream language. it's missing some stuff that i think would make it 10x more ergonomic, but i have my own personal embedded language extension for that stuff. if they ever get the speed thing sorted out, there will be no excuse to use anything else.
>>
File: 1747538812226235.png (822 KB, 917x1080)
822 KB
822 KB PNG
I use python for both work and hobby programming
Its good practice to write object-oriented code and to use type annotations
>>
>>106477272
More jeets involved in sloplangs, less jeets that need to be filtered out when searching information on white languages.
>>
It's the second best tool for almost every job. Probably number one if you're primarily manipulating strings.
>>
>>106477612
Ah no wonder that logo is so cool.
>>
fastest calculator on the planet
>>
>>106477272
Great if you need to use linux.
>>
>>106477272
It's a great language for code you don't care about.
I use nothing else at work.
>>
Python has amazing packages that let you use it in ways that were definitely not intended (klongpy) and there are some super easy to use packages for high performance computing (numpy pytorch)

>>106478379
Isn't Lisp waaay different than Python? Especially in the way people actually write and distribute their code?
>>
File: 1756684841803913.png (49 KB, 500x500)
49 KB
49 KB PNG
>>106477272
it lets you modify objects and classes in retarded ways at runtime that seem wrong but it can be funny
>>
>>106477576
You don't get warnings for unused variables and arguments? Is it something you can enable?
Never used python, been using c++ almost exclusively for decades. Can't imagine running without "warnings as errors" and -pedantic.
>>
It's got extremely good tooling to create reliable and correct production systems. In my applications, performance either does not (seemingly) matter or heavy lifting can be transferred to NumPy.
>>
File: 1738061859049015.png (70 KB, 1052x1052)
70 KB
70 KB PNG
JS is king
>>
>>106482272
Why is it such a mess though? Did it just build out too fast?
>>
I don't get why anyone would use a scripting language for almost any usecase beyond webdev. Distributing scripts is much much harder than just shipping a binary.
>>
>>106482349
Number of libraries and speed of getting something spun up in fewer lines. Lots of single use shit, specialty programs a particular niche task, and backend shit that just sits on a single device. It's probably last on the list of you're distributing executables.
>>
File: 1727456895482905.png (362 KB, 3168x3080)
362 KB
362 KB PNG
>>106477272
>muh slow
Faster than a human and that's all that matters. It can automate everything and delegate speed critical logic to C or even other languages.
Feels good making a living with this lang
>>
File: 1736545297914.png (34 KB, 208x249)
34 KB
34 KB PNG
>be me
>think i'm a smart ass
>write my wrapper in go for v4l2 api
>write my software
>works good
>uses about 30% cpu
>few months later
>think.jpg
>could i have done it in python?
>find out pip install v4l2
>it just works
>fuckfuck.jpg
>write a quick prototpye with fastapi
>mfw it uses 3% cpu compared to my other code
>about 500 less loc
>pparently fastapi is comfy aswell

yes, you could call it a "skill issue" but at the end of the day python won again, i dont even know why i bother with meme langs like go anymore, i'll just default to python/js from now on
>>
>>106477391
>Object oriented programming.
>Python
pick one.
>>
>>106477272
I'm writing a "quick proof of concept" in python for work. Thousands of lines in and I want to kill myself. It's garbage for anything but small projects. Lack of proper typing is just the worst thing ever.
>>
File: 1753958075181309.png (348 KB, 626x351)
348 KB
348 KB PNG
I work in networking [ISP] and have to write Python code sometimes.
It's ok, I don't really know any better - it became the tool of choice for the industry long before I entered it and don't know any other languages.
The largest project I had to work on was our Nautobot instance which we use for our network-aware SSOT. Around 22k LOC last time I checked, which is enough to basically not have to do anything work related unless something really catastrophic happens like a datacenter goes down. I spend most of each day playing vidya.
>>
>>106478379
Both Paul Graham's essay and many Peter Norvig essays agree with you, Python is a gateway to Lisp.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.