Comments (4)
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsol.