News for hackers. Stuff that matters.
Re:Programming cheat sheets by chrismartin on Tuesday May 03, 2016 @01:09AM (#11618074)
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.
Re:Programming cheat sheets by toomanybeersies on Tuesday May 03, 2016 @06:28AM (#11619325)
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.

Re:Programming cheat sheets by gedrap on Tuesday May 03, 2016 @10:31AM (#11621012)
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 by azazqadir on Tuesday May 03, 2016 @06:55AM (#11619455)
Also helped me a lot when I was learning Javascript from Codecademy. It introduced me to Eloquent Javascript book and Mozilla Developers Network.
Re:Programming cheat sheets by Negative1 on Monday May 02, 2016 @11:47PM (#11617760)
Impressive until you get to C++ and it turns into a random hodgepodge of 404s or really weak references (no pun intended).

Also, this same cheat sheet has been shared on HN 14 times now. Not a bad thing but interesting none the less.

Re:Programming cheat sheets by azazqadir on Tuesday May 03, 2016 @06:55AM (#11619460)
>>Also, this same cheat sheet has been shared on HN 14 times now. Not a bad thing but interesting none the less.

It still gets to the front page most of the time.

Re:Programming cheat sheets by Sophistifunk on Tuesday May 03, 2016 @01:25AM (#11618140)
If you like this sort of thing (and have a Mac), you'll probably enjoy Dash. It's particularly great to load up on anything you feel you might need before heading towards flaky international internet access for a while.

https://kapeli.com/dash

Re:Programming cheat sheets by popey456963 on Tuesday May 03, 2016 @02:32AM (#11618388)
DevDocs is a great alternative for those of us that don't use Macs. Works fully in the browser, even with no network, which is kinda cool.

http://devdocs.io/offline

Re:Programming cheat sheets by voltagex_ on Tuesday May 03, 2016 @02:49AM (#11618471)
https://zealdocs.org/ was the one I tried, but the main problem is that it didn't support zip/tar files and Windows (explorer.exe mainly) gets very slow when there are >10 000 files in one path.
Re:Programming cheat sheets by jakub_g on Tuesday May 03, 2016 @07:41AM (#11619657)
Wow it got really lots of new stuff since I last checked! The offline option sounds cool if you're working on a laptop while commuting etc.
Re:Programming cheat sheets by raffomania on Tuesday May 03, 2016 @06:42AM (#11619392)
second this. devdocs is awesome.
Re:Programming cheat sheets by peternicky on Tuesday May 03, 2016 @08:53AM (#11620133)
DevDocs is great, highly recommended!
Re:Programming cheat sheets by juhq on Tuesday May 03, 2016 @09:05AM (#11620210)
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/...
Re:Programming cheat sheets by chris_wot on Tuesday May 03, 2016 @11:40AM (#11621596)
Yeah, they have a bunch of other people's content in GitHub too it appears...
Re:Programming cheat sheets by sengork on Tuesday May 03, 2016 @12:46AM (#11617976)
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

Re:Programming cheat sheets by iamtew on Tuesday May 03, 2016 @02:54AM (#11618487)
There's also Rosetta Code, very useful for finding implementations of various things in different languages.

http://rosettacode.org/wiki/Rosetta_Code

Re:Programming cheat sheets by mxuribe on Tuesday May 03, 2016 @12:23PM (#11622028)
+1 Someone had recommended this on a previous thread; and i believe this to be so cool!
Re:Programming cheat sheets by shawnps on Tuesday May 03, 2016 @07:35AM (#11619628)
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.
Re:Programming cheat sheets by dr_zoidberg on Tuesday May 03, 2016 @01:05PM (#11622416)
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!)
Re:Programming cheat sheets by xyzzy4 on Monday May 02, 2016 @10:51PM (#11617494)
The regexp cheat sheet is missing the most important part, which is the characters you need to escape.
Re:Programming cheat sheets by Pinatubo on Monday May 02, 2016 @11:37PM (#11617719)
The R cheat sheet also looks incomplete. Is this a work in progress?
Re:Programming cheat sheets by chris_wot on Tuesday May 03, 2016 @11:32AM (#11621526)
Well that's just dandy. They are plagiarising.

http://packetlife.net/blog/2016/mar/9/dont-be-discouraged-pl...

All those PDFs that they have taken without permission and stored in their GitHub repository are the giveaway:

https://github.com/overthecs/overthecs.github.io/tree/master...

Re:Programming cheat sheets by jjfine on Tuesday May 03, 2016 @01:13AM (#11618091)
When would someone actually use a cheat sheet instead of google?
Re:Programming cheat sheets by ACow_Adonis on Tuesday May 03, 2016 @03:48AM (#11618696)
Back in the day when I actually had a desk and walls on which to pin things, I printed out and stuck cheat sheets from the 4 languages in effective use in my context: SAS, R, python and C.

The lag/effort was/is far less than google if the info is right there, and I personally found I kept having brain farts where I'd temporarily forget what language the thought I was having was actually in, and could quickly touch base again by referencing the cheat sheet without bringing up the (often distracting) web browser...

Re:Programming cheat sheets by chris_wot on Tuesday May 03, 2016 @11:26AM (#11621478)
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 by themodelplumber on Tuesday May 03, 2016 @01:17AM (#11618107)
Usually when you think you can find some new treasures in there fast. I use an API cheat sheet all the time.

Also when the topic at hand isn't very google-able and the cheat sheet is the next most efficient choice.

But a lot of the time cheat sheets get useless fast.

Re:Programming cheat sheets by delcaran on Tuesday May 03, 2016 @02:26AM (#11618366)
Working in a fully offline environment, I have git repository with only documentation for everything I may need. In this situation, a cheat sheet or a searchable doc can save my day.
Re:Programming cheat sheets by newman8r on Tuesday May 03, 2016 @03:08AM (#11618532)
I think both are useful depending on the situation. Maybe a better question is why I'd want a potentially outdated list of cheat sheets instead google. I bookmarked it anyway.
Re:Programming cheat sheets by jalami on Tuesday May 03, 2016 @01:18AM (#11618109)
To find something specific you need? probably not. Google's probably still the easiest.

To go "I want to refresh myself on X's commands and syntax", read over a short cheat sheet? Maybe

Re:Programming cheat sheets by sengork on Tuesday May 03, 2016 @01:16AM (#11618105)
When one is exploring domain specific command sets.
Re:Programming cheat sheets by tux on Monday May 02, 2016 @11:24PM (#11617659)
This is good cheat sheets, but can we have PDF downloads for it ? Also PhalconPHP would be a great addition :)
Re:Programming cheat sheets by snake_plissken on Tuesday May 03, 2016 @09:35AM (#11620461)
This is pretty sweet. It's like a super lite IDE but on paper.

For C#, in the online section, you should put a link to http://www.dotnetperls.com/. It also has sections for other languages.

Re:Programming cheat sheets by kraftman on Tuesday May 03, 2016 @05:47AM (#11619149)
not a language, but this is a great redis cheat sheet https://www.cheatography.com/tasjaevan/cheat-sheets/redis/
Re:Programming cheat sheets by klunger on Tuesday May 03, 2016 @04:35AM (#11618883)
The Java page is basically a list of links to tutorialspoint.com, which seems like an odd choice.
Re:Programming cheat sheets by rio517 on Tuesday May 03, 2016 @05:41AM (#11619119)
Would be sweet if you could customize the options in your printed sheets. Example: I know how to preform basic git operations, but sometimes I need a reminder of how to push a local branch to a remote with a different branch name.
Re:Programming cheat sheets by chris_wot on Tuesday May 03, 2016 @11:24AM (#11621447)
Isn't this DuckDuckGo's cheat sheets?

https://github.com/duckduckgo/zeroclickinfo-goodies

I updated the git one the other day...

Re:Programming cheat sheets by nkjoep on Tuesday May 03, 2016 @03:22AM (#11618593)
overapi.com can be useful if you want to discover something... but for daily use I prefer devdocs.io
Re:Programming cheat sheets by dhimes on Tuesday May 03, 2016 @07:30AM (#11619603)
A mercurial cheat-sheet would be an excellent addition to this.
Re:Programming cheat sheets by wgroenewold on Tuesday May 03, 2016 @04:29AM (#11618862)
I really love these cheatsheets for PHP:

http://phpcheatsheets.com/

Re:Programming cheat sheets by mentatghola on Tuesday May 03, 2016 @12:19AM (#11617886)
A lot of the sheets are incomplete. The guitar sheet could use a basic chords sheet, that would be handy when you need to take a break from the computer.
Re:Programming cheat sheets by leanthonyrn on Tuesday May 03, 2016 @09:12AM (#11620266)
Would be nice to see Julia, Racket, or even a Scheme.
Re:Programming cheat sheets by z3t4 on Tuesday May 03, 2016 @02:11AM (#11618313)
Should fix the CSS so it looks good when printed.
Re:Programming cheat sheets by guiye on Tuesday May 03, 2016 @08:46AM (#11620069)
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
Re:Programming cheat sheets by xyclos on Tuesday May 03, 2016 @10:10AM (#11620787)
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 by paulddraper on Tuesday May 03, 2016 @12:19AM (#11617885)
Scala's says

“Every value is an object & every operation is a message send.”

I've never heard that coming from Scala.

Re:Programming cheat sheets by eva1984 on Tuesday May 03, 2016 @02:01AM (#11618281)
Not as good as google