Code Monkey home page Code Monkey logo

Comments (4)

clarkduvall avatar clarkduvall commented on August 17, 2024

Hmm, I agree that's confusing. The buttons are to tell the server whether to interpret the program as PSOL or JSOL, so they are necessary. For example, write a program in JSOL and check the PSOL button, and you'll get an error.

I would like to clean up the interface though to make that more clear. Any suggestions?

from jsol.

LarryBattle avatar LarryBattle commented on August 17, 2024

Replace the radio buttons with the selection and eval button side by side.
Pass additional parameters with the POST that determine the compile mode.

from jsol.

clarkduvall avatar clarkduvall commented on August 17, 2024

The POST is already passing additional parameters (thats what the PSOL/JSOL radio buttons are for). The problem is that if a user types in arbitrary code into the box, there is no way to tell if it is PSOL or JSOL. I could try to run it as PSOL, and if I get an exception fall back to JSOL, but thats pretty hacky and will return the wrong error messages in some cases.

from jsol.

LarryBattle avatar LarryBattle commented on August 17, 2024

Isn't JSOL valid JSON, while PSOL isn't?

I think it would be better if you separated the two sources. Have JSOL on one side and PSOL on the other.

Anyhow it seems ok with the current version because I just now realized that the text box allows the user to parse custom JSOL/PSOL. I original thought it was only to display code.

from jsol.

Related Issues (6)

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.