[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
what do you use python for personally?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 67
Thread images: 10
File: chillin.jpg (76 KB, 851x851) Image search: [Google]
chillin.jpg
76 KB, 851x851
what do you use python for personally?
>>
hahaha
>>
>>51748314

>male with lip ring

oh wow
>>
>>51748357
not an answer.jpeg
>>
side projects / fun one off scripts

my last job was really python heavy but not so much at my new place
>>
>>51748357
if u have 2 next to each other its called a cock rail
>>
>>51748435
any examples man?
>>
>>51748314
None because there are better languages than that shit.
>>
pls respond
>>
>>51748435
this

python is good for bullshitting around
>>
>>51748314
You people are fucking retarded. It's like laughing at how pointless a fork is because you can't use it to eat soup.

Python is a language made for quick prototyping and high readability. Its used fucking everywhere at Google and like the entirety of reddit is written with it. Python has specific uses and does them very well but fucking retards use it incorrectly because they are shit coders and are quicker to blame the language than their own inadequacies.

Guido von Rossum is a fucking god and a ton of business infinetly more successful than any of you kids will be use it on a regular basis.
>>
>>51748314
i use it with flask to run a few backends

it's nifty for writing quick scripts too

also i've done some AI stuff in python

you can do pretty much anything in python
>>
>no semicolons
fucking dropped
>>
>>51748467
If you have any piercings and you're a male its called faggot
>>
I wrote a framework on top of cherrypy to make a new framework.
>>
>>51750064
>AI in python
Let me guess, I/O shit.

Python is just a beginner language that beginners try to defend. Glad I got out of my python phase.
>>
>>51750179
What's your superior language of choice?
>>
I don't. I Use C for everything.
>>
>>51750202
Sup Grandpa.
>>
Ive never met a good programmer who actually cared greatly about languages and their differences, not to the extent where they would actively polemicise against one

I guess good programmers just sort of program, or they can do what they want in any language

Guaranteed people who rail against Python etc are kids who just learned how to write fizzbuzz in C
>>
>>51748314
ipython notebook quick prototyping, one time scripting, plotting, fitting, etc... I'm a physicist.
>>
>>51750199
That's where your problem is, beginner. There is no "superior language", you'll probably soon learn that.
>>
File: 1444187065323.jpg (292 KB, 1280x720) Image search: [Google]
1444187065323.jpg
292 KB, 1280x720
>>51750202
>not using assembly exclusively

Hah, kids these days. I bet you use a GUI too.
>>
>>51750202
This actually. Everything just works. Except sockets is inconvenient compared to the networking libraries of other languages such as python/perl.
>>51750257
Epic meme. Was C really that hard for you?
>>
>>51748314
Personally I don't use it at all, but at work we have build scripts, firmware download scripts and all sorts of "clean-up" scripts written in Python.

Thinking about brushing up them Python skills for fun though.
>>
File: wip_engine.png (58 KB, 1919x741) Image search: [Google]
wip_engine.png
58 KB, 1919x741
>>51750222
>>51750257
I'm serious though, I like things to be simple.
>>
I have been writing a couple of web scrapers for a research project. It's pretty comfy language imho
>>
File: 1397895357756.jpg (101 KB, 960x960) Image search: [Google]
1397895357756.jpg
101 KB, 960x960
>>51748357
>>51748467
>>51750124
>>
>>51750343
I want to put my dick in it
>>
File: p_c.jpg (107 KB, 469x600) Image search: [Google]
p_c.jpg
107 KB, 469x600
>>51750365
>>
>>51750343
This guy walks into a pub and asks for a pint of beer and a mop...
>>
>>51750302
>that for loop that loops through MAX_ITEMS
Why?
You can just


if(IsBagFull() == false) {
bag.items[bag.size++] = the_item;
}



I mean you literally have the value you're trying to get in the loop in your bag struct. Shitty caffeine fueled coding, nobody can just take 10 seconds to look at their code anymore.
>>
>>51750250
Then what's your general purpose language of choice that you think is better than python?
>>
As a notepad for doing math. Quick scripts. Doing science shit. Interacting with the guy in our group who only knows python.

>>51750064
Also did some AI and robotics stuff using python. Python works great with ROS.
>>
>>51750394
Do they even have beer in gay bars?
>>
>>51750401
And what's general purpose? It's better to be good at one thing than be shitty at all things. Not even python is general purpose. Of course you can make a 3d engine in python, but that's by importing some unoptimized mess of a library into your code.

But of course pykids are obligated to defend themselves. It's a shame it got so associated with being a "noob" language, otherwise it's pretty solid.
>>
>>51750401
javascript
>>
>>51750398
Not the other anon, but how do you add items to empty spots? Your version is nice and all, but it only lets you add to the end and by implication remove from the end. Which is shit.
>>
>>51750398
>Noticing design flaws in code right away from a picture
How? Are you autistic or something?
>>
>>51750398
Oh wow, didn't even notice that, Personally just using for loops is easy mode for static arrays. So that's why I probably did it.
>>
>>51750523
It's not a design "flaw", it's one anons design "choice". Also the notation anon likes to use is cool and all, but if you end up working as a C developer then the way the other anon does things is actually preferred.
>>
File: 131948165413.png (267 KB, 469x357) Image search: [Google]
131948165413.png
267 KB, 469x357
>>51750037
>reddit
Are you making a case for or against python here?
>>
>>51750508
>only lets you add to the end and by implication remove from the end.
The original code doesn't specify an iterator for which slot in the bag the item should be located in either. It can't remove from the end simply due to the if(IsBagFull() == false) condition.
>>
>>51750567
Look at the next function. I'm willing to bet it removes the given item from the location it was put. Hence creating an empty spot somewhere probably not the end.
>>
>>51750609
>>51750567
My intent was to add a item to the next empty spot, the bag struct contains 48 slots, I dont really care where the position is since I just want to find the next open slot thats open and put it there.
void RemoveItemFromBag(Items the_item)
{
if (IsBagEmpty() == false)
{
for (int i = 0; i < MAX_ITEMS; i++)
{
if (bag.items[i] != the_item)
{
continue; // skip to the next slot in the bag
}
else
{
bag.items[i] = None;
bag.size--;
return;
}
}
}
else
{
printf("Bag is empty!\n");
return;
}
}

// Removes the item from the team member and puts it in the bag
void RemoveItemFromTeamMember(Pokemon *team_member, Items the_item)
{
team_member->held_item = None;
AddItemToBag(the_item);
}
>>
>>51750558
Which way is better?
>>
>>51750660
Even if unwittingly, you were on the right track and your code will work flawlessly. What the anon suggested is bad advice and archaic idioms. Stick with what you have.
>>
>>51750679
For this anon, the original, but you can easily think of situations where what the other anon brought out would be more reasonable. for instance, if the items were all the same kind...
>>
>>51750037
Some one actually understands. Ffs this is ment to be 18 plus. Allot of people here are so fucking awful.
>>
File: items_in_bag.png (61 KB, 953x919) Image search: [Google]
items_in_bag.png
61 KB, 953x919
>>51750683
Yeah, I'm surprised how well it turned out
>>51750704
Here is what it looks like when its full
>>
>>51750343
Now i just wonder if he has to chew biotene or some shit all the time so his mouth doesn't dry out. All those holes for cocks and his tongue is so dry its like sand paper. Bet he breathes through the holes all the time too like a fucking mouth breather. Kinda wanna throw that dude in the ocean and watch him drown instantly. k been thinking about this too long.
>>
>>51750753
Wisdom rarely comes with age alone. There are plentiful 18+ people who still have the mental capacity of a 12 year old.
>>
>>51750796
he's got plugs for that
he also needs plugs to eat soup
>>
File: babycakes2.jpg (24 KB, 460x298) Image search: [Google]
babycakes2.jpg
24 KB, 460x298
I was using opencv with python bindings for my group project.

We were doing autonomous robots and I had to fanangle some image processing for it to detect some stuff in the frame.

I hadn't done any programming in python in a few years, and it was pretty painless. Will probably at least start some more projects with it.
>>
>>51750225
>I guess good programmers just sort of program, or they can do what they want in any language
Guaranteed people who shill for python etc are kids who just learned how to write fizzbuzz in python. Python is acceptable, but not necessarily.
>>
>>51750786
What is this program/framework?
>>
>>51751223
Visual Studio

Might be the 2013 version idk.
>>
>>51751223
[spoiler]Visual studio 2013 [/spoiler]
>>
>>51751256
>>51751260
Oh shit that's cool. Usually I just use gcc/vim. I guess this is what I've been missing. Too bad my ssd is too small for visual studio.
>>
>>51751278
The components needed for developing C/C++ should be about 1GiB.

Some people actually use gcc as a compiler in Visual Studio. I've never had the need, but I imagine if you're adamant about meeting newer C coding standards than VC++ complies to then you could look into it and keep gcc in the toolchain.
>>
File: pjb6nIk.jpg.png (75 KB, 651x241) Image search: [Google]
pjb6nIk.jpg.png
75 KB, 651x241
>>51750753
Forums are shit because non-shitters are doing things.
>>
>>51751358
I mean things other than posting on a forum.
>>
>>51748314
flask. So much quicker than using play. Also if I quickly want to automate some task
>>
>>51748596
python can be your scripting language of choice for fast prototyping or just automatizing something. if you get fluent in it, it'll ease your it-related doings immensely by opening the gates to accomplishing anything quickly, but same could be said about many other scripting languages
I personally think everyone who's serious about IT should be fluent in at least 1 scripting language, even if you wouldn't call yourself a programmer
>>
>>51748314
data mining

web scraping

personal scripting

pretty much everything
>>
I use it for math and science calculations
>>
>>51750250
.... You just said python is a beginner language...
Thread replies: 67
Thread images: 10

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.