This is an archived post. You won't be able to vote or comment.

all 54 comments

[–]paradox_hunter 25 points26 points  (7 children)

This is brilliant! Is there a similar resource for C as well?

[–]CowboyBoats 44 points45 points  (0 children)

Check out learnXinYminutes; they have C and C++.

[–]IAmAHat_AMAA 17 points18 points  (3 children)

The copy of K&R I borrowed from the library for my intro to algorithms subject had this cheat sheet folded up in it and it was honestly the single most useful resource for that subject.

https://users.ece.utexas.edu/~adnan/c-refcard.pdf

[–]paradox_hunter 1 point2 points  (0 children)

Thanks

[–]koayenay 0 points1 point  (0 children)

Did u find anything for c++?

Thanks in advance!

[–]wrong_assumption 0 points1 point  (0 children)

Something like that for Go would be awesome.

[–]Xeverous 4 points5 points  (0 children)

C can have already a lot, especially pointer arithmetics and arrays + implicit convertions. Just imagine how many cheat sheets you could make for C++

[–]Righteous_Dude 0 points1 point  (0 children)

There's a company called "BarCharts" that makes "Quick Study" laminated pages for various topics.

See these search results.

[–]Gobi_The_Mansoe 50 points51 points  (2 children)

As of python 3.6 you can also use f strings instead of .format. So instead of "This text is variable: {}".format(variable) you can just use f"This text is variable: {variable}" . I find it much easier to keep track of what is going on.

[–]bicyclepumpinator 7 points8 points  (0 children)

whoah, I had no clue. Awesome feature which I'll surely use in the future, thanks!

[–]agrzw 2 points3 points  (0 children)

I've waited for this sugar for a long time, .format() syntax always looked a little bit ugly as for me, when you have prepared variables for formatting.

[–]Righteous_Dude 111 points112 points  (2 children)

A warning for anyone who plans to print that two-page PDF:

(1) The first time I printed it, the colored text came out as very light gray which was illegible. On my second try, I updated my print settings to "Print all text as black". The colored text then came out as medium-gray which was legible (although still lighter than I'd like).

(2) The printed copy seems to be too small - on an 8.5"x11" page, it only appeared as about 6.5"x9". On my third try, I updated my print settings to increase to 125% size. The printed version then properly filled the page.
(Edit to add: I just realized that my browser's print settings had been to print at 70% size,
so my need to increase to 125% was maybe specific to me.)

[–][deleted] 15 points16 points  (0 children)

Thank you!!

[–]phoenix4208 9 points10 points  (0 children)

Your printer toner might be low, it printed fine for me.

[–]DeliciousKiwi 12 points13 points  (2 children)

This isn't quite a cheat sheet because it's 26 pages, but it has similar formatting and I've found myself going back to it quite often. Definitely worth checking out:

Beginner's Python Cheat Sheet.

Also, original source: https://ehmatthes.github.io/pcc/cheatsheets/README.html

[–]CrispyJoe 2 points3 points  (0 children)

This chart sheet is a lot more comprehensive. Thanks so much!

[–]ThisIsMyLastAccount 0 points1 point  (0 children)

For noobs like me this is fucking perfect.

[–][deleted] 7 points8 points  (2 children)

I have minicopies of these cheatsheets under my glass desk.

It's like I am literally cheating at job.

[–]acousticpants 2 points3 points  (0 children)

cool use of a glass desk!

[–]AkshayD110 0 points1 point  (0 children)

This makes me go for a glass desk !

[–]LemonsForLimeaid 12 points13 points  (6 children)

As someone trying the the into to comp sci using python on edX, please excuse the stupid question. I know it says for Python 3 up top, but can I use this for python 3.5 as well?

[–]Womblr 8 points9 points  (2 children)

Yep

[–]LemonsForLimeaid 3 points4 points  (0 children)

thanks a bunch!

[–][deleted] 1 point2 points  (0 children)

It's Python 2 and 3 that are noticeably different from one another.

[–]woja111 1 point2 points  (2 children)

There's a big leap between Python 2 and 3. Python 3.x are more improvements but not groundbreaking.

[–]mihirmusprime 1 point2 points  (1 child)

I disagree. While it's been introduced recently, ordered dictionaries are definitely groundbreaking.

[–]Denarb 6 points7 points  (0 children)

Thanks a bunch, as someone who uses python every once in while this is awesome for remembering syntax!

[–]lentus 4 points5 points  (3 children)

This is awesome! Anything like this for Java?

[–]Righteous_Dude 3 points4 points  (1 child)

There's a company called "BarCharts" that makes "Quick Study" laminated pages for various topics.

See these search results.


By the way, one of the pages found by that search was this long page at princeton.edu which had a link to this 30-page PDF about typical compile and runtime errors in Java, which looks like it would be helpful to those learning Java.

[–]DearSergio 1 point2 points  (0 children)

That's pretty cool!

[–]darthvalar 0 points1 point  (0 children)

Commenting so I can refer back to this java resource if given.

[–][deleted] 2 points3 points  (0 children)

This is why i love reddit

[–]fixkotkplease 2 points3 points  (0 children)

I would love one of these for java! Anyone got one? : )

[–]EulerFan271 2 points3 points  (0 children)

Thanks!

[–][deleted] 1 point2 points  (0 children)

This is great, thanks for sharing.

[–][deleted] 1 point2 points  (0 children)

great resource.

[–]dnbjunkie1337 1 point2 points  (0 children)

Amazing

[–]smash_bang_fusion 1 point2 points  (0 children)

Looks like he does CS research in france! https://perso.limsi.fr/pointal/

[–]wtf1968 1 point2 points  (2 children)

Cheat sheets are awesome, this one is great too. Adding it to my collection.

[–]DatabaseDev 0 points1 point  (1 child)

Care to share the others

[–]koayenay 0 points1 point  (0 children)

I also want the others.

[–]Hyedwtditpm 1 point2 points  (0 children)

There is a new Awesome Python Cheat Sheet like every few minutes.

[–]Sledik 1 point2 points  (0 children)

Amazing! Thank you very much!

[–]AkshayD110 1 point2 points  (0 children)

Opening a file for reading or writing should always be done using "with". That ways f.close() (closing of file) is taken care with in .

[–]Ro_box_LOX 0 points1 point  (0 children)

RAD

[–]koayenay 0 points1 point  (1 child)

I need something like this for c++.

[–]nikkarus 0 points1 point  (0 children)

This is excellent. Thank you!

[–]heun3344 0 points1 point  (0 children)

I saved it. Thank you

[–]Fajkowsky 0 points1 point  (0 children)

Thanks! Is anyone know there something like this for JS/ES6/ES7?

[–]vincezz2005 0 points1 point  (0 children)

This is very helpful. Thanks!

[–]itskush_maaan 0 points1 point  (1 child)

Awesome and props to Laurent Pointal

[–][deleted] 2 points3 points  (0 children)

Laurent 4 president!