Which one do I choose [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm about to create a web application first but even though I manage the development with rails, graph and react. should I use python thinking more in the future of the application, if it grows in time? Or if you know about a technology stay first with it for development and then migrate?

Couple of option you can choose for web application
Use GRAND Stack : GraphQl +Reactjs + Apollo server+ Node js + Neo4j(instead of this use any other database which you are comfortable)
If web app event based : Then user Nodejs as server-side technology (MERN)
If web app as Data-computation/ Algorithms solution : then Go we React(Front end) +Nodejs(orchestration/ Middle layer) + Python(application layer/or back-end )+ any DB

Yes, i say every framework is good enough, in the long run every thing comes down to one question, how efficient code did u write?
Django
You can use django if you are interested in python. It is a famous framework which has its own ORM and many security built in features another option is flask
I will share my experience.
Recently, coded a website in laravel 5.5, at first everything was fine but when the number of user(s) grew to >50k. The site became slow and my servers showed 100% cpu usage. Later i changed the code, tried to remove nested loops, optimized my queries and used cache technologies like memchached. The site is working fine now.
i hope that answers your question.
I hope the best for you,
Happy Coding

Related

Which database should I use in this budget app project? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 23 hours ago.
Improve this question
: )
On my adventure with coding, I got to the point when I want to learn about databases but I don't quite get where to start.
I know that we have SQL and noSQL and I get the difference more or less.
The project:
It's a basic budget app. For personal and learning use only (me + a bunch of friends). I store the data in local storage. It's not really convenient + I want to learn the alternatives.
The project has been deployed via Netlify.
In the future, I'd like to write a small app which would work as a survey app and then save the app in some database so that I can analyse it (I actually need such an app to finish my Master's thesis and can't find anything). There would be mostly closed questions. Then, I'd like to check eg how many ppl chose A in question 1 and simultaneously B in question 2. Here, the SQL database would be more convenient, is it right?
I use JS and React.
My question is:
is there any free server online that I could use as a database?
I thought about JSON file. Please, correct me if I'm wrong, but I cannot make a fetch request from the app to the app. I understand that I would need a server or API. I don't want my computer to be the server as it's not sustainable.
The same thing with node.js, right? I can't use it inside the app to change a file in the app unless I use localhost, which I don't.
I also thought about Mongodb. I don't quite get how it works. I saw a tutorial that instructed me to download it. Then I will use my computer as the server, right? Is there an option to use some online database, preferably for free?
I know that Amazon, Google and Microsoft offer sth, but it looks a bit perplexing to me and before I dive into this, I'd like to know if I'm at least going in the right direction. I saw a tutorial about Google sheets as a free online database. It looks complicated but would fulfil my need. Do you have any experience with that?

JavaScript or React - database security in single-page website [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
Welcome stackoverflow community.
I'm doing small project, simple single-page website. It will also contain contact form which takes user to different page. I decided to create a database since on website I will do few responsive features ie. booking calendar where occupied dates won't be available. I wrote all my projects in vanilla js so far. I'm wondering that adding react to this project will be overkill.
I did research and know roughly cons and props for using it but I couldn't find answer if react gives you some extra safety features comparing to using vanilla js over attacks to website, and if yes, does it makes sense to write whole project in react just for those features?
Many thanks for any feedback.
I don't think you should be rewriting your app in react just for security. If you have any sensitive information. You should be keeping it on the server and not on the front-end.
For a small project. Vanilla JS can be enough. React is just for helping you manage and create UI components. It will not give you any extra security as it is still javascript in the end.

Java script and full-stack JavaScript difference? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
What is difference between JavaScript and full-stack JavaScript.
Both are same or not.
Full stack - in simplification - generally means Front-end and Back-end. You can do backend with NodeJS, and do frontend with frameworks like React or Angular. All with Javascript.
First off, JavaScript is a programming language, no matter if it's used in the browser, on the server or compiled into apps and desktop programs.
Generally, as #Tomasz wrote, with full-stack people refer to developers that can develop on all (or at least multiple) platforms, but it's still the same language. The difference lies in the usage of certain special bits of (third-party-)code.
Node has packages and many platforms (like electron) use those to accomplish their usage of the language.
On the frontend you'll likely find frameworks that make it easier to interact with what the user sees.
So to answer your question, yes, both are the same language, but they are not the same thing.
Full stack: Backend(Server Side) + Front-end(Client Side)
Backend Technology: NodeJs (Role of Backend Technologies)
Front-end Technology: React Js, Angular Js etc. (more)
For More Detail read the following URL:
Is it possible to write the backend using JavaScript?
https://airbrake.io/blog/javascript/javascript-frameworks-love
http://thefullstack.xyz/full-stack-javascript-developer/
https://www.smashingmagazine.com/2013/11/introduction-to-full-stack-javascript/

Web development [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
First of all hi to all, I am new at web development and I have some questions. I have started a web site few weeks ago(html,css,js) and now I don't know how to continue. what is the next step for my project and how can I practice without publish it in a server? Nowdays I am learning php and ruby but it is more complex to understand the back end of a web site.
Since you have already started a website, add more functionalities to it. This way, you can enhance the project and at the same time learn new things as you develop. For example, if the project is in HTML, learn Bootstrap and implement the same to the project. You can publish various versions of the project. If you do not wish to publish, you can work on it locally too.
You mentioned that you are learning PHP. Why not just throw in some data to the HTML using PHP and perform some CRUD operations on it? That would be a great way to learn!
https://www.w3schools.com/ is a great website to learn.
Wish you Goodluck and I hope I helped!

Want to create a new application for website traffic monitoring ( analysis ) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to create my own application for monitoring traffic of my website without using any third party tools like google analytics. In which I want to log screenshots, user details, page details and cookies. So what technology should I opt so as to achieve this goal and which will be best suited and what work flow should I follow.
I've never done this kind of work previously so I'm new to this. Any help would be greatly appreciated.
The technologies I know are : javascript, nodejs, django(python).
You will have to break down your application as it is a humongous task to create something like GA.
You will have to track many user activities(click,spend time etc).so you can do that in plain js or use a cross-platform lightweight library(angular.js) that can make your life a little easy.
Now since you will have to send large set of traced data to you database with minimum latency,use Node.js in this scenario.Simple Ajax call would also work but then it would be very slow.
Now comes your database.Prefer NoSql since it suits your requirement of unstructured data ,preferrablly MongoDb which can help you with its own mapReduce,large storage capacity
.Since there will be lot of calculation involved you can use your python knowledge which can help you process data a lot faster.you can use other languages as well(eg.Go)
Your processed data and results can then be stored in Redis(which acts as a caching layer).
you can use sophisticated graphic library like d3.js,Highcharts.js for displaying Graphical data on the client-side.
There are a lot of factors that can be involved.This is just a very basic outline of what you could do.

Categories