workspace
stringclasses 4
values | channel
stringclasses 4
values | text
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
|
---|---|---|---|---|
elmlang | general | yeah, I see what you mean here | 2019-01-10T03:05:44.013200 | Floy |
elmlang | general | Do you have performance problems in views? | 2019-01-10T03:06:11.013400 | Lynne |
elmlang | general | well, honestly speaking that is the most difficult challenge that I had to face here :slightly_smiling_face: | 2019-01-10T03:06:20.013600 | Floy |
elmlang | general | I mean are they slow/sluggish? | 2019-01-10T03:06:23.013800 | Lynne |
elmlang | general | they kind of are, but bigger issue is on backend side that even after receiving a load of performance improvements may still get killed given that can be bombarded with thousands of new request for each object resolved from 1st request to get those details one by one :smile: | 2019-01-10T03:07:44.014100 | Floy |
elmlang | general | Can you batch these requests? | 2019-01-10T03:08:57.014300 | Lynne |
elmlang | general | Would it help? | 2019-01-10T03:09:05.014500 | Lynne |
elmlang | general | as to why that happened, I can't exactly say, I assume that everyone is guilty here :stuck_out_tongue: | 2019-01-10T03:09:13.014700 | Floy |
elmlang | general | you mean sending batch request? it's a neat idea, but backend does not exactly support that | 2019-01-10T03:09:32.014900 | Floy |
elmlang | general | Ok, you can't :slightly_smiling_face: | 2019-01-10T03:09:46.015100 | Lynne |
elmlang | general | But I think that would be a way to go | 2019-01-10T03:09:59.015300 | Lynne |
elmlang | general | not to mentioon that it would present another challange in Elm as to parsing the response for that :smile: | 2019-01-10T03:10:01.015500 | Floy |
elmlang | general | It would be a list/dict of same decoders you use for the single message | 2019-01-10T03:10:21.015700 | Lynne |
elmlang | general | easy-peasy | 2019-01-10T03:10:23.015900 | Lynne |
elmlang | general | :stuck_out_tongue: | 2019-01-10T03:10:26.016100 | Lynne |
elmlang | general | hmm....ok, my bad :smile: | 2019-01-10T03:10:39.016300 | Floy |
elmlang | general | Not a problem :slightly_smiling_face: | 2019-01-10T03:10:57.016500 | Lynne |
elmlang | general | sorry, just having troubles seeing the obvious | 2019-01-10T03:11:13.016700 | Floy |
elmlang | general | ok, I will try to somehow try to overcome what happens here | 2019-01-10T03:11:34.016900 | Floy |
elmlang | general | Did I come with anything helpful? I am not 100% sure I fully understand what you are trying to achieve. | 2019-01-10T03:12:29.017100 | Lynne |
elmlang | general | Hmm. With the new Http, is it not possible to make at Task with Json decoder anymore? Is there a reason for this? | 2019-01-10T03:16:05.018000 | Luba |
elmlang | general | performance improvement and a model that is 100% accurate of each stage :stuck_out_tongue: | 2019-01-10T03:16:53.018100 | Floy |
elmlang | general | I don't want to deal with weird states by logic in view | 2019-01-10T03:17:06.018300 | Floy |
elmlang | general | Wow, that was surprising... I guess you can use `stringResolver` and then `Decode.decodeString` instead | 2019-01-10T03:19:37.018900 | Lynne |
elmlang | general | Weird there is no `jsonResolver` tho | 2019-01-10T03:20:12.019300 | Lynne |
elmlang | general | I guess so. But seems like he must have had a reason to make task and cmd different in that way. | 2019-01-10T03:21:08.019400 | Luba |
elmlang | general | Definitely | 2019-01-10T04:08:30.019700 | Lynne |
elmlang | general | we’ve heard - but now for quite a long time - that a fix is in development. It requires changes deep in the internals of the compiler and will take time. With other stuff coming out though - e.g. http2 - there is a question as to how much this bug is being prioritised | 2019-01-10T06:13:45.020500 | Lynn |
elmlang | general | <@Leonie> hi, about your css module i have a little question, i posted in github | 2019-01-10T06:22:14.021400 | Leopoldo |
elmlang | general | you should just ask the question on <#C0HJVT881|elm-css> and see if anyone there can help you. github issues should be issues related to the project itself, not a question about usage of the project, for that slack (or discourse) is a better place. :slightly_smiling_face: | 2019-01-10T06:45:27.021600 | Lewis |
elmlang | general | it can considered somewhat rude to open a github issue and then ping someone (potentially triggering a notification for them) about it right after. | 2019-01-10T06:46:45.021800 | Lewis |
elmlang | general | just a friendly tip! :+1: | 2019-01-10T06:46:54.022000 | Lewis |
elmlang | general | thanks for the tip, it won't happen again | 2019-01-10T06:54:39.022200 | Leopoldo |
elmlang | general | sure. hope someone can help you! :slightly_smiling_face: | 2019-01-10T06:55:58.022400 | Lewis |
elmlang | general | anybody that knows of a good way of making scatter plots? | 2019-01-10T07:33:24.024000 | Desire |
elmlang | general | Sending: <https://package.elm-lang.org/packages/elm/http/latest/Http#bytesBody> | 2019-01-10T07:36:27.024100 | Rebekah |
elmlang | general | Receiving: <https://package.elm-lang.org/packages/elm/http/latest/Http#expectBytesResponse> | 2019-01-10T07:36:55.024300 | Rebekah |
elmlang | general | There are several graph/charting libraries, but I find something like <https://package.elm-lang.org/packages/enetsee/facet-plot-alpha/latest> very appealing | 2019-01-10T07:39:04.025100 | Iona |
elmlang | general | <@Desire> terezka/line-charts and make the lines transparent :wink: | 2019-01-10T07:39:25.025600 | Nana |
elmlang | general | can I do that? | 2019-01-10T07:41:09.025700 | Desire |
elmlang | general | <https://enetsee.github.io/facet-plot-alpha/> | 2019-01-10T07:41:26.025900 | Iona |
elmlang | general | can multiple points be on the same x ? | 2019-01-10T07:41:54.026100 | Desire |
elmlang | general | yeah they can even be unordered | 2019-01-10T07:42:48.026300 | Nana |
elmlang | general | so you could make a line that goes in a circle if you wanted :stuck_out_tongue: | 2019-01-10T07:43:14.026500 | Nana |
elmlang | general | libraries like that really need demos | 2019-01-10T07:43:34.026700 | Desire |
elmlang | general | <https://enetsee.github.io/facet-plot-alpha/> | 2019-01-10T07:43:57.026900 | Iona |
elmlang | general | nice! | 2019-01-10T07:44:05.027100 | Desire |
elmlang | general | where is that in the readme? | 2019-01-10T07:45:18.027300 | Desire |
elmlang | general | it’s relatively new - it was on the elm discourse where both links are present | 2019-01-10T07:46:12.027500 | Iona |
elmlang | general | added an issue about that | 2019-01-10T07:47:59.027700 | Desire |
elmlang | general | looks promissing | 2019-01-10T07:48:18.027900 | Desire |
elmlang | general | Yeah - the idea behind the grammar of graphics is really nice and very customisable with a small number of composable primitives | 2019-01-10T07:49:08.028100 | Iona |
elmlang | general | `gampleman/elm-visualization` | 2019-01-10T08:24:32.028600 | Agustin |
elmlang | general | Although for line chart I prefer terezkas package | 2019-01-10T08:25:57.029200 | Agustin |
elmlang | general | if you like something a bit more 'low level', `elm-collage` is a nice choice as well... | 2019-01-10T08:33:35.029900 | Earnestine |
elmlang | general | elm-visualuzation is quite low level, it’s basically D3 for elm | 2019-01-10T08:38:57.030200 | Agustin |
elmlang | general | Hello folks. Does anybody has an example of working `.circleci/config.yml` with running *elm-test*. I mean the one based on the standard `circleci/node`
image. | 2019-01-10T09:52:16.031100 | Mazie |
elmlang | general | Is there a way to capture the first part of a union type? e.g. suppose there is a union type:
```
type Model
= Foo1 Bar1 Baz1
| Foo2 Bar2 Baz2
...
```
you can use `case model of` and match on `Foo1 bar _ ->`, but I am unable to match on it like this `foo bar _ ->` in order to be able to construct the right foo back. I’m thinking that the way to is to wrap the `Foo` in another constructor, like:
```
type Model
= Qux1 Foo1 Bar1 Baz1
| Qux2 Foo2 Bar2 Baz2
...
``` | 2019-01-10T10:40:47.035600 | Su |
elmlang | general | I'm not sure what you mean by "construct the right foo back"? | 2019-01-10T10:45:26.036100 | Carman |
elmlang | general | Something like this?
```
case model of
Foo1 bar _ -> Foo1 bar newBaz
...
``` | 2019-01-10T10:45:56.036800 | Carman |
elmlang | general | Yes, sorry, that is what I mean. I want to do this because the message I get leads to updating something in the payload e.g. `bar`, but it should not change the foo type. Right now I have a growing number of Foo1, Foo2, etc so I am casing on all of them | 2019-01-10T10:54:33.039000 | Su |
elmlang | general | Do you have something that works and are trying to simplify? Or are you trying to something working first? | 2019-01-10T10:57:54.039500 | Carman |
elmlang | general | I have something that works, and am trying to simplify. I will be adding more cases of Foo as I refactor more logic from the JS side | 2019-01-10T11:02:30.040600 | Su |
elmlang | general | So you want a way to unwrap, do a thing to a value inside, then rewrap? | 2019-01-10T11:03:42.041100 | Carman |
elmlang | general | Yes, that describes it exactly | 2019-01-10T11:04:30.041700 | Su |
elmlang | general | How many branches will have a `bar` value? Just one? Most branches? | 2019-01-10T11:05:11.042300 | Carman |
elmlang | general | Right now, all the branches have the `bar` value; I cannot foresee a branch without a `bar` value | 2019-01-10T11:06:24.043400 | Su |
elmlang | general | One possibility is to have something like:
```
updateBar : (Bar -> Bar) -> Model -> Model
updateBar func model =
case model of
Foo1 bar other -> Foo1 (func bar) other
Foo2 bar different -> Foo2 (func bar) different
...
``` | 2019-01-10T11:08:18.046400 | Carman |
elmlang | general | This allows you to only have to do the `case` once. Now you can apply any operation to a bar inside a model | 2019-01-10T11:08:52.047700 | Carman |
elmlang | general | <@Su> one option is to make `type alias Foo {bar : Int, baz: FooBar}`
so you put fields which the variants have in common in the outside record, and things that are different you put in the inner type | 2019-01-10T11:10:26.050800 | Nana |
elmlang | general | Another possibility is to change the modeling. If there's always a `Bar` + something else maybe you could have something like:
```
type alias Model = { bar : Bar, rest : ThePartThatVaries }
``` | 2019-01-10T11:10:37.050900 | Carman |
elmlang | general | hmmm I think that's the same approach as <@Nana> :smile: | 2019-01-10T11:11:06.051300 | Carman |
elmlang | general | <@Carman> yup :smile: | 2019-01-10T11:12:30.051800 | Nana |
elmlang | general | <@Carman> and <@Nana> awesome, thanks. Casing on all the variants in one place will address casing everywhere. And changing the modeling to a record with outer common structure makes a lot of sense for my model. | 2019-01-10T11:20:33.054100 | Su |
elmlang | general | I implemented a little demo in elm (for a class I teach) a while back. You can see a live version here: <http://paws.kettering.edu/~sturgmancohen/realtime/> and the approximate code here: <https://github.com/sturgman/demo-leveltank>
I am curious... say I wanted to learn moder js by porting my demo. What would that entail? Where would I even start? What kind of things would I have to learn. I appreciate elm because it guided me into accomplishing the demo with little web programming experience: it told me to build a model, a way to update it, and a view. I did those three things and magically had a useful demo for class. How do I even get started doing something similar in js? | 2019-01-10T13:49:51.054600 | Jospeh |
elmlang | general | More specific questions:
I know elm uses something called a vdom... would I need something like that in js land... or could I forgo it? | 2019-01-10T13:50:23.054700 | Jospeh |
elmlang | general | there's raw js, and there's 'modern' js. I think in most real world projects there will be libraries/frameworks involved. you can pick one and see how its goes... react for instance? | 2019-01-10T13:54:06.054900 | Lindsey |
elmlang | general | Vue! | 2019-01-10T13:59:38.055400 | Danika |
elmlang | general | <@Jospeh> vdom is a technique that Elm and many modern JS frameworks uses under the hood. it's a way to enable writing functional/declarative UI code with good performance | 2019-01-10T14:01:11.055600 | Nana |
elmlang | general | but not something you need to concern yourself with | 2019-01-10T14:01:24.055800 | Nana |
elmlang | general | yeah Vue or React are good, and quite similar to Elm | 2019-01-10T14:02:14.056000 | Nana |
elmlang | general | Vue and React are programming languages? Or are they equivalent to TEA? | 2019-01-10T14:12:38.056300 | Jospeh |
elmlang | general | the are frameworks/libs for JS, but they use "functional rendering" similar to Elm | 2019-01-10T14:13:33.056500 | Nana |
elmlang | general | Never mind! I googled... make sense... so I would still use something to guide me through the process instead of just starting js from scratch... | 2019-01-10T14:13:35.056700 | Jospeh |
elmlang | general | Vue and REact are js librarires | 2019-01-10T14:13:35.056900 | Rosa |
elmlang | general | Cool... thanks all! I will check it out... | 2019-01-10T14:13:47.057100 | Jospeh |
elmlang | general | React is often combined with Redux, and Vue is often combined with Vuex. Redux/Vuex are like the Model/Update in TEA | 2019-01-10T14:14:21.057300 | Nana |
elmlang | general | wow... so many things... | 2019-01-10T14:15:23.057500 | Jospeh |
elmlang | general | you also have immutable.js, lodash, ramda, webpack, css preprocessors... it's probably more fun to stick with Elm :stuck_out_tongue: | 2019-01-10T14:16:24.057700 | Nana |
elmlang | general | Ha! probably good advice... | 2019-01-10T14:17:01.057900 | Jospeh |
elmlang | general | vue.js is so interesting! | 2019-01-10T14:19:56.058100 | Jospeh |
elmlang | general | Vue is awesome, and it’s developed by an Evan just like elm :3 | 2019-01-10T14:23:30.058900 | Danika |
elmlang | general | Is it possible/reasonable to write a decoder adapter with Json.Decode? For example, I'm trying to write a function with type:
`replaceAlias : Decoder a -> (String, String) -> Decoder a`
That will adapt the provided decoder to work on JSON where an object field name needs to be different. | 2019-01-10T14:37:09.061200 | Shawanna |
elmlang | general | Or is the correct approach to define a decoder of type `Decode Value` and somehow string them together? | 2019-01-10T14:38:07.062300 | Shawanna |
elmlang | general | I'm not sure what you're trying to do? | 2019-01-10T14:41:39.062600 | Carman |
elmlang | general | It's a pretty gross workaround to get dillonkearns/elm-graphql working with a finicky backend | 2019-01-10T14:42:19.064000 | Shawanna |
elmlang | general | You have something like `Decode.field "name" Decode.string` and you'd like to change it to read from `"email"` instead? | 2019-01-10T14:42:33.064400 | Carman |
elmlang | general | yeah | 2019-01-10T14:42:39.064600 | Shawanna |
elmlang | general | but without actually changing the decoder | 2019-01-10T14:42:49.064900 | Shawanna |
elmlang | general | since it's autogenerated code | 2019-01-10T14:42:57.065200 | Shawanna |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.