JSON Server
Options
Just wanted to let you all know of something really cool I'm doing and it's becoming an incredibly fast development environment for web applications. Basically, I was getting tired of all the hoops jumped through to do enterprise web development in one of the more popular frameworks- struts,asp.net,asp mvc, spring, rails, grails, etc.
I had already written a homegrown server over year ago that basically listens on a socket, receives requests for compiling C# snippets, running them, and streaming back the results based on a lightweight protocol.
Lately I've beefed up the compiler to work straight off of Linqpad scripts. In addition, I've extended the server to handle HTTP GET/POST requests the kind of which would come from an AJAX call.
So, my development environment for web apps is as follows:
1. Notepad++ with a web page open with alot of Javascript, JQuery with plenty of AJax calls.
2. Linqpad Open - Developing scripts of my backend LINQ-SQL result to JSON.
3. My homegrown linq C# server - any time a script changes, it is recompiled
4. My browser open - if I change a script, I just refresh the page I'm on.
-
It's the closest thing I can compare to Node.js. I could call it "Node.c#"
LINQ-SQL is such a great way to create the back-end logic. Lines ofCode is less than 20% what I used to write in Java so it gives me more time to work on the UX in Javascript.
Anybody else ever thought of this? I think Joseph A. could make a bunch of $'s by turning Linqpad into a JSON HTTP server.
I had already written a homegrown server over year ago that basically listens on a socket, receives requests for compiling C# snippets, running them, and streaming back the results based on a lightweight protocol.
Lately I've beefed up the compiler to work straight off of Linqpad scripts. In addition, I've extended the server to handle HTTP GET/POST requests the kind of which would come from an AJAX call.
So, my development environment for web apps is as follows:
1. Notepad++ with a web page open with alot of Javascript, JQuery with plenty of AJax calls.
2. Linqpad Open - Developing scripts of my backend LINQ-SQL result to JSON.
3. My homegrown linq C# server - any time a script changes, it is recompiled
4. My browser open - if I change a script, I just refresh the page I'm on.
-
It's the closest thing I can compare to Node.js. I could call it "Node.c#"
LINQ-SQL is such a great way to create the back-end logic. Lines ofCode is less than 20% what I used to write in Java so it gives me more time to work on the UX in Javascript.
Anybody else ever thought of this? I think Joseph A. could make a bunch of $'s by turning Linqpad into a JSON HTTP server.
Comments
-
Sounds great. Have you got samples?
-
Which part do you want to see? The server HTTP processing or the script compiling?
-
I have seen a similar idea with Scriptcs (with the --watch option), that let you execute from internet C# script (more details : )
-
Just took a look at the ScriptCS. Looks like a nice scripting framework. I'm making a video which will be available soon that show what I doing. The video will show a JSFiddle.net and LINQPAD working with each other.
-
Proof of Concept for a Linqpad Script Server.... I threw this together with Snagit. This is something I originally developed before LINQPAD, then, the developers wanted me to integrate it with LINQPAD. Since then, it's incredible the productivity gains. This could be something really big. Main reason is this. Javascript is taking over everything in the browser. But, it's really not a great back-end 4GL. LINQ-SQL is absolutely the best thing I've seen in over 20 years. Linqpad, can be leveraged to "script" the middle tier.
http://www.youtube.com/watch?v=tUX26LiAe2g