[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]

>decide to start learning Python before starting my PhD so

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: 43
Thread images: 4

File: 1493830633443.jpg (88KB, 1192x856px) Image search: [Google]
1493830633443.jpg
88KB, 1192x856px
>decide to start learning Python before starting my PhD so I can be a leet bioinformatician
>"Learn Python the Hard Way is upgrading to 3.6!"
>mfw

Everyone says to use Python 2, but now the tutorial website says to learn 3?! I'm confused.
>>
>>60219782

Most online tutorials and some books will tell you to use v2 because they were written a few years ago when the future of v3 was uncertain and 2 was the standard. They were right at the time.

Things have changed Mostly everyone agrees 3 is ready and is the future now. Python 2 will only see minor updates from now on and will not be officially supported eventually.
>>
>>60220021
>the future of v3 was uncertain
it is still uncertain at best
pypy is the future of python and they will support 27 forever. atm most servers ship with python2, a lot of desktop apps(calc, sims, 3d stuff) that have python api ship with python2. scientific community uses mostly python2. the only place i encountered v3 so far is webdev and some obscure 0 star github repos.
>>
>>60219782
LPTHW is written by a mentally deficient faggot, don't use the book

Also Python 3 is the future, fuck 2
>>
ITS LITERALLY THE SAME FUCKING LANGUAGE

I write C# for a living and I can still hack out whatever shitty script I need in python 2.7 or 3.5 any day
>>
>>60220385
python 3 doesn't offer any sufficient benefits over 2, its like dry humping - movement without progress
>>
>>60220455
Except it does

Source: porting a bunch of things to py3 now
>>
>>60220481
> a bunch of things
what are those?
>>
>>60220385
Recommend books senpai
Python from basic to a slightly advanced shit.
Not OP but I will need it to pretty complicated tasks for scientific libraries
>>
>>60220493
Clients' projects, can't really disclose more than that
Although when I come across a dependency that's not compatible and hasn't been updated in a few years I fork and port it

>>60220500
I don't do scientific stuff so can't help you there, but otherwise I just study by watching pycon videos on jewtube at 2x (especially Raymond Hettinger's stuff). I keep learning new things despite using Python for 7 years.
>>
>>60220583
>Clients' projects, can't really disclose more than that
thought so
>>
File: 1493762897416.jpg (35KB, 500x375px) Image search: [Google]
1493762897416.jpg
35KB, 500x375px
>>60220632
Oh boy, you sure got me there :^)
>>
>>60220655
>movement without progress
keep lying to yourself
>>
>>60220583
What do you think about python path on pluralsight?
>>
>>60220632
>>60220455

I use asyncio and format strings everyday.

T. avid fan of 3 over 2.
>>
>>60219782
i so much want to insert my diffs into her code
>>
I only learned 2 because everyone in my occupation uses 2.

Just learn whatever you need to learn.
>>
>>60219782
>PhD
>crying about having to learn minor differences in python syntax
Holy shit is this actually how worthless a PhD is these days?

I'm a self taught programmer and learning new languages or switching syntax is literally as easy as a short google search. Come on.
>>
>>60219782
Learn 3. But how hard is it to look up syntax differences?
>>
File: solid_state_kyouju.jpg (116KB, 455x332px) Image search: [Google]
solid_state_kyouju.jpg
116KB, 455x332px
>>60219782
>doesn't even know Python
>already has a masters
This is why no one takes the soft sciences seriously LMFAO how fucking retarded can any of you be?
>>
>>60220500
Working through programming books never worked for me. Always has to have some sort of application.

Data Analysis with Python is great. I'd also suggest looking and Bioinformatics books that also use Python.
>>
>>60224010
about the 2 vs 3 thing, just do the exercises in Python 3 style.
>>
>>60220455
yield from
>>
>>60220021
>need Windows? Hurr durr, you're stuck with Windows 10 now, fuck you
>need Linux? Hurr durr, you're stuck with systemd now, fuck you
>need Python? Hurr durr, you're stuck with Python 3 now, fuck you
>need a CPU? Hurr durr, you're stuck with a botnet hardwired right in to it now, fuck you

Fuck this shit. Where is this going? Where did it all go so wrong? Where's the exit off this ride?
>>
>>60224150
abacus, pen and paper, living inside a cave far away from any smartphone are the only way out of the botnet
>>
>>60220455
async def foo():
await ...

def foo(x: str) -> int: ...

server = 'example'
print(f'{server} failed to respond')

return {'name': 'foo', **other_dict}

def foo(a, b, *, foo, bar): ...

dict(**kwargs, **more_kwargs)
list(*args, *more_args)

assert dict(a=1, b=2).keys() == ['a', 'b']
assert dict(a=1, b=2).keys() != ['b', 'a']
>>
>>60224283
Another useful one

return [1, 2, *some_list, 3, 4, *other_list]
>>
>>60220583
>especially Raymond Hettinger's stuff
Same
>>
>>60219782
>leet bioinformatician

Is numpy and scitools and matplotlib ported to Python 3 yet?

If yes, then learn Python 3. If no, then stick with Python 2.7.

Otherwise you're doing yourself a severe disfavour.
>>
>>60225524
>Is numpy and scitools and matplotlib ported to Python 3 yet?
Like a million years ago
>>
>>60224150

Are you seriously complaining about new technology replacing old technology?
>>
>>60223385
Qualifying for a PhD program was never about being able to think for yourself. I mean, it probably should be a factor, but ability to work hard and follow directions is more valued by PIs.
>>
File: 1493352367074.png (312KB, 389x386px) Image search: [Google]
1493352367074.png
312KB, 389x386px
>>60223600
I don't consider genetics a soft science.

I-is that what people think?
>>
>>60226712
my phd requires two 1st author papers to graduate. my pi isn't even on my second one.
>>
>>60226821
which uni?
>>
>>60227043
u.s. biomedical research university
>>
Just learn one. They're not so different that you can't figure out the other if you know one. The reason people are mad is because all the code that was written in v2 doesn't work in v3 and needs to be ported.

For learning, it really doesn't matter which one you learn as long as you're aware that you might have to do a bit of finagling to get your stuff working on the version you didn't learn.
>>
>>60225742
the point is that newer technology is shit and the option of just using older and better tech is being removed
>>
>>60220655
>using the smiley with a carat nose
>>
>>60219782
> Bioinformatics
> Python

R is the way to go, my man. Especially for genetics. So many libraries for it.
>>
Stupid question but what does bioinformatics even consist of? I can't even imagine really but it sounds interesting as fuck.
>>
>>60230627
Get micro-array data as a big spreadsheet. Do data analysis things on data to find out something. Maybe some genes are affected when someone has a disease, stuff like that. Draw pretty graphs. It's fun.
>>
>>60219782
I thought that guy bitched hard about python 3
Thread posts: 43
Thread images: 4


[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]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.