All Questions
Tagged with python javascript
56 questions
10
votes
4
answers
1k
views
What is the historical basis of using Javascript in web programming?
I come from a scientific biology background where we also use Python a lot.
Now that I've begun to start with Web development, I've consistently found myself wondering just why it is that JavaScript ...
0
votes
1
answer
118
views
How encrypting website data works
If i wanted to encrypt a password on my website before its sent to the server, would i have to encrypt the password in javascript on the frontend for it to be hidden over the interent or could it be ...
3
votes
4
answers
1k
views
Do all dynamically typed languages not support function overloading?
I have noticed that JavaScript and PHP and Python do not support function overloading.
Do all dynamically typed languages not support function overloading? If the answer is yes, then why is that?
43
votes
13
answers
11k
views
How does Python's handling of line-breaks differ from JavaScript's automatic semicolons?
Javascript has a feature called Automatic Semicolon Insertion where basically if the parser encounters an invalid token, and the last token before that was a line break, then the parser will insert a ...
1
vote
0
answers
62
views
Securing Arbitrary Code
I need to run arbitrary code snippets in Python and Javascript on a server. It cannot be run in the browser.
I'm thinking of sandboxing the code in an AWS Lambda serveless function. However, I'm ...
3
votes
2
answers
404
views
What is the rationale for making certain methods for data types static?
In C#, for instance, there are static methods for telling if a string is null or empty, finding an element in an array, clearing an array, etc. However there's an instance method for replacing ...
-2
votes
2
answers
2k
views
Should I use Flask w/ Javascript OR a Javascript UI that calls a Flask / Connexion API?
I recently wrote a data management tool in Python & SQLAlchemy. Now, I need to put a web UI on it. While I want to start small, there is some need for interactivity, like drag and drop in tables, ...
5
votes
1
answer
6k
views
How should I architect a personal schedule manager that runs 24/7? [closed]
I've developed an ADHD management system for myself that's attempting to change multiple habits at once. I know this is counter to conventional wisdom, but I've tried the conventional for years & ...
-3
votes
2
answers
1k
views
How can I calculate the radius of an arc given by a series of points
Given a series of points, I need to assert that the plotted points form an arc (with a certain level of confidence), and I need to approximate the radius of the arc.
For example, the following points ...
0
votes
2
answers
257
views
Code style to keep track of nested objects and data types?
In untyped languages (Python, Javascript specifically) find myself making a lot of bugs / wasting a lot of time because I forget what's in the objects I'm passing around. For example, I forget things ...
-2
votes
1
answer
988
views
How to make code runnable on open source code editors like Ace Editor?
For my computer science uni project I'm required to build a web application with an integrated code editor. I believe I can just integrate open source editors like Ace Editor.
However, I feel ...
18
votes
5
answers
11k
views
Algorithm for flattening overlapping ranges
I am looking for a nice way of flattening (splitting) a list of potentially-overlapping numeric ranges. The problem is very similar to that of this question: Fastest way to split overlapping date ...
-1
votes
1
answer
92
views
Would I need a web framework if the app is running locally and not in the net?
I need to make an Employee Payroll application and the client specifically stated that the application will run on their computer locally and will not be hosted anywhere in the internet.
I can code ...
2
votes
1
answer
4k
views
Best practices for calling multiple APIs and manipulating data before showing it to user?
I am building a web application that makes use of multiple API's (Google Maps, Weather APIs, and more). I am using Python + Flask on the backend, and Javascript (probably with React, I have not ...
-5
votes
5
answers
305
views
I learnt a languge suppose (Java). I also know python. I want to write a simple app. Is there any way to run both language same Time?
I had been learning python and i know Java. if i were to write a simple program, can i write both programming language in one document or compiler?
I got into this problem because if i cannot merge ...