6 ms·
Remember Google Code Search? That was a great feature of Google search. You could search for swear words in all the code available worldwide. In one (Sun Micros
by jansan 8y ago
Remember Google Code Search? That was a great feature of Google search. You could search for swear words in all the code available worldwide. In one (Sun Microsystems?) code there was a comment "The user is a wanker. He cannot remember his password." The old days were much more fun.
- marbu 8y agoYes, google code search was a great service. One could use regular expressions and limit the search to particular language or license. Moreover it indexed code from any tarball or repository google bot run into, so the sheer size of data one was searching was hard for others to match.
- tim333 8y agoThis has a similar comment. Gnome Display Manager http://rc.quest.com/viewvc/gdm/vendor/gnome/daemon/slave.c?diff_format=s&view=markup&sortby=date&sortdir=down&pathrev=4 http://rc.quest.com/viewvc/gdm/vendor/gnome/daemon/slave.c?d...
- jansan 8y agoYes, that may be it. Great find! And sorry to Sun Microsystems, it wasn't you this time.
- nerdponx 8y ago/* evil! how this this happen */ \ 239 if (slave_start_jmp_error_to_print != NULL) \ 240 gdm_error (slave_start_jmp_error_to_print); \ 241 gdm_error ("Bad (very very VERY bad!) things happening in signal"); \ 242 _exit (DISPLAY_REMANAGE); \ 243 } I'd hate to be the poor soul who encounters this error message and finds no information about it except the source code.
- arghwhat 8y agoIt will only occur if everything is so irrevocably on fire that you need to debug a lot of code anyway, at which point the error message is useless. Specifically, the branch is only reachable if the PID is not what was expected, or the location that the macro was supposed to longjmp to is not set, which would be fatal defects.
- secure 8y agoI built https://codesearch.debian.net https://codesearch.debian.net when Google Code Search was taken down. Debian Code Search doesn’t crawl, but it indexes all software in Debian, which is typically helpful enough :)
- 0x00000000 8y agoDon't remind me of how awful GitHub search is. I guess code search is just too niche with no marketability to ever improve
- superbaconman 8y agoI find myself using source graph; It seems to work well enough.
- wangyjx 8y agoyes, source graph looks great. Using docker, every easy to deploy on any OS
- aj7 8y agoGitHub search? Try nytimes.com search.
- WAthrowaway 8y agolol i worked in the same department as the search team. what a nightmare - some of the code in there went back to the 90s
- BLanen 8y agoIs it worse than reddit?
- CM30 8y agoTry the search feature in many CMS systems. Those tend to really suck, with WordPress' being awkward enough that a whole ecosystem of plugins cropped up to replace it. There's also at least one version of the OpenCart admin search which was designed so poorly that it didn't actually search based on whether the term was anywhere in the page title/content, but whether the title started with the search term (I think they'd screwed up the MySQL syntax). That was interesting. Either way, search on a system not designed as a search engine is usually okay at best, absolutely terrible at worst.
- 8y ago
- z3phyr 8y agoStandardization took place and the "business class" caught up.
- lrem 8y agoCare to elaborate?
- yegle 8y agoIf you host your code on Google Cloud Source Repository you can use the search feature https://cloud.google.com/source-repositories/docs/searching-code https://cloud.google.com/source-repositories/docs/searching-...
- aj7 8y agoWankers tend to be good at password remembering.
- gvurrdon 8y agoI wonder if the writer of that comment was American or British - it appears that the term is somewhat less offensive in the US. Once, whilst watching a relatively mainstream US series I was surprised to see a character refer to their colleagues as "wankers", which seemed rather incongruous.
- reaperducer 8y agoit appears that the term is somewhat less offensive in the US. A lot of ordinary British things are seen in the U.S. through a filter of... let's call it "quaintness." Swear words. Thatched roofs. Music on AM radio. So, yeah. Whatever offensive word you heard probably didn't have the same impact on the other side of the Atlantic. There's probably some reciprocity, too.
- millak 8y agoMy experience is that this doesn’t apply to the see you next Tuesday word, at least here in Canada. It’s seen as very offensive according to the Canadians I know. Speaking as a Brit, that word is thrown around quite casually in the UK!
- reaperducer 8y agoThat's what I meant by reciprocity. Brits have their own quaintness filter for some of the words that NorthAms see as out of bounds.
- acct1771 8y agoFor clarity's sake, and as a demonstration against censorship: "cunt"
- niutech 8y agoThere are alternatives: https://searchcode.com https://searchcode.com and https://sourcegraph.com/search https://sourcegraph.com/search
- sp1982 8y agoAnother alternative I am working on in past time is https://codegrep.com https://codegrep.com - currently indexes top few thousand repos from github.
- Buge 8y agoYou can still search Chrome though https://cs.chromium.org/ https://cs.chromium.org/
- londons_explore 8y agoGoogle still uses code search widely internally. It's one of their greatest internal-only productivity boosts. The fact it has knowledge of includes and cross-references and function prototypes and templates is amazing... You can still use it as an outsider to search Chromium: https://cs.chromium.org/ https://cs.chromium.org/
- londons_explore 8y agoRegex support is amazing to have in a search engine too... For example, paste in an email address validating regex: https://cs.chromium.org/search/?q=%5Cb%5BA-Z0-9._%25%2B-%5D%2B@%5BA-Z0-9.-%5D%2B%5C.%5BA-Z%5D%7B2,%7D%5Cb&sq=package:chromium&type=cs https://cs.chromium.org/search/?q=%5Cb%5BA-Z0-9._%25%2B-%5D%... Considering that one can't 'index by regex', I wonder how the backend works - does it actually run the regex against every source code line in the repository in a few hundred milliseconds? Sounds expensive! They must have thousands of machines! Maybe thats why they don't have a public codesearch tool for the whole internet...
- deleted 8y ago[deleted]