Live data from Hacker News

Programming cheat sheets

overapi.com

41–49 of 49 posts

Re: Programming cheat sheets

#42
post #37

nice web, but there is a bug, when u go to http://overapi.com/eclipse/ doesn't work, but it works when you go to http://overapi.com/eclipse

looks like this bug effects anything listed under the "Related" sections on any language. They all go to the "Sorry Something Wrong..." page.

Re: Programming cheat sheets

#43

I also like https://learnxinyminutes.com for when I need to understand some code in an unfamiliar language. That site also accepts contributions from anyone via pull request on GitHub.

Learn X in Y Minutes is also my go to site for dealing with code in an unfamiliar language. It's managed to get me through learning Ruby and Coffeescript on the job, as well as learning PHP for university. It's a pity that nobody has done one for SQL yet, I would've thought it would be in high demand.

It's good to quickly grasp basic syntax so you can read code in unfamiliar language. However, I don't think that it's a good resource to properly learn language.

You will often miss learning the philosophy of the language (the $language_name way of doing it), the different way of thinking about the problems that the language provides and similar details, which are often not necessary to read a snippet of code, but you want to understand it in order to properly learn the language and make the most of it.

SQL is a good example of it. It might be trivial to explain the syntax of most common SQL queries, but thinking in relations and tables is not natural to most people so there's not much you can do with basic syntax.

Re: Programming cheat sheets

#45
post #11

When would someone actually use a cheat sheet instead of google?

You'd go to DDG and type in "git cheatsheet".

Or for the ultimate in self-referencing cheat sheets, use:

https://duckduckgo.com/?q=ddg+cheat+sheet&ia=cheatsheet

This links to:

https://duck.co/ia/view/duckduckgo_cheat_sheet

I think this leveraging off DDG's goodies, part of their Instant Answers:

https://duck.co/ia?repo=goodies

Re: Programming cheat sheets

#47
post #39

Seems to contain javascript file from linezing which seems to be superslow and upon further examination contain malicious code(?) https://www.virustotal.com/en/domain/js.tongji.linezing.com/...

Yeah, they have a bunch of other people's content in GitHub too it appears...

Re: Programming cheat sheets

#48
post #21
post #9

I recall rosetta stones for various UNIX operating systems. There were many versions of this most of them outdated now. Quick example: http://bhami.com/rosetta.html

There's also Rosetta Code, very useful for finding implementations of various things in different languages. http://rosettacode.org/wiki/Rosetta_Code

+1 Someone had recommended this on a previous thread; and i believe this to be so cool!

Re: Programming cheat sheets

#49
post #34

Pretty neat, but the first thing I looked for was how to open a file in Python and it wasn't there. I'm guessing it's because the "File" column only displays methods on the file object, and open is a built-in function. I can see how this might be useful when context-switching between different programming languages.

Also the "Array" section refers to array.array objetcs, but, as there's no sepparate section for "Lists", they can be confused. Worst thing about this is that .byteswap would seem to be a list method (I know it isn't, but someone who's just beggining may be confused as to way the list doesn't have a bytewap() method!)
Post reply on HN