12 ms·
DuckDuckGo ES6 Cheatsheet
- _lce0 11y agoddg keeps getting better and better and better go duck duck go!!
- galfarragem 11y agoRevisiting duck duck go after having ignored it few years ago was a good surprise. I don't know exactly what changed or if the algorithm is good enough but it made me think about trying it again.
- AdamSC1 11y agoWe encourage you to try it again for sure! We've even added a feedback button on the SERP. Despite our small size we move pretty aggressively on improving the search. In fact in the past year we've added hundreds of new Instant Answer sources and thousands of new !Bangs. So give us a test drive, set us as default for a week, let us know what is working for you and what isn't. I think one of the best parts about us, is that you can reach us. You can be engaged in this process and give feedback that helps build the search engine you want to see.
- jonesetc 11y agoAlso works with "es2015 cheatsheet" https://duckduckgo.com/?q=es2015+cheatsheet&ia=answer&iax=1 https://duckduckgo.com/?q=es2015+cheatsheet&ia=answer&iax=1
- ghrifter 11y agoAre single quotes the preferred way of making strings nowadays then? It seems to be pretty common among new JS frameworks/libraries source code that I see nowadays. var asdf = "asdf"; vs var asdf = 'asdf'; I really haven't been doing any JS programming for quite a while now.
- chromedude 11y agoYeah for the most part I believe there is a good amount of consensus around that.
- ShakataGaNai 11y agoI suspect it's mostly preference & less keystrokes (single tick requires no shift key). All the answers on stack overflow seem to indicated there's not really a difference: http://stackoverflow.com/questions/3149192/difference-between-single-quotes-and-double-quotes-in-javascript http://stackoverflow.com/questions/3149192/difference-betwee... http://stackoverflow.com/questions/242813/when-to-use-double-or-single-quotes-in-javascript http://stackoverflow.com/questions/242813/when-to-use-double...
- whoopdedo 11y agoSome languages (Perl and PHP) will interpolate variables in double-quoted strings. Getting in the habit of typing single-quotes defends against accidentally using variable substitution when you don't mean to.
- batuhanicoz 11y agoOn my Turkish Q keyboard, double quotes are the one keystroke and single quote is shift+2. Since I'm lazy I keep using double quotes when writing JavaScript.
- 49531 11y agoI'm not exactly sure why, but that seems to be the case. It might be due to the ubiquitous AirBnB JS Style guide (https://github.com/airbnb/javascript https://github.com/airbnb/javascript) which enforces single quotes. It's the style guide we use on my team.
- ShakataGaNai 11y agoIs there a printable version? Would be far more handy on my wall/desk where I can reference it quickly.
- fiatjaf 11y ago"read-only constants". This is a crazy thing to say and people are believing this.
- cname 11y agoExplain?
- jakeva 11y agoI can't speak to the intent of the post you responded to, but to me constants are by definition read-only and so it sounded a little redundant to me
- addandsubtract 11y ago"The const declaration creates a read-only reference to a value. It does not mean the value it holds is immutable, just that the variable identifier cannot be reassigned." [1] [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- Hovertruck 11y agoI see a lot of complaints about this that I don't really understand. This is similar to final in Java, val in Scala, etc – sure, it's potentially referencing a mutable value, but you know it's not going to be reassigned.
- fiatjaf 11y agoYou know that, but the happy-new-world ES6 tutorials out there do not. And I imagine the same about most people reading them.
- halayli 11y agoIf you're interesting in ES6, I highly recommend Exploring JS (http://exploringjs.com/ http://exploringjs.com/)
- sk8ingdom 11y agoI think people are missing the point. This isn't as much about ES6 as it is about DDG. For example: - https://duckduckgo.com/?q=emacs+cheatsheet&ia=cheatsheet&iax=1 https://duckduckgo.com/?q=emacs+cheatsheet&ia=cheatsheet&iax... - https://duckduckgo.com/?q=vim+cheatsheet&ia=answer&iax=1 https://duckduckgo.com/?q=vim+cheatsheet&ia=answer&iax=1
- hoppi 11y agoTried Minecraft: - https://duckduckgo.com/?q=minecraft+cheatsheet&ia=cheatsheet&iax=1 https://duckduckgo.com/?q=minecraft+cheatsheet&ia=cheatsheet... This could come in handy now that I know about it!
- giancarlostoro 11y agoI also just learned people can make their own IA (Instant Answers) and contribute to DuckDuckGo: http://duckduckhack.com/ http://duckduckhack.com/ This is their page to aid in DuckDuckGo's improvement.
- galfarragem 11y agoAll available IA (Instant Answers): https://duck.co/ia https://duck.co/ia
- georgehotelling 11y agoThe "shruggie" Instant Answer has been helpful with the rise of Slack et al.
- dan15 11y agoI have a TextExpander macro for ¯\_(ツ)_/¯, which has improved my efficiency by several orders of magnitude.
- kevando 11y agoYeah this is awesome if they keep doing stuff like this. The only reason I use google over ddg is cause google kills it with programming queries
- Wintamute 11y agoIs this cheatsheet, and similar ones for other languages, somehow dynamically generated by DDG, or are they just producing and maintaining this content themselves? If the former, bravo! If the latter I fail to see how this is a scaleable approach for a search engine?
- Blaaguuu 11y agoI believe all of DDG's 'instant answer' systems are community created and maintained... https://duck.co/ia https://duck.co/ia
- vlunkr 11y agoThis is a great question. DDG is open source, so someone should be able to figure that out. EDIT: based on other answers, this is unnecessary. These are community contributions. Pretty cool!
- moollaza 11y agoThese are all community-contributed. You can view all the JSON source files here: https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/share/goodie/cheat_sheets/json https://github.com/duckduckgo/zeroclickinfo-goodies/tree/mas... and you can search for Cheat Sheets (and all other Instant Answers) here: https://duck.co/ia?q=cheat+sheet https://duck.co/ia?q=cheat+sheet
- vbezhenar 11y agoIs there some shortcut? "cheatsheet" is a long word to type.
- giancarlostoro 11y agoYou can type char instead or these other keywords in this file: https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/CheatSheets.pm https://github.com/duckduckgo/zeroclickinfo-goodies/blob/mas... Maybe even ask for a new shortcut for cheat sheets.
- tagawa 11y agotldr; You can use your keyword with any of these trigger words: 'char', 'chars', 'character', 'characters', 'cheat sheet', 'cheatsheet', 'command', 'commands', 'example', 'examples', 'guide', 'help', 'quick reference', 'reference', 'shortcut', 'shortcuts', 'symbol', 'symbols', 'key bindings', 'keys', 'default keys'
- autoreleasepool 11y agoI actually switched back to DuckDuckGo because I've found it's a better way to use Google than google.com The cheat sheets and the bang commands are awesome. The no tracking by default is obviously a great benefit. When the results are not as good, or I have a feeling Google will do it better, I just prefix with !g in the search bar and with no additional hassle I have myself a Google search. My search engine life has never been this good.
- blubb-fish 11y ago> I actually switched back to DuckDuckGo because I've found it's a better way to use Google than google.com Exactly my stance. Especially after setting DDG as the default search engine it is possible to directly search for an address or a translation via the address bar by - "!osm [address]" - "!gm [address]" - "!dictcc smorgasbord" That is pretty neat.
- grimman 11y agoJust out of curiosity: how often do you find yourself using !g and then actually finding a better answer?
- NoGravitas 11y agoI'm not autoreleasepool, but IME, I find myself using !g about 5% of the time (counting only general searches, not things where I would be using another bang expression). About half of those times, it ends up giving me a better answer.
- autoreleasepool 11y agoIt's usually that the results are different, not better necessarily. I've done the reverse too; where I start with !g and then used DDG because I was unhappy with the results
- MildlySerious 11y agoFor me it's about 10% of searches, using !gde mostly when I need localized results. That's about it.
- jkxyz 11y agoHonestly, I've been using DuckDuckGo exclusively for a few years now, and I still don't use even half of the bangs or instant answer features. Occasionally the Wikipedia summaries are what I'm looking for, or I'll !define something. My point being, even without the power user features, it's just a great search engine for everyday use.
- krick 11y agoSame here, long time ago switched to DDG and don't have many complaints. Except, sometimes devil really is in the details: duckduckgo.com is awfully long to type on mobile and it's a tiniest bit slower than google, which is a little annoying if you use it all day long while downloading something from torrents and so on.
- smussmann 11y agoFor mobile, I've found ddg.gg much shorter to type than duckduckgo.com, and it redirects to the same place, so maybe that's a solution. I don't have anything for the latency, though.
- TazeTSchnitzel 11y agoWhy do you browse to it directly instead of using your browser's search bar?
- hardwaresofton 11y agoFor those that are looking for a reason to try DDG out: I use the DDG plugin for firefox (https://addons.mozilla.org/en-US/firefox/addon/duckduckgo-for-firefox/?src=userprofile https://addons.mozilla.org/en-US/firefox/addon/duckduckgo-fo...) -- and I get to type things like: !hn duckduckgo !python multiprocessing !ud swagtron in my addressbar and get pretty quick amazing access to a bunch of sites I know about on the internet without setting up my own custom search options on the browser itself. It has saved me tons of time and is an awesome feature. Of course, there are more reasons to choose DDG, but I remember being pretty wowed when I first saw someone else use the one I just mentioned
- stinos 11y agoI don't think you need a plugin for that? Anything typed in the address bar which doesn't look like an internet address will be sent to the default search engine by FF, so if that happens to be DDG you're ok.
- hardwaresofton 11y agoThat's absolutely right -- the plugin sets your default search provider, but if you just set it to DDG yourself (or search those phrases on duckduckgo.com), you would get those awesome features.
- shostack 11y agoTotal side bar, but I always thought their brand name held them back. It really doesn't roll off the tongue in a way conducive to becoming a verb (ie. "Let me DuckDuckGo it" vs. "Let me Google it"). Curious how everyone else finds themselves working the brand name into discussions.
- tagawa 11y agoWe've suggested people try saying "Duck it", but admittedly it's not in popular use just yet...
- davnicwil 11y agoI agree with OP. The name isn't bad per se, but I too believe it ultimately puts a ceiling on DDG's growth and marketability. The fact is, it is awkward to use in a sentence, and it will dampen the rate of word-of-mouth marketing for that reason. I'm not sure how tongue in cheek your remark is, but just in general if you think that trends in language, such as using a brand name as a verb, come from the top-down rather than appearing spontaneously and organically then you're on seriously the wrong track. There's a reason that people don't say 'duck it', that has nothing to do with you encouraging them to or not. You can't influence it at all really (well for sake of argument, assume that's true at least with anything but a world-leading marketing spend) - all you can do is set the seed for the brand to get used that way organically. At the moment it's not. The branding thus far is a sunk cost. It's never too late to turn round, walk back, and take the other fork in the road if the fork you chose isn't going anywhere.
- AdamSC1 11y agoAt the end of the day we look at it from the perspective of how we've come to be the startup that does things a little differently. Our headquarters is in a town of 5000 people in PA, we refuse to track our users even if it were more profitable, and we like our long quirky name. And, when you do use DuckDuckGo in a sentence people notice and it sticks with them because it is different. We've grown 100% year over year, but at the end of the day our main focus is building a great product people love, that truly puts privacy first. Threads like this mean we're doing it right - we just want people to love being part of the flock!
- harry8 11y agohttps://duckduckgo.com/?q=latex+cheatsheet https://duckduckgo.com/?q=latex+cheatsheet https://duckduckgo.com/?q=latex+cheatsheet&ia=cheetsheet&iax=1 https://duckduckgo.com/?q=latex+cheatsheet&ia=cheetsheet&iax... :-(
- moollaza 11y agoIt's all open-source. These are powered by simple JSON files, you're welcome to submit a LaTeX Cheat Sheet :) https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/share/goodie/cheat_sheets/json https://github.com/duckduckgo/zeroclickinfo-goodies/tree/mas... I think we have over 200 cheat sheet now
- tagawa 11y agoIf it's any consolation, there's a LaTeX quick lookup: https://duckduckgo.com/?q=latex+integral&ia=answer https://duckduckgo.com/?q=latex+integral&ia=answer
- prando 11y agoVIM cheatsheet! Sweet.. https://duckduckgo.com/?q=vim+cheatsheet&ia=answer&iax=1 https://duckduckgo.com/?q=vim+cheatsheet&ia=answer&iax=1 duckduckgo simply gets better everytime and I've made it my default search engine. And like someone mentioned, if I find the results inadequate, I just !g it.
- tagawa 11y agoRelated: We (DuckDuckGo) have a table of programming-related Instant Answers, including cheat sheets, that we're trying to complete here, so you can see what's currently available or waiting for a developer: https://github.com/duckduckgo/duckduckgo/wiki/Programming-IA-Coverage https://github.com/duckduckgo/duckduckgo/wiki/Programming-IA...
- af16090 11y agoHere's a useful list of other shortcuts that DuckDuckGo provides: http://techglimpse.com/duck-duck-go-search-engine-goodies-tricks/ http://techglimpse.com/duck-duck-go-search-engine-goodies-tr... Some of my favorites: expand [shortened URL] - (ex: expand http://tinyurl.com/urlwiki http://tinyurl.com/urlwiki) - See where a shortened URL points to password [length] [weak/strong] - (ex: password 15 strong) - Generate a password of n characters (with the usual disclaimer about generating passwords from a website)
- s9ix 11y agoWell, this just reminded me how awesome DDG is and made me switch! Thanks :)
- harunurhan 11y agoWow, cool feature from DuckDuckGo, it seems to be working well. If you want more detailed cheatsheet for ES6 https://github.com/DrkSephy/es6-cheatsheet https://github.com/DrkSephy/es6-cheatsheet is a good one, I believe.
- gary4gar 11y agoTried the Golang cheatsheet, the rendering is broken. lots of <br> tags https://duckduckgo.com/?q=golang+cheatsheet&ia=answer&iax=1 https://duckduckgo.com/?q=golang+cheatsheet&ia=answer&iax=1