Elm Weekly Drip #17 and Exercise: Add Chat Notifications and Channel Switching [08.05.2016]
Another juicy linkdump. This week's links cover: a 2 hour pairing session video with Evan; some advanced atom Elm features; a react-elm implementation that shuts down the elm app on unmount; a package to start Elm apps without views; interacting with the DOM.
This is a beefy two and a half hour video where Evan pairs to rewrite the
atom elmjutsu package [ from halohalospecial ]
An atom package providing: Go To Definition; Return From Definition; Go To Symbol; Toggle Sidekick; Autocomplete.
A webpack loader that makes it trivial to turn an Elm module into a React component.
An easy way to build Elm applications without views. You might want to do this if you just wanted to build business logic in Elm but needed to integrate with something else for the views, for instance.
We've done more work on the chat application this week. Right now when you initiate a conversation with someone else, you can't get back to the lobby. Also, it immediately opens the conversation with the other user, which is not ideal. Modify the app in the following ways:
- Add a list of non-conversation channels that can be chosen - you could just
room:lobbyso you can get back to it.
- Enable switching to the lobby upon click. Enable switching to an ongoing
conversation when clicking another user in the userlist. Right now the
application will completely replace the existing
Chatmodel when you
JoinChannel- it should probably not do that if there's already an entry in
chatswith the channel's name.
- When alice initiates a conversation with bob, bob's interface should just show a badge on her user in the user list to make this clear, rather than immediately switching to that conversation.
- The badge should also show up for any rooms the user is presently in.