Visual Studio Designer for Javascript App - javascript

I'm writing an application and after some Proof-of-concept work I'm starting to design the app in UML. It will be an HTML5/Javascript app with a simple ASP.NET backend serving data over SignalR and AJAX to the front.
I want to design the C# classes and the JS "classes" in UML and I'm testing out the Visual Studio designer (2013) to see if it'll work. My problem is that the designer always create C# classes for every UML class, but some of these will be JS classes. Is there any way to turn off the code generation?
Comments on other/better tools are welcome.

Related

Make a javascript 'code snippet' app an installable windows .exe using VS CODE?

Ive been learning html, css, js, php, mysql, (touched on node js but ran away from it - too much too soon) for a few months now and would like to make a simple categorized code snippet app as a learning project and to aid my crap memory!
I couldnt find a relevant answer so, hopefully its not a dumb question:
I want to primarily stick with js to get a good coding knowledge base so will make the snippet app using js, and .txt files as the storage. Using VS Code, what would be the best practice/method?
I know I could just make it browser based, but would rather have a little app I can pin to the taskbar, as im coding/self teaching full time atm.
The HTML, CSS and Javascript natively supported by browsers to develop Web Apps (You cannot run as a native app). The .EXE files are executable binary files of Windows. If you want to build Native Apps using HTML, CSS & JS, You have couple of options.
Electron JS
Electron JS is a amazing tool, To build cross-platform apps. You can develop your apps using HTML, CSS and JS and build it to any major platforms.
VS Code, Invision, MS Teams are built on electron Js
https://www.electronjs.org/
Use WebView on Native App
If you don't need to access any native function of the system, Then you can go with WebView. The web view is a feature to embed a website inside a native app. Most of the languages/frameworks have web-view support (Eg:- .Net).
If you are focusing on windows, Try .NET Web View

Visual Studio project for Javascript,HTML and CSS website with debugging

I'm developling a pure front-end based application in the webbrowser. What I'm using is Javascript (jQuery, Knockout), HTML, CSS (bootstrap). So there is no backend, there is no need for it. In that respect, I can't find a proper project template in Visual Studio (up to 2017). All I can find is either ASP.NET MVC, or Javascript Window Apps. I think those project don't match my goal. I do only want javascript, but not targeting the windows platform, but the browser. I do want a web project, but I do not require ASP.Net.
What I have so far is a blank solution, add existing project, selected the root folder. All files are there in a web project which can be launched via Visual Studio. But I can not debug javascript code this way. Or I do not know how.
So the question is, is there any matching project template I can use, or how do I debug the javascript code?
Sorry, but not just simple Javascript. You can create empty ASP.Net Web site and use it for HTML, CSS, and JavaScript programming. The Webconfig file provided by ASP.NET enables debugging in Visual Studio (or you can use F12 tools when you run the app).
You can create an empty ASP.Net Web site and use it for HTML, CSS, and JavaScript programming.
Actually VS2017 also has the new feature debug the JavaScript.
https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/

Is it feasible to load 'code logic' dynamically in iOS app?

I am looking at this WWDC session: Integrating JavaScript into Native Apps
My understanding is that this is a bridge between Obj-C and javascript, that allows calling javascript code from Obj-C and vice versa. I am wondering, does this mean I can dynamically load my 'code logic' from server in javascript, like in web applications? How should I structure my code so that a large part of my code is in javascript (Obj-C is still needed to drive the js code, of course).
If this is feasible, then deploying changes to iOS projects would no longer be such a painful experience(waiting for review and user upgrade,etc), development could be more agile. I know some teams use phonegap and similar frameworks just to get this advantage, but those solutions doesn't get the most of iOS native UI widgets/features.
If both data and logic can be loaded from server, and the Obj-c part is just the (relatively) stable skeleton code, then iOS apps become web apps without HTML (consider the app a customized web browser which loads code and data from server).
So my question is: how feasible is this? How should I split the code between Obj-C and js to make this as flexible as possible?
As per Appstore Review Guidelines "Apps that download code in any way or form will be rejected"

Packing together javascript files a .NET Web Application

I am writing a simple web app using NancyFX and the Razor view engine. I have little components in my web app that are having css, html and JavaScript. Each small component has its own folder in my Visual Studio solution.
When compiling I would like to pack together all the JavaScript code into one large file and include only that in my master-page. Something similar to ruby's sprocket gen would be the best.
Is there any solution for this problem?

Static web project in Visual Web Developer Express

I am about to develop a sort of web application using only static files (eg. html, js & css). Is there a way to start this sort of project in Visual Web Developer Express?
I want to have all the niceties with intellisense, sulution explorer and whatnot but I don't want all of the ASP.net structure in the sulution.
Is thiss possible or is there perhaps another IDE for this kind of project?
Thanks!
Well Igues I found it.
In Visual Web Developer:
File > New Web Site > ASP.NET Empty Web Site
I'll guess it doesn't hurt to look one more time before you ask.
But someone might find this usefull in the future.

Categories