Coder Social home page Coder Social logo

examples on codepen. about solid HOT 4 CLOSED

solidjs avatar solidjs commented on May 22, 2024
examples on codepen.

from solid.

Comments (4)

ryansolid avatar ryansolid commented on May 22, 2024

Yeah it looks to be possible. I will take a look.

from solid.

ryansolid avatar ryansolid commented on May 22, 2024

Ok I've created Solid Standalone, which leverages Babel Standalone to be able to run in the browser. Admittedly it's a bit limited, and while it's possible to work with Babel directly to compile I've set it up to use a script tag of type 'text/solid' to simplify in these codepens.

I made a counter: https://codepen.io/ryansolid/pen/XxpZLX/?editors=1000#0
and a simple Todos: https://codepen.io/ryansolid/pen/ZqLoxo?editors=1000

I'm gathering those are the type of examples.

from solid.

trusktr avatar trusktr commented on May 22, 2024

I opened up #12, the main motivation being that I want to make examples, and for people to start writing code the same without having to worry about "don't do it this way, this is just for example". In other words, I want the dev experience to be simple, and production ready, without caveats.

So for example, with a declarative JS-based DSL-like sort of approach, then users (f.e. newcomers to programming) can rely on the basic knowledge they'll learn in my simple examples, and start making things that are "ready for production".

from solid.

trusktr avatar trusktr commented on May 22, 2024

I'm starting to make 3D examples over at https://github.com/trusktr/infamous/tree/master/examples, but I don't want to make examples that aren't production-ready and then people start copying the techniques into production code. So if the techniques in the examples are simply "production ready", then everything will be fine if people start copying patterns into production apps.

In the docs, I will also mention how to use tooling, and JSX, etc, to make the dev experience better for those people willing to invest the time to take it to the next level.

Sometimes the ability to modify existing build tools/workflows is out of scope for a developer's work, so having a "production ready" way to start doing cool things without having to touch build systems would be nice.

from solid.

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.