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

>import os >import os.path KOBAYASHI-SAN IS A BAD CODER!!!

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 86
Thread images: 12

File: 1465053219388.jpg (23KB, 710x76px) Image search: [Google]
1465053219388.jpg
23KB, 710x76px
>import os
>import os.path
KOBAYASHI-SAN IS A BAD CODER!!!
>>
>>156509532
Why is the kerning of i different on the second line?
Literally unusable.
>>
File: python_just_import_everything.jpg (186KB, 1280x720px) Image search: [Google]
python_just_import_everything.jpg
186KB, 1280x720px
>>156509532
>>
>>156509532
no bully
>>
>>156509532
what is the problem here?
>>
File: not_developer.png (2MB, 1469x2167px)
not_developer.png
2MB, 1469x2167px
>>156509532
At least it's code
>>
What kind of home enviroment would result in a jap girl learn to code?
>>
File: mpv-shot0027.png (329KB, 1270x682px) Image search: [Google]
mpv-shot0027.png
329KB, 1270x682px
>>156509532
She uses chrome with XFCE.
>>
>>156509680
There's no reason to import both.
>>
>>156509680
Say you have a box filled with and apple, an orange and a banana.
You take all the fruit out of the box.
Then you take the banana out of the box.
>>
>>156510143
Looks like Windows
>>
posting this video in every maiddragon thread cuz I love it
https://www.youtube.com/watch?v=hvN7J-iH-AM
>>
>>156509738
Programmer here. I have no idea wtf are they talking about. Systems guys only code automation scripts. They are separated from development which is much more complex programming.
So I can't understand why on earth would a systems guy code-review regular development code.
>>
>>156511400
Are you sure you're familiar with the programming practices in Japan?
>>
>>156511400
No one is talking about code reviews there
>>
>>156511506
Don't be so mean and remind programmers of Japanese coding practices.
Please, it's painful ot be aware fo them.
>>
>>156509532
It's probably so you don't have to write os.whaterver every time you need to do something with os.path things.
>>
>>156510220
>>156510839

os.path works in a weird way
do you even know python
>>
>>156510143
It's Vista.
>>
>>156511836
If you wanted to do that, you'd write 'from os import path', but os.path is actually a strange module that looks like it's a submodule of os when it's actually just named that way and gets imported when you import os.
>>
>>156512604
It's windows 7.
>>
>>156512471
Still gets imported when you import os better brush up on your skills son
>>
He's using python so that should have given it away before reading what he wrote. Python is a language for morons
>>
File: gun loli.jpg (56KB, 358x429px)
gun loli.jpg
56KB, 358x429px
>>156514473
>he
>>
>>156514473
It makes a good backend though.
>>
>>156514473
At least it's not Java.
>>
If she was a real programmer she'd only do

import os.path
>>
>>156510117
There's something called the Norwegian gender equality paradox where they noticed that women in the world's most gender equal country - Norway - where there's absolutely nothing stopping women from pursuing science or engineering or politics most women instead choose to pursue traditional, almost stereotypically feminine jobs and careers while women in more patriarchical, less equal societies tend to pursue, if they can/are allowed to, more masculine careers.

The paradox isn't very liked by liberals because it suggests that women, when left completely alone and with no pressure on them, will still choose womanly professions instead of STEM or whatever.
>>
>>156516350
t. Tumblr
>>
>>156515950
If she was a real programmer she'd be using a real programming language, like C.
>>
>>156514109
>import os
now you have to type path.XX for anything in path
>import os.path
now you can just type XX

there is nothing wrong with this code
>>
>>156519404
I'm not too intimately familiar with Python, but, since import in Python is literally "interpret the required script from start to finish right now", doesn't it make the import of os.path run twice in a row?
Or does python ignore repeated imports automatically?
>>
>>156518606
Eh, Python is an alright language, structurally sound, relatively easy to write and has tons of useful third-party libraries. It's really good for scripts and scientific number-crunching (since the scientific libraries are very good too).
Just remember that pythons don't fly (if you're running Python, you're running it in an interpreter, which is slow as fuck by its very nature), and if you are doing anything related to system programming, C still has no contenders in the field.
>>
>>156519614
I haven't touched python in a while, but I think calling
>import os
will run the script once, then calling
>import os.path
after that will only move the variables/functions into the global scope (not run the entire script again).
>>
>>156519404
Isn't it "from os import path" for the latter?
>>
>>156520247
actually I think you're right. I haven't used python in a while.
>>
>>156515635
Java was still my first choice for backend because mono was still in its infancy. Maybe I should've tried Flask though.

Also fuck PHP, never touching it again even if it's better now with PHP7.
>>
>>156520351
NodeJS > PHP
>>
>>156520393
>javascript as backend
>>
>>156520585
hey javascript is a good all purpose scripting language.
>>
>>156509532

I didn't think she was a coder was she, I thought she was part of a QA team?
>>
>>156520818
It’s ass.
>>
File: 1456076027358.gif (1MB, 446x469px) Image search: [Google]
1456076027358.gif
1MB, 446x469px
>>156520818
>>
>>156519404
no anon.
you will still have to type os.path
>>
itt: anons with coursera python lessons shaming themselves by not understanding imports.
>>
>>156521692
Not if you import os.path as [something].
Why are we even having this thread? /a/ has horrendous programming skills. I fucking hate python and I knew that.
>>
File: 1493118798947.jpg (52KB, 600x600px) Image search: [Google]
1493118798947.jpg
52KB, 600x600px
>People think os and os.path are the same library

Learn2python nerds
>>
>>156520585
What would you use for backend, then?
>>
>>156521945
Currently using Spring Boot, but woulda went with Flask otherwise or something with C# if mono was in better shape when I started (not going to get a windows VM just for IIS, which I also dislike). Previously used PHP for my side projects before working then C# web dev work. My Spring setup works well enough for me now (though it took a good amount of time to actually set up properly).
>>
>CGI suck
>PHP sucks
>let's not talk about Javascript

is there anything worthwhile for backends other than Java Servlets and Python?
>>
>>156522492
Ruby.
>>
>>156522492
Lisp
>>
>>156518606
>not Fortran
pls
>>
>all this plebs arguing about pleb languages when patrician functional programming is possible now that nock exists
Do you faggots even urbit?
>>
>all these programlets talking about programming languages
just directly code everything in machine code youf ucking nerdcucks
>>
>>156515578
C# is better for backend
>>
>>156523421
>targeting a single platform
looks like you're the real programlet
>>
>>156523695
>implying theres more than one worthwhile platform
lmao
>>
>>156522492
COBOL
>>
>>156523204
*Lithp
>>
File: 1491909352194.jpg (100KB, 711x681px)
1491909352194.jpg
100KB, 711x681px
>>156521945
C
>>
Neerrrdddsss
>>
>>156509628
What a disgusting font for code.
>>
>>156525097
>using CGI
enjoy your low perfs
>>
File: 1464204985447.jpg (182KB, 1920x1080px)
1464204985447.jpg
182KB, 1920x1080px
>>156525325
>javascriptfag
>talking about perf
>>
>>156523421
Screw that, get some 7400-series ICs and start soldering.
>>
>>156521895
>>> import os
>>> os.path
<module 'posixpath' from '/usr/lib/python3.4/posixpath.py'>


shit, son
>>
>>156525097
>C
There really is no better language.
>>
>>156511400
It's not about review. I think it's about pointing out bugs or undocumented "features" of code that may lead to failures in production.
I have a belief that most developers don't even give a shit about their commits, as long as it builds.
>>
File: 1476594973483.jpg (181KB, 1421x794px)
1476594973483.jpg
181KB, 1421x794px
>>
>>156522492
My favorite backend is not being a webdev cuck
>>
>>156527545
this is the only answer, well played anon.

webdev is for faggots who can't into proper programming. I hate when web designers call themselves "programmers"
>>
the struggle is real
https://stackoverflow.com/questions/2724348/should-i-use-import-os-path-or-import-os
>>
>>156528348
Are u fucking with me

Thank God I only worked as a .NET systems developer
>>
>>156527459
just like me, a bit of everything but mostly C and c++
>>
>>156528198
Why the elitism? Programmers are engineers that aren't smart enough to be real engineers, never mind actual scientists.
>>
ITT: anons who did a few online courses and think they're programmers.

Best language arguments are retarded because its heavily dependent on the requirements and you don't always get to choose. Enter the industry and see what its actually like before forming your shitty opinions.
>>
>>156530970
>Best language arguments are retarded because its heavily dependent on the requirements
Sure, but you can't wholly disregard the specifics of a language and what it can and can't do or what it's better or worse at.
>>
>>156531236
No one is talking about that in best language arguments. It's basically just my favorite language is good, everything else is shit.
>>
>>>156531236
Questions like "what's the best language for server-side?" are too general and not worth entertaining.
>>
>>156530483
>programmers
>not smart enough

sorry kid, not everyone ends up a useless code monkey, are you talking from experience?
>>
C# best language
>>
Bleep bloop /thread to you too nerds.
>>
>>156509532
Fix it, then
https://github.com/webpy/webpy/blob/master/web/session.py
>>
>>156511383
lol so randumb and funneh xdddd
>>
This show just made me realize what hell coding would be. Thank fuck I didn't let people talk me into making this shit into a career
Thread posts: 86
Thread images: 12


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

If you need a post removed click on it's [Report] button and follow the instruction.
If you like this website please support us by donating with Bitcoin at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties. Posts and uploaded images are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that website. If you need information about a Poster - contact 4chan. This project is not affiliated in any way with 4chan.