Artwork

Content provided by Jesse Tomchak. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Jesse Tomchak or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

43: Finally in Production

33:56
 
Share
 

Archived series ("Inactive feed" status)

When? This feed was archived on October 04, 2020 13:08 (3+ y ago). Last successful fetch was on January 04, 2020 14:08 (4+ y ago)

Why? Inactive feed status. Our servers were unable to retrieve a valid podcast feed for a sustained period.

What now? You might be able to find a more up-to-date version using the search function. This series will no longer be checked for updates. If you believe this to be in error, please check if the publisher's feed link below is valid and contact support to request the feed be restored or if you have any other concerns about this.

Manage episode 213629602 series 1531971
Content provided by Jesse Tomchak. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Jesse Tomchak or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

Do it already?!?!? What's the hold up? I needed to make a list. So here it is, let's go through it.

Elm Conf

What's the hold up

Shut up, where's my diagram? You promised me a diagram twice, and have failed to deliver both time. And that's not what we want to do on this show. Truth be told, I was pretty sure it was inaccurate at best, or worst just flat out wrong. So I made a new version and it is posted BEFORE I recorded the show.

  1. Json Encode Maybe

  2. POST over Ports. The trifecta of learning Elm.

    1. PORTS. Even if you aren't super leveraging PORTS, you'll need to get along with PORTS

    2. Json Decoders

    3. Maybe Types

  3. Fix image preview size

  4. At this point I'm frustrated that I can't "peer" into the Elm code, the way I can in JS. This is a very difficult habit to break.

  • HAHAH, Ports kicking our but

  • Decoding Json, I like it. There I said it.

  • Encoding is a bit of a trip, but I think....I get it.

    • Encoding nested records into JS Object Values!!!!!!!

    noteEncoder : CreateNote -> Encode.ValuenoteEncoder newNote = let _ = Debug.log "newNote" newNote in case newNote.image of Nothing -> Encode.object [ ( "noteContent", Encode.string newNote.content ) ]​ Just image -> Encode.object [ ( "noteContent", Encode.string newNote.content ) , ( "image", imageEncoder image ) ]​ imageEncoder : Image -> Encode.ValueimageEncoder image = Encode.object [ ( "content", Encode.string image.content ) , ( "name", Encode.string image.name ) , ( "type", Encode.string image.fileType ) , ( "size", Encode.int image.size ) ]​

Picks

Resources Follow

  continue reading

91 episodes

Artwork

43: Finally in Production

Javascript to Elm

73 subscribers

published

iconShare
 

Archived series ("Inactive feed" status)

When? This feed was archived on October 04, 2020 13:08 (3+ y ago). Last successful fetch was on January 04, 2020 14:08 (4+ y ago)

Why? Inactive feed status. Our servers were unable to retrieve a valid podcast feed for a sustained period.

What now? You might be able to find a more up-to-date version using the search function. This series will no longer be checked for updates. If you believe this to be in error, please check if the publisher's feed link below is valid and contact support to request the feed be restored or if you have any other concerns about this.

Manage episode 213629602 series 1531971
Content provided by Jesse Tomchak. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Jesse Tomchak or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

Do it already?!?!? What's the hold up? I needed to make a list. So here it is, let's go through it.

Elm Conf

What's the hold up

Shut up, where's my diagram? You promised me a diagram twice, and have failed to deliver both time. And that's not what we want to do on this show. Truth be told, I was pretty sure it was inaccurate at best, or worst just flat out wrong. So I made a new version and it is posted BEFORE I recorded the show.

  1. Json Encode Maybe

  2. POST over Ports. The trifecta of learning Elm.

    1. PORTS. Even if you aren't super leveraging PORTS, you'll need to get along with PORTS

    2. Json Decoders

    3. Maybe Types

  3. Fix image preview size

  4. At this point I'm frustrated that I can't "peer" into the Elm code, the way I can in JS. This is a very difficult habit to break.

  • HAHAH, Ports kicking our but

  • Decoding Json, I like it. There I said it.

  • Encoding is a bit of a trip, but I think....I get it.

    • Encoding nested records into JS Object Values!!!!!!!

    noteEncoder : CreateNote -> Encode.ValuenoteEncoder newNote = let _ = Debug.log "newNote" newNote in case newNote.image of Nothing -> Encode.object [ ( "noteContent", Encode.string newNote.content ) ]​ Just image -> Encode.object [ ( "noteContent", Encode.string newNote.content ) , ( "image", imageEncoder image ) ]​ imageEncoder : Image -> Encode.ValueimageEncoder image = Encode.object [ ( "content", Encode.string image.content ) , ( "name", Encode.string image.name ) , ( "type", Encode.string image.fileType ) , ( "size", Encode.int image.size ) ]​

Picks

Resources Follow

  continue reading

91 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide