workspace
stringclasses 4
values | channel
stringclasses 4
values | text
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
|
---|---|---|---|---|
elmlang | general | i'd have to see the code. i'm sorry, i'm just a noob | 2019-02-07T21:52:22.180800 | Lupita |
elmlang | general | Me too :slightly_smiling_face: | 2019-02-07T21:52:33.181000 | Marcus |
elmlang | general | I'm happy I just recognized the syntax. | 2019-02-07T21:52:42.181300 | Marcus |
elmlang | general | I’m going to ask this here as I don’t know where else to go :sweat_smile: is there a way to message the admin/moderators discourse? I have a few questions that I would like to ask them | 2019-02-08T04:01:29.183200 | Karrie |
elmlang | general | You can send a message to ElmModerationTeam through <https://discourse.elm-lang.org/about> | 2019-02-08T04:31:54.183300 | Huong |
elmlang | general | from Discourse, there’s no way to send them a message to ElmModerationTeam or anyone else that is a moderator or admin | 2019-02-08T04:33:19.183500 | Karrie |
elmlang | general | but I DM ElmModerationTeam here on Slack | 2019-02-08T04:42:03.183800 | Karrie |
elmlang | general | any recommendation for an editor equipped with a good elm19 mode? (for linux) | 2019-02-08T06:34:45.185000 | Earnestine |
elmlang | general | vim :joy: | 2019-02-08T06:37:01.186100 | Agustin |
elmlang | general | <@Earnestine> I'm using VSCode which has a pretty nice Elm plugin
I think the Elm plugin for Atom is slightly more advanced, but I had some issues with it, plus VSCode has better performance and I'm just more used to it | 2019-02-08T06:37:50.187000 | Nana |
elmlang | general | Okay. Thanks for the update! | 2019-02-08T07:46:28.187900 | Estela |
elmlang | general | So I am now leaning toward the CSS based solution. How have I not know about this until now?
<https://css-tricks.com/snippets/jquery/smooth-scrolling/> | 2019-02-08T08:19:23.188100 | Estela |
elmlang | general | They said editor, not portal to the shadow realm | 2019-02-08T08:20:36.188700 | Danika |
elmlang | general | But the shadow realm has monads | 2019-02-08T08:29:56.189000 | Agustin |
elmlang | general | ```{- This is a **really** ugly hack since Elm 0.19 doesn't allow `Debug.crash` any more.
Hopefully this will never get executed, but if it does, it will make your browser
hang (or hopefully give a stack overflow error).
The only justification for this is that it *should* never get called, and there are
no sensible default cases if we do get there.
-}
crashHack : String -> a
crashHack msg =
crashHack msg``` | 2019-02-08T10:41:16.189400 | Danika |
elmlang | general | :’) amazing | 2019-02-08T10:41:34.189700 | Danika |
elmlang | general | I'll admit to having done a similar thing | 2019-02-08T10:43:28.189800 | Huong |
elmlang | general | <https://github.com/zwilias/elm-holey-zipper/blob/master/src/List/Holey/Zipper.elm#L87-L98> | 2019-02-08T10:43:29.190000 | Huong |
elmlang | general | What would you need to encode in the type system to not require the `unsafe` here? GADTs? | 2019-02-08T10:46:50.190200 | Niesha |
elmlang | general | It’s especially cheeky given this is `elm-community/graph` | 2019-02-08T10:49:31.190400 | Danika |
elmlang | general | <@Niesha> that would work. Alternatively, something like
```
type Full a = Full a
type Hole = Hole
type Zipper t a = Zipper (List a) t (List a)
``` would work, but I didn't like the prospect of passing around a `Zipper (Full a) a`. Not sure why exactly I decided against it, though :sweat_smile: | 2019-02-08T10:57:56.190600 | Huong |
elmlang | general | It would be better if crashHack wasn't tail recursive. Because this gets translated to a while loop and doesn't crash the browser, it just makes it unresponsive.
I'm sure there is a way to write it in a non tail recursive way, but I can't figure it out right now. | 2019-02-08T12:14:11.190900 | Hilma |
elmlang | general | `msg ++ crashHack msg` would do it | 2019-02-08T12:31:25.191200 | Lynne |
elmlang | general | I found that elm/file is currently broken in IE. These MRs should fix it. If anyone is available to give a quick read, I'd appreciate it.
<https://github.com/elm/file/pull/9>
<https://github.com/elm/json/pull/12> | 2019-02-08T16:59:30.192700 | Charity |
elmlang | general | <@Lynne> that wouldn't work because `msg : String` and `crashHack msg : a` | 2019-02-08T17:33:10.192800 | Hilma |
elmlang | general | This works, but I'm sure there is a simpler solution:
```
crash : a -> a
crash a =
crash (crash a)
crashHack : String -> a
crashHack msg =
crash (crashHack msg)
``` | 2019-02-08T17:40:38.193000 | Hilma |
elmlang | general | there were some recent threads on the discourse regarding elm/file where Evan was quite active. Maybe you can open your own thread there? | 2019-02-08T18:11:20.193200 | Virgie |
elmlang | general | Since we're clearly on a terrible, horrible track here... might as well abuse a bug | 2019-02-08T18:18:44.193400 | Huong |
elmlang | general | `crashHack x = x |> crashHack` | 2019-02-08T18:18:55.193600 | Huong |
elmlang | general | that's a good idea. I saw those along the way. | 2019-02-08T18:31:37.193800 | Charity |
elmlang | general | Hi, is it possible to configure the from elm code compiled javascript to be human-readable? I'd like to introduce Elm in my company in a manner that devs without Elm skills can maintain the javascript version of elm source... | 2019-02-08T18:42:31.195700 | Halina |
elmlang | general | I would not want to work with/maintain JS code generated by the elm compiler. The main issue (beside style) is that you'd need a really thorough understanding of the elm runtime (how/when commands are executed) | 2019-02-08T18:45:44.197000 | Virgie |
elmlang | general | It would also make it essentially impossible to recompile the Elm code without losing manual changes, so once you start editing the compiled JS, you lose the ability to Elm. together with any and all advantages Elm offers. For what it's worth, I've noticed that people don't need a whole lot of time to get productive in Elm, especially when they have some prior programming experience. | 2019-02-08T18:47:39.199000 | Huong |
elmlang | general | <@Halina> - I suggest helping the team learn Elm. We've got a junior JS dev that learned Elm and they didn't have any problems. | 2019-02-08T18:50:16.200500 | Charity |
elmlang | general | Hi, folks! :wave::skin-tone-3: Back to working on a side project in Elm! YAY! | 2019-02-08T20:11:24.200900 | Hoyt |
elmlang | general | I disagree about calling this such an ugly "hack" | 2019-02-08T23:16:13.201200 | Kris |
elmlang | general | You can't do much more against these kind of situations, it's either using this or uselessly return maybes | 2019-02-08T23:16:52.201400 | Kris |
elmlang | general | Tell us about this project of yours. | 2019-02-09T06:58:22.202500 | Lory |
elmlang | general | ah, ok thanks everyone! | 2019-02-09T08:47:19.203300 | Halina |
elmlang | general | Hi everyone, is there a list of Web APIs supported by elm somewhere on the Internet? | 2019-02-09T09:52:28.204200 | Mirian |
elmlang | general | If no, do you think a resource like this would be useful to have in the community? | 2019-02-09T09:53:13.204700 | Mirian |
elmlang | general | The goal would be to keep track of the state of Elm support for these - something kinda similar to Rust's <https://www.arewewebyet.org/> and <http://arewegameyet.com/> | 2019-02-09T09:55:32.205600 | Mirian |
elmlang | general | Correct me if I'm wrong, but doesn't ports make this a non issue. I mean you can't access every webapi directly in elm, but elm does not prevent you from interacting with them threw ports. | 2019-02-09T11:15:20.206000 | Chandra |
elmlang | general | <https://kitty-tea-party.com/>
It is called Kitty Tea Party. It is a cryptokitty-related project. Some blockchain-interactions, some api calls. Perfect for Elm! :slightly_smiling_face: | 2019-02-09T11:15:33.206200 | Hoyt |
elmlang | general | I’ve currently got the system interfacing with metamask to get your wallet address, then querying the cryptokitty api for your cryptokitties :slightly_smiling_face: | 2019-02-09T11:15:59.206400 | Hoyt |
elmlang | general | I am hoping to start to have a lot more time next week to continue working on it, as it looks like I should be down to 3 days of work a week, so I’ll have days to dedicate. | 2019-02-09T11:16:47.206600 | Hoyt |
elmlang | general | I used to do a lot of Elm (used it full-time at our work), but haven’t in the past bit of time while I’ve bee working on other stuff. I’m VERY happy to be back using it. | 2019-02-09T11:17:16.206800 | Hoyt |
elmlang | general | Sure I can, but I guess folks generally would prefer to do this in elm directly? | 2019-02-09T12:06:53.207100 | Mirian |
elmlang | general | trying to migrate a library from elm18 to elm19... it was in version 1.0.2 - `elm publish` tells me now that the package has not been published yet and wants me to set up the version to 1.0.0 , I'd rather expect it to be 2.0.0 | 2019-02-09T12:11:24.208800 | Earnestine |
elmlang | general | There was a bug around that but just as a :rubberduck: the package name has to be the same, if you’re forking someone elses package it’s your `1.0.0` I believe. | 2019-02-09T12:27:08.209900 | Agustin |
elmlang | general | mhh, the name is exactly the same in my case.. I wonder if I should publish the 1.0.0 or not... looks not right to me... | 2019-02-09T12:33:15.210600 | Earnestine |
elmlang | general | it's no fork | 2019-02-09T12:33:35.210800 | Earnestine |
elmlang | general | Anyone know whether elm-xref supports 0.18 | 2019-02-09T13:31:19.212000 | Lynn |
elmlang | general | <@Huong> ^^ | 2019-02-09T13:31:31.212300 | Lynn |
elmlang | general | <@Lynn> [email protected] does! | 2019-02-09T13:32:24.212800 | Huong |
elmlang | general | aha - let me try | 2019-02-09T13:32:37.213000 | Lynn |
elmlang | general | is it possible in elm18 to read out the image data (pixels) from a response of a http request (jpg/png..). | 2019-02-09T13:50:13.214400 | Earnestine |
elmlang | general | Yeah prob, Yeah it makes sense. | 2019-02-09T13:50:41.214500 | Chandra |
elmlang | general | thanks <@Huong> seems to have worked perfectly | 2019-02-09T14:09:33.215200 | Lynn |
elmlang | general | on Monday I've got about 60 functions to remove | 2019-02-09T14:09:53.215800 | Lynn |
elmlang | general | pretty sure you'd need ports to do that (barring very dirty hacks where you can somehow turn a string back into the bytes of the image and then decode it into pixel data).
In 0.19 it should be possible given that you create a decoder for images (which would be very useful) | 2019-02-09T14:18:41.215900 | Virgie |
elmlang | general | would appreciate a lot if someone has a hint here.
it's about this package: <https://github.com/thought2/elm-wikimedia-commons>
it existed for elm 18 from the versions 1.0.0 to 1.1.0.
the master branch of the repo now contains the code for elm19. (currently tagged with 2.0.0) | 2019-02-10T03:55:41.218000 | Earnestine |
elmlang | general | wow, just started to examine the results of xref: it's really smart | 2019-02-10T04:38:36.219200 | Lynn |
elmlang | general | To me it looks that elm18 libraries, that have been published after the release of elm19 don't appear in `<https://package.elm-lang.org/all-packages>`. | 2019-02-10T04:39:24.219400 | Earnestine |
elmlang | general | is it just me or ellie isn’t working? | 2019-02-10T04:43:40.219900 | Leatrice |
elmlang | general | Safari swears at SSL certificate | 2019-02-10T04:45:06.220200 | Lynne |
elmlang | general | Chrome also | 2019-02-10T04:45:34.220500 | Lynne |
elmlang | general | do we have official docs about blockline comments vs annotation comments? I'm assuming `{- comment -}` is different from `{-| annotation -}` | 2019-02-10T05:57:12.223800 | Desire |
elmlang | general | `{-| -}` and `--|` can be used to generate documentation and so can contain markdown, other than that there’s no reason to use one over the other. Unless you’re publishing a package, in which case anything your package exposes needs to have doc comments. | 2019-02-10T06:00:07.225400 | Danika |
elmlang | general | My question is basically if there is official documentation about that | 2019-02-10T06:42:57.227200 | Desire |
elmlang | general | <https://package.elm-lang.org/help/documentation-format> maybe ¯\_(ツ)_/¯ | 2019-02-10T06:43:55.227400 | Danika |
elmlang | general | Thx, we got to many official sources floating around :/ | 2019-02-10T06:51:36.228600 | Desire |
elmlang | general | It's kind of interesting that it's really not all that clever :smile: | 2019-02-10T06:56:16.228700 | Huong |
elmlang | general | hmm. it works out that things are dead even when referred to but not in a meaningful way. | 2019-02-10T06:59:56.228900 | Lynn |
elmlang | general | Yep. It creates a callgraph from the entrypoint(s) of your application. Any function that does not appear in the callgraph is unused. | 2019-02-10T07:02:00.229100 | Huong |
elmlang | general | but it also seemed to find messages that were used in update function, but not in view/subscriptions ie that were unreachable | 2019-02-10T07:03:23.229300 | Lynn |
elmlang | general | Yeah, it only counts function calls - appearing in a pattern match doesn't "call" anything, so it doesn't count those | 2019-02-10T07:04:19.229500 | Huong |
elmlang | general | Hello. What are the current best practices of building reusable UIs in elm? | 2019-02-10T08:54:30.234100 | Else |
elmlang | general | Also, some people create stylesheets separately in .css file, others use elm-css. When one method can outweigh another? | 2019-02-10T08:54:44.234300 | Else |
elmlang | general | not just you | 2019-02-10T10:42:46.235600 | Jonah |
elmlang | general | I think one way of summarising is to say write reusable functions that update state, and reusable functions that produce Dom sections, but don't write reusable UI | 2019-02-10T11:14:06.237300 | Lynn |
elmlang | general | I have been doing frontend for a decade, with all kinds of frameworks. I still have a hard time understanding what reusable UI would look like, barring button look&feel etc. | 2019-02-10T11:48:33.239600 | Bert |
elmlang | general | is there a special incantation to get xref to examine my tests directory. I tried running it in the tests directory and it said it was looking at `.` but it didn't report anything, which might be correct but I doubt it | 2019-02-10T12:56:12.240000 | Lynn |
elmlang | general | I'm not entirely sure what you mean. Could you describe a particular scenario? :thinking_face: | 2019-02-10T12:58:53.240200 | Huong |
elmlang | general | I have dead code in my tests directory too (at least at I presume I do). can xref be used to find that? | 2019-02-10T13:00:33.240600 | Lynn |
elmlang | general | Not currently (I honestly hadn't considered that use case yet!) in the sense that it doesn't know to consider exposed `Test` values as entrypoints. Feel free to open an issue, though I should mention that I don't know if I'll also be implementing this for 0.18 | 2019-02-10T13:06:20.240800 | Huong |
elmlang | general | There are all kinds of business needs where there is a need for something that people have seen somewhere else and already know how to use.
You can have reusable widgets on the simpler side like a dropdown and you can have complex widgets like a virtual table data editor.
Some of these widgets, like an autocomplete widget are surprisingly complex to implement. Using a readily made library where someone solved all the quirks saves a lot of time. Of course, using a poorly implemented library can waste a lot of time because one would have to deal with the problems introduced by the library. | 2019-02-10T15:42:52.241200 | Maida |
elmlang | general | Also, when people reach for “reusable widgets”, in some of the cases they are not actually looking for reusability but for abstraction. They want to abstract away some hairy piece of the UI in order to be able to think clearly about the rest of the UI. | 2019-02-10T15:44:45.241400 | Maida |
elmlang | general | I have an app that has a type of view with data presented in “cards”. I also, have another view, which is made up of multiple simultaneous instances of the previous view.
I’m reusing the “card” data view, as well as re-using the subview.
I also made a reusable date-picker from scratch.
And a reusable “undoable” text editor component.
I’m using a package I built <https://package.elm-lang.org/packages/z5h/component-result/latest/> to make this all glue together rather well.
I’m not convinced we shouldn’t call an (init/update/view) tuple a component (and by component I mean the standard english definition of being a smaller part of a larger thing).
For me, this style hasn’t created any more problems than I’d expect with any other style. | 2019-02-10T16:16:37.243300 | Leoma |
elmlang | general | Why use the word 'component' when the word 'module' is already part of the Elm language? | 2019-02-10T16:34:52.243700 | Earlean |
elmlang | general | In Elm, module is a keyword with a different meaning. | 2019-02-10T17:09:55.245900 | Leoma |
elmlang | general | I might have a module for parsing various numerical formats, and formatting numbers. But it’s not exactly a component. | 2019-02-10T17:21:02.247400 | Leoma |
elmlang | general | <@Leoma> I’m with you on this, by far and large this pattern has worked over and over for us | 2019-02-10T18:00:26.247700 | Simon |
elmlang | general | Elm blog says RealWorld app can be as little as 29kb for the whole app. I’m curious what’s the size of a hello world? Trying to compare what it would be like against something like Preact for something really simple. | 2019-02-10T21:35:52.248100 | Nicolasa |
elmlang | general | How do you do "onInput" for firing a msg when a select dropdown changes value? onInput doesn't seem to fire it. | 2019-02-10T23:31:38.000600 | Nga |
elmlang | general | we use Html.Events.onInput, there must be something else at play with your code | 2019-02-10T23:43:28.001000 | Ruthann |
elmlang | general | I don’t think the Keyed part makes a diff <@Nga>
```
|> Html.Keyed.node "select" [ HE.onInput onSelect ]
``` | 2019-02-10T23:44:51.001500 | Ruthann |
elmlang | general | Yeah you're right <@Ruthann>, silly me had it on the options field in my loop instead of the select. Thank you. | 2019-02-10T23:45:26.002000 | Nga |
elmlang | general | nw, sometimes to confirm something actually works makes all the difference | 2019-02-10T23:45:56.002500 | Ruthann |
elmlang | general | ```
elm make src/Main.elm --optimize --output=elm.js
elm-minify elm.js
gzip elm.min.js
```
gives you a 2.7kb elm.min.gz | 2019-02-11T00:48:20.002700 | Maida |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.