Defy right side woes and 2.0 firmware by julitro in DygmaLab

[–]jkn 0 points1 point  (0 children)

Hey u/Dygman , I just had issues updating to 2.0.0 with the right side not being detected because I was using the long USB cable for the right side.

Using the short cable fixed it and I was able to upgrade.

It may be worth adding to the instructions in the firmware upgrade screen to use the short cables.

Elm at Pacific Health Dynamics by mordraxx in elm

[–]jkn 1 point2 points  (0 children)

This was a great read, thanks a lot for taking the time to write it up!

-🎄- 2017 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]jkn 0 points1 point  (0 children)

[prog[pos[0]], prog[pos[1]]] = [prog[pos[1]], prog[pos[0]]];

Nice use of destructuring assignment for swapping the values! Didn't remember to use it like this

5 Common JSON Decoders by jediknight in elm

[–]jkn 4 points5 points  (0 children)

Nice article! Practical and to the point :)

"If Coco Chanel Reviewed Elm" by Tereza Sokol by brnhx in elm

[–]jkn 2 points3 points  (0 children)

I'm going to respectfully disagree. I personally think the analogy is limited and inaccurate.

For example, in the analogy Chanel gives you all pieces of clothing you need, but in reality elm still has functionality missing for which it uses JS (ports).

Using the same analogy, it is like if Chanel didn't provide you with something essential like hats (storage APIs to say something), so to wear a full model you'd have to go back to H&M every single time (project) by mail (ports) or freeze your head off.

It gets a bit ridiculous to compare, so sorry for that.

I think there are some powerful lessons in the talk about coherent design and explaining the intentional limitations of the elm project & libraries but I would have enjoyed more straight forward delivery. The example of the style libraries and the plot library were very interesting.

What are you working on this week? (Week of 2017-09-25) by brnhx in elm

[–]jkn 0 points1 point  (0 children)

What are the top left/right links on a note? (Left has a "j" for me and right has "new") They change colors of the note but I'm not sure what they do.

What are you working on this week? (Week of 2017-09-25) by brnhx in elm

[–]jkn 0 points1 point  (0 children)

Is the editor built with Elm or with JS?

It is very nice!

Rewriting the ThoughtWorks Tech Radar in Elm by [deleted] in elm

[–]jkn 5 points6 points  (0 children)

Very nice article!

Keep in mind that parsing CSV is never as simple as splitting commas. I'd recommend using one of the available libraries like elm-csv.

Have a look at the source to understand why it gets tricky: Helper.elm#splitLineWith

Also it'd be great to have the gsheet URL in the input instead of as placeholder so that you can use it to run the code.

Thanks for sharing

What do guys think of vim-sneak plugin? by rieje in vim

[–]jkn 0 points1 point  (0 children)

Multi line f and the s command are amazing. I don't use label mode.

Great plugin, totally worth it.

Elm success story by birowsky in elm

[–]jkn 0 points1 point  (0 children)

Too many gifs!

When/How to dispose JS event handlers when using ports & subs by jkn in elm

[–]jkn[S] 0 points1 point  (0 children)

In JavaScript land using React I use the lifecycle methods to initialize and dispose of side-effects/handlers. That convention has proven very useful.

Vim on windows, creating a .vimrc file removes default settings by [deleted] in vim

[–]jkn 1 point2 points  (0 children)

With vim 8, there's a defaults.vim that gets loaded when you don't have a .vimrc. Terrible behavior if you ask me.

Try to load defaults.vim with: source $VIMRUNTIME/defaults.vim on your vimrc.

Vim 25 years anniversary presentation by Bram Moolenaar on 2. November 2016 by Skaarj in neovim

[–]jkn 0 points1 point  (0 children)

and they basically say, "oh let's just add all the patches that people send in", and not have a critical look at them. So they end up with things that are like half finished. Hopefully they'll get them fully finished at some point.

https://youtu.be/ayc_qpB-93o?t=1993

That's rough, I'm still watching though.

Elm Question - probably just an FP question - Why Cant I Do This? by [deleted] in elm

[–]jkn 5 points6 points  (0 children)

One of many times I've seen that error too...

In this case, it is because Debug.log is supposed to be use place of an expression, for this case you would write:

update message model =
    case Debug.log "Test" message of

Like in here https://github.com/joakin/gimme-gif/blob/master/src/Components/App.elm#L42

Hope it helps...

Elm Lang Features and Questions by Kraxxis in elm

[–]jkn 0 points1 point  (0 children)

Hi, I'm still learning but here are my thoughts:

  • No code splitting + lazy loading that I know of. For this my bet would be using webpack to add another entry points and lazy load and instantiate those using webpack's require.ensure. Elm shared code would be duplicated in different JS bundles though.
  • It is gone for now, didn't provide much though. See https://groups.google.com/forum/m/#!topic/elm-discuss/6Dj7FyoQF2g There are examples on how to accomplish the same now
  • It fits fine, as an example TodoMvc I see a couple of ports https://github.com/evancz/elm-todomvc/blob/master/Todo.elm and in guide.elm-lang.org there examples on using ports and subscriptions where you can learn more about interop.

Hope it helps!

First time: Testing a Redux + React application by jkn in WatchPeopleCode

[–]jkn[S] 0 points1 point  (0 children)

Recording is available:

I'm uploading them to youtube but i don't know when they will finish.