Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm wondering if there is any serious competitor to Ethereum that's a little easier to use - meaning you don't have to learn yet another programming language (like solidity for ETH) if you know javascript already. The idea is great, but I'd be really interested in an alternative that I can use straight away with vanilla js.
Any ideas?
In theory you can write smart contracts in any programming language as long as you can compile down to virtual machine code.
In the practice, you cannot write smart contracts in JavaScript, because language run-time features make it unsuitable for the task. Because JavaScript is unsuitable for the task in the first place, no one is going to give you tools to write contracts in JavaScript. Writing smart contracts is vastly different from web programming. You need to understand that there is a long multi-year road of learning for you regardless of what you do.
The closest thing you get: NEAR protocol supports AssemblyScript that is a derivate of TypeScript.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I've been looking for a VS Code / Git extension, add-on or anything that can help me prevent but to also identify code that is already repeated so I can abstract it away and reuse it.
You know, maybe even build a library for the darn app but I haven't found anything useful and fresh yet.
There is, but it is not free. WebStorm IDE or any there JetBrains IDE show code repetition and also give you a very good insight into your code. you can try it for free for 30 days and if you liked it then buy it.
WebStorm - The smartest JavaScript IDE
Sonarlint is one of the best tool. It says code duplications and makes sure the code is good shape based on the best practices. You can also add that as a plugin in the VS Code.
SonarCube is the actual product you are looking for, it provide lot more than code duplication details.
Sonar Cube will do following things for you
Code Quality Check, it actually analyses your entire code and provides you information about Bugs and vulnerabilities
it also provides you code coverage on new-code which get pushed
it provides you information and graphs about code coverage, bugs etc.
it provides you information about code duplication
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm soon releasing my paid Electron application.
I have worked for many months on it now, and i need protection on my source code.
i have 2 files, 1. file 5000 lines, and 2. file around 4000 lines.
I need very good obfuscation on this, so it can't be read, and cant be cracked easily.
I'm willing to pay a little bit for a good obfuscator, if anyone knows any good ones that isn't free.
I have tried some different online javascript obfuscators, and most isn't very good, and is easily to read afterwards.
Thank you.
The short and sweet is: what you're looking for does not exist.
At its core, electron is very little but a repackaged webview executing javascript/html/css. The moment you execute your application, the said webview has to have full, concurrent access to the files required by it.
This means your code is there, open, unencrypted, and the only defense you have against somebody peeking is obfuscation. Which, let's admit one thing, falls short pretty quickly when the person digging into the code knows javascript.
If you were using a framework for your app that allowed purely native code, you could write a DRM-esque toolchain for it, but sadly, that's not even an option. Beyond uglifying your code and moving as much of it towards WASM as possible, there's no real other option, just compromises and trade-offs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Hello, folks!
So here I am - a total beginner in webdev without any profound education on the topic, but still aiming to get a real webdev job sometime soon.
And while the assignments in the courses I've taken employ practical use of the languages(HTML, CSS, PHP, JS, jQuery), they nevertheless lack real-life examples, like something that a real client might want.
Googling on programming challenges as to the aforementioned languages gave out mostly the same; I mean yes, there were some interesting things, but they're still far from the real clients' demand, IMO.
So the question is: where can a beginning webdev find some real assignments to perform in order to comprehend the gist of modern webdev through practice and become able to answer the clients' possible demand? Just for the sake of experience, that is, payment is not obligatory.
Any links/replies will be greatly appreciated, thanks!
Links
For real beginner: https://www.codecademy.com/
But the best thing you can do is trying to implement an own idea / copying an existent idea ... Just think of something basic.
If you need any help, use google first and then ask on stack-overflow to solve your problem.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm trying to speed up my website. I used www.unused-css.com/ to trim away excess CSS, but I cannot find anything similar for JavaScript. Is there an online service that can detect the js code being used and then trim away the unused code?
Here is the website with the problem: IQ Tests for Kids
I'm using bootstrap code and it is very bloated. I'm sure that I'm only using a fraction of js because I trimmed down my HTML as well.
The best you are going to get is running the JavaScript itself through a dead code removal process, such as the one provided by the Google Closure Compiler with ADVANCED_OPTIMIZATIONS enabled or Uglify's dead_code option. Some people even combine both of these.
Tree shaking is an even better process you will hear people talk about. But this is more difficult to achieve in your case, because tree shaking involves using ES6 modules, which the code you are dealing with almost certainly is not. Thus it would be a lot of work to get that going, as you would have to modify the code.
Don't know any online tool for that, but there are techniques to do what is called "tree shaking". You can google about it more.
Best my used tools to have it working are webpack and Flow
Webpack is quite general tool to make all kind of magic with JS, while Flow is type checking tool which, if you have type checking active can provide very good tree shaking.
But as you mentioned, you are using Bootstrap, so best place to start looking at would be customize your build:
http://getbootstrap.com/customize/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I don't know anything about javascript web programming... but want to learn.
My question is : Can I use visual studio 2015 to write, debug and publish(?) javascript web applications.
Again... I don't know if 'publishing' is the right terminology for writing web applications in Javascript... of if you can even 'write' web applications in Javascript...
Any information on the topic would be good to know.
thanks
Yes, you can use Visual Studio to create JavaScript files. It also has tools to publish, depending on the app and environment there are a lot of ways to go about it, and VS can support a lot of them (repositories, FTP, etc).
I recommend just diving in, firing up a blank project and find some tutorials to get you started. JavaScript is probably one of the easiest to develop with (at least getting started) because it has no special needs other than somewhere to write text.