Code Monkey home page Code Monkey logo

Comments (9)

erikjung avatar erikjung commented on May 29, 2024

I like <iframe>s. I wish they were all using them 🌾

from cloudfour.com-patterns.

erikjung avatar erikjung commented on May 29, 2024

Can we just link to code demos? :)

from cloudfour.com-patterns.

tylersticka avatar tylersticka commented on May 29, 2024

Can we just link to code demos? :)

yeahno

from cloudfour.com-patterns.

erikjung avatar erikjung commented on May 29, 2024

Here is a little way to embed Gists: http://codepen.io/erikjung/pen/waOxJK

(without using their script....if we just wanted to output the code itself in some customized way)

from cloudfour.com-patterns.

tylersticka avatar tylersticka commented on May 29, 2024

That's interesting, but I think moving in the wrong direction (empty semantic elements sitting in code).

I think something like Gist is easy to argue for "well, we should just add the code to the post." The value it's lending to the post is very low.

CodePen is a harder argument because most of the reason I've used it (and I assume others use it) is so folks can actually run the code without leaving the context of the post (something I find important when teaching complex, technical concepts).

from cloudfour.com-patterns.

lyzadanger avatar lyzadanger commented on May 29, 2024

@erikjung I second @tylersticka 's concerns about semantics on this one.

from cloudfour.com-patterns.

erikjung avatar erikjung commented on May 29, 2024

I'm all for adding the code directly to the posts when possible. That Gist example was just for fun, and to think about alternative methods of embedding if we don't like using a bunch of <script> elements.

CodePen is a harder argument because most of the reason I've used it (and I assume others use it) is so folks can actually run the code without leaving the context of the post (something I find important when teaching complex, technical concepts).

I thought CodePen had <iframe> embeds as well. Also, I'd be curious to see data regarding how often these embeds are actually engaged. Personally speaking, if the code is something I'm really interested in enough to tinker with, I immediately open up the actual Pen/Fiddle/whatever because I find the embedded versions to be too cramped (even on desktop).

from cloudfour.com-patterns.

tylersticka avatar tylersticka commented on May 29, 2024

I thought CodePen had <iframe> embeds as well.

I have never noticed that option, before, though considering it's like a four-pixel-tall light-gray link, I'm not that surprised:

screen shot 2015-08-10 at 4 28 07 pm

Now that I know that exists, we should totally be using that instead. Paired with the flexible embed component, that could work really nicely.

Also, I'd be curious to see data regarding how often these embeds are actually engaged. Personally speaking, if the code is something I'm really interested in enough to tinker with, I immediately open up the actual Pen/Fiddle/whatever because I find the embedded versions to be too cramped (even on desktop).

I guess I do that sometimes, but most of the time I'm less interested in the code specifically than I am in an illustration or example of a specific, bite-sized concept. If I didn't find embedded pens useful, I wouldn't embed them in my own posts. (That'd be silly!) 😄

from cloudfour.com-patterns.

tylersticka avatar tylersticka commented on May 29, 2024

I'm going to close this because it feels like more of a theme or content issue than a pattern issue, and our use of oembed probably solves some of these issues.

from cloudfour.com-patterns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.