klaftertief / elm-search

elm-search - an API search engine for all published Elm packages
http://klaftertief.github.io/elm-search/
99 stars 11 forks source link

Search by JavaScript equivalent #27

Closed dawsbot closed 6 years ago

dawsbot commented 6 years ago

I'm a brand new user to the Elm world turned onto this repo by @joelq.

TLDR: Google yields bad results for Elm packages. elm-search has been recommended as THE method for searching elm packages.

As a JavaScript dev, I want to know how to use something like window.location. But searching that in this search yields no results.

Is this the proper repository to expect that behavior from? You can find our conversation in Slack which led me here, which can be summarized as follows:

Let’s begin by ignoring the package ecosystems of React vs. Elm:

In JS, I can easily access default things like the current url: window.location. So to work with that in Elm I begin by googling to understand how I can do that. I get this package: http://package.elm-lang.org/packages/elm-community/elm-history/latest/Location

I then go from that package to it’s linked “Browse Source” and find it’s deprecated.

What do I do?

klaftertief commented 6 years ago

I don't have any plans for editorial content or full text search right now. If I remember correctly there were some discussions about a better search some time ago, mainly based around this document: https://github.com/elm-lang/projects#package-search