News for hackers. Stuff that matters.
Re:SyntaxDB – Quickly look up syntax for programming languages by anthnguyen94 on Thursday June 02, 2016 @12:59PM (#11824109)
Hey HN, I'm the developer behind SyntaxDB. This feedback is good and I encourage people to keep it coming!

A lot of responses will be about "there's no result for x". You're right, there isn't nearly as much content on the site as I'd like there to be!

The content is actually hand written, and as of right now focuses on the very basic programming fundamentals common across all of the languages. The plan is to triple the amount of content in the database (adding DS, special classes, parsing, etc.), and eventually open up the database to outside contributions.

Additional languages are coming too!

Re:SyntaxDB – Quickly look up syntax for programming languages by Etheryte on Thursday June 02, 2016 @02:46PM (#11825024)
How do you plan to compare and compete with other projects such as Stack Overflow documentation (currently in closed beta iirc) which, as far as I can see, offers the same functionality, but a larger user base?
Re:SyntaxDB – Quickly look up syntax for programming languages by anthnguyen94 on Thursday June 02, 2016 @04:37PM (#11825819)
SO documentation looks very cool actually, and it'll be interesting to see how it turns out. I'm all for documentation being easier across all services, and I care a lot more about having this problem solved rather than pushing SyntaxDB to compete with existing services.

With that being said, I think the current integrations and the ones planned ahead will continue to make SyntaxDB a good option, even if other sites try a similar idea.

Re:SyntaxDB – Quickly look up syntax for programming languages by joelg236 on Thursday June 02, 2016 @01:40PM (#11824459)
It would be very awesome to have this backend data user-contributed, makes the burden of adding and improving a lot less on you. I'm looking through the sections and see lots of little tiny things that would be a quick PR on github, and I'm sure there are tons of people who'd help out.

Love the idea!

Re:SyntaxDB – Quickly look up syntax for programming languages by anthnguyen94 on Thursday June 02, 2016 @04:38PM (#11825829)
Glad you like it! User contributions will definitely be a part of SyntaxDB in the near future.
Re:SyntaxDB – Quickly look up syntax for programming languages by holmb on Friday June 03, 2016 @06:48AM (#11829500)
Reading https://syntaxdb.com/ref/python/sets I spotted an error. "setName = {} #another way to initialize set"

``` In [1]: s = {}; type(s) Out[1]: dict ```

Re:SyntaxDB – Quickly look up syntax for programming languages by smhenderson on Thursday June 02, 2016 @01:16PM (#11824243)
Good to know, I was coming to say something about smart pointers in C++ and a few other things I tried with no results.

Not sure how you're doing the querying but when I dropped the "smart" from "C++ smart pointers" it did return a result. Does every word in the search have to match then? I'd have thought, similar to Google, that it would return results where at least some of the search keywords matched even if they all don't.

Anyway, it looks like a good start. Even for people who already know a lot about programming it should be really useful for those times when you know what you need but just can't quite remember the full syntax of something.

Re:SyntaxDB – Quickly look up syntax for programming languages by anthnguyen94 on Thursday June 02, 2016 @05:49PM (#11826365)
Yep, that has to do with the full-text search engine (Solr). There's definitely some optimizing to do, I definitely don't want additional words throwing off the search!
Re:SyntaxDB – Quickly look up syntax for programming languages by arviewer on Friday June 03, 2016 @03:14AM (#11828836)
Don't try to explain basic concepts in all languages. Better make sure that the languages you have are covered for as much as possible. Then add other languages.
Re:SyntaxDB – Quickly look up syntax for programming languages by bijection on Thursday June 02, 2016 @03:50PM (#11825505)
Great job! Have you considered moving the example section above the notes section?
Re:SyntaxDB – Quickly look up syntax for programming languages by anthnguyen94 on Thursday June 02, 2016 @05:51PM (#11826384)
Glad you like it! When I designed the page, I thought it would look best if the code sections were split up. Interesting feedback, I'll get some other people's thoughts on this later.