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

Is Python a meme language?

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: 61
Thread images: 7

File: file.png (112KB, 1000x1000px) Image search: [Google]
file.png
112KB, 1000x1000px
I am on chapter 10 of Learn Python the Hard Way...

Have I been memed?
>>
>>55900673
>learning a slow as fuck language only because you're too dumb to learn a proper one
Yes you've been memed
>>
>>55900688
In many cases (esp. at university) its better to write something 2x faster and have it run 2x slower.
>>
>>55900673
No.
>>
>>55900718
that's true for meme CS assignments but it's not like that in the real world or in the hard sciences. when you have to run 10,000,000 iterations of an IMEX integrator it's either C++, C, fortran, or some GPU/parallel shit. Try to bring python in and you will never get your results in time and you will be kicked out of school.
>>
>>55900688
true
>>55900718
also true

It's a good introductory language, although its also a shitty and slow language. Not that your code is expected to be fast at this point in your career.
Also it forces you to indent properly and be consistent between tabs and spaces.
>inb4 fuck tabs
Tabs are superior.
>>
>>55900688
>what is cpython
>>
>>55900673
>Learn Python The Hard Way

Meme book. Don't listen to that old fuck. Go ahead and download pycharm and fuck around on your own.
>>
>>55900850
In hard sciences python is used all the time
Not for computationally heavy workloads obviously but for analysis, plotting and some other not intensive shit
Still a good knowledge and a great language to learn
>>
File: Fine Englishman.jpg (257KB, 767x1270px) Image search: [Google]
Fine Englishman.jpg
257KB, 767x1270px
>>55900892
I am too retarded to fuck around on my own, I need to learn from a book / site... what should I use?

Also I am learning 2.7, have I been stale-memed?
>>
>>55900941
>2.7

You've been t r i c k e d.

That's why that book is a meme book. Just use several books, several resources.
>>
>>55900688
2nd-year CS major detected

python is absurdly easy to learn and extremely useful in numerous fields. being a low-level purist doesn't get you far in a job market that prioritizes flexibility
>>
>>55900941
2.7 was good.
3 is a bit shit but you might as well learn on the more recent one... Print statements are a bit different, but you probably won't notice that many differences in your early days of python.
>>
>>55900970
I like the flow of his book so far, I would like something as readable to replace it if possible
>>
>>55900673
Python is a cool language for getting small things done quickly. When you need something friendlier than bash or perl but don't need a full blown application then Python is great.

However anything more than ~30 sloc and python isn't what i would use.

but for small lighter tasks nothing is quite as good as it has loads of functionality built in and getting a third party module is easy with pip
>>
>>55900986
it's also good for a quick solution in a tech interview due to its proximity to pseudo-code.
>for i in that_list_you_gave_me:
> i.that_thing_you_told_me_to_do
>return that_list_you_gave_me
>>
>>55900673
Python is one of those good servant terrible masters kind of language. Its great to derp around in it, make a cancerous django webapp, do some shitty semantic analysis, some numpy
(look mom, I can into statictics).
There's nothing wrong witht the language per-se, it suffers from newbs who learn one lan guage and don't move on.
It's easier to understand and forces you into good practices as >>55900859 says. If you really wanna learn it, get the rat book (Learning Python - Mark Lutz), 2.7 is stale.
>>
>>55900850
>>55900917

Most of the time numpy and scipy provide more than necessary speed, even for the hard sciences. I do computational physics and python has become my goto language for most problems. I find it expecially good for statistics and machine learning. Ofc you have to write some routines in C from time to time, but python is a good start.
>>
>>55900993
>not praising our lord and saviour: unicode string by default
>>
>>55900673
Go get a different book from a competent technical author.
>>
File: 1461601044570.png (495KB, 634x600px) Image search: [Google]
1461601044570.png
495KB, 634x600px
>>55902030
Suggestions welcome
>>
>>55901107
>There's nothing wrong witht the language per-se
Its semantics forbid a fast implementation and a moderately performing implementation requires a ridiculously complex JIT compiler.
>>
>>55900941
you shall try automate the boring stuff with python.. much efficient then the hard """meme""" way..

https://automatetheboringstuff.com
>>
>>55900673
Yes. Python is ridiculously overrated.
But hey, it's still an ok tool that you can now use, so that's pretty cool!
>>
>>55900718
This mindset is why shit keeps getting slower and slower.

https://en.wikipedia.org/wiki/Wirth%27s_law
>>
>>55902332
C Programming - A Modern Approach
>>
>>55900673
Go download PyCharm Edu. It's an educational version that gives you hands on examples
>>
>>55903811
Oh dear lord. I feel smarter already. Thank you for your glorious insight, I had never known what incredible power I was missing out on!

I now know how my computer actually works, and I now don't rely on a silly machine to handle memory for me. I have been enlightened.

I now control my machine, my machine doesn't control me!

                                                                                                  But really though, he probably wanted to learn Python for a reason, and C solves completely different problems than Python. At least smugly suggest a scripting language.
>>
>>55900673
contrary to what most people on /g/ will tell you, learning another programming language doesn't make you a worse programmer.
python is shit as your only programming language, but knowing how to read a python program can't hurt if you know other languages as well.
never decide not to learn a language simply because someone on the internet doesn't like it.
>>
>>55903946
You could use C to implement a vm that runs your own scripting language designed by yourself.
>>
>>55900673
>Have I been memed?
Yes.
>>
>>55904044
You can do that in any language though.
>>
>>55900673
Don't believe the memes. Python is a great utility language.
>>
>>55900673
you just got MTFO
>>
How would you do this in Python?

//Convert degrees to radians
#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
const double pi = 3.14159;
double degrees, radians;

cout << "Enter an angle in degrees and I will convert it\n";
cout << "to radians for you: ";
cin >> degrees;
radians = degrees * pi / 180;

cout << degrees << " = ";
cout << setprecision(4) << fixed << left << setw(5) << radians << " rad";
cout << endl;

return 0;
}
>>
File: 1402615326364.jpg (158KB, 540x360px) Image search: [Google]
1402615326364.jpg
158KB, 540x360px
>>55905365
> Python being good is a meme
> Python not being good is a meme
>>
>>55905403
yes
>>
Honestly, some of you people are fucking retarded. I hate these bottom of the barrel discussions. With that being said Python is great for general purposes. I fucking hate when people compare languages like Python with languages like C/C++. They're all great programming languages.
>>
>>55900673
Learn python the hard way is the meme - unless you're a mong who learns by writing shit out with no explanation.

Take an EDX course.
>>
>>55905401
import math
print('{0:.2f} rad'.format(math.radians(int(input("angle in degrees: ")))))
>>
>>55905495
>that formatting
I almost threw up. Is your name Pajeet perchance?
>>
>>55905503
Yes sir that is my name.
Please let me know if you would like any more help.
>>
>>55905401
print("Enter an angle in degrees and I will convert it")
print("to radians for you: ")
degrees = float(input())
radians = degrees * math.pi / 180;
print("{} = {} rad".format(degrees, radians))
>>
Yes you have been meme'd
>Learn Python the Hard Way
more like
>Get Meme'd the Hard Way

The only "book" anyone should ever read to learn python is https://docs.pyhon.org/
>>
>>55900673
Python for scripting, C or C++ for anything else.
>>
Please don't use LPTHW. I did and it massively fucked me over in the long run (he's incapable of making something as basic as classes seem simple).
>>
>>55905401
main = readLn >>= print . (/180) . (*pi)
>>
File: 1455296408468.jpg (33KB, 599x412px) Image search: [Google]
1455296408468.jpg
33KB, 599x412px
>>55905618
Maybe you're the thing that's simple?
>>
>>55905651
nah, because I found way better guides for shit like that that weren't retardedly phrased.
>>
>>55905611

C in 2016 is a meme
C++ 2016 pre C++11 is a meme
C++ for anything other than graphics programming is a meme
"Python for everything else" is a meme

Honestly, if you use any language in 2016 than requires you to manage the memory of objects, you just got meme'd the fuck out
>>
>>55905690
is "haskell in 2016" a meme?
>>
File: Untitled-2 - Copy.png (271KB, 564x683px) Image search: [Google]
Untitled-2 - Copy.png
271KB, 564x683px
>>55905618
>>55905662
Well, what should I learn from then? I have that rat book, but that seems kind of long winded
>>
>>55905808
>>55892258
>>
>>55905808
google ocw mit 6.00sc
is a very basic intro course on computer science that also teaches python in its first unit
>>
>>55905715
Haskell succeeding is a meme. See: >>55904193
The language however, is actually pretty neat.
>>
No, not a meme, it's okay if you already know another language, but it will fuck you up if you are learning it as your first language because it's 100% ass-backwards from everything else.
>>
>>55905867
>it's 100% ass-backwards from everything else.
How so?
>>
File: Python is hard.jpg (188KB, 1864x1398px) Image search: [Google]
Python is hard.jpg
188KB, 1864x1398px
>>55905401
Impossible.
>>
>>55905690
> C in 2016 is a meme

works as well as anything else senpai
>>
>>55905883
Learn Python, then try to learn C/C++/C#. You'll be utterly lost and using horribly bad habits until you completely oust Python from your mind and start thinking in those languages which are MUCH more ubiquitous than Python will ever be.
>>
>>55905998
Well, I am asking from the perspective of someone who mostly writes in JavaScript and Java these days.

I don't know Python, but I know Ruby and Perl. I've always thought Python was basically in the same vein as those two languages with slightly different ideals, which is why I was confused to read that it was so backwards compared to everything.
Thread posts: 61
Thread images: 7


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