Can JSP and Python used together for same database? [closed] - java

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'm a student who work part-time at a start-up, which runs a website made with JSP.
We are planning an android app in this summer and I'm considering developing it with Python, which I'm interested in.
However, the service provided by the app is supposed to be added to the website made with JSP later. I'm afraid the difference of the language would cause any obstacle.
Since they will use a common database, I think using different languages to access it won't have any problem. I want to make sure that my guess is correct.
Pardon my poor English. I'd appreciate your answers.

I would recommend building the API services in the current language used by your start-up. If resources are limited, the company may not wish to maintain services in another language.
Though I would not recommend this, it is definitely possible for you to develop the portions of your Android application in Python and use a different language for the API services (assuming you are willing to use Python libraries like Kivy).
This will allow you to code a chunk of your application logic in Python.
To consider:
http://kivy.org/#home
https://code.google.com/p/android-scripting/

We are planning an android app in this summer and I'm considering
developing it with Python
Native Android apps are developed using Java.
However, the service provided by the app is supposed to be added to
the website made with JSP later. I'm afraid the difference of the
language would cause any obstacle.
You will need to create an API that communicates between Android and your database.

Related

React for a Web Development Over Alternative [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
Can someone explain why is React so popular?
My understanding is that it helps with the V part of MVC design pattern for apps and is useful as its JS so can be used for UI perhaps in general.
Why would it be better than SPA (not sure I get what this means exactly, i.e. just using Javascript? - Real technical advantages of React Native over Web)
Also, it was created by Facebook so perhaps there is added benefit/functionality through that (if anyone can provide specifics that would help.
But what are the specific technical advantages/efficiencies about React is so advantageous and helpful to developers?
As an example, say I work for a bank and am designing a bank account app - how would React be useful over an alternative?
So it basically depends upon what type of application you are making . Few benefits that I found with react are:
It is based on the concept of virtual dom (main benefit of it): you can read more abt it from https://reactjs.org/docs/faq-internals.html
Easy to learn as mostly it is javascript, ES6 compared to Angular latest versions
Good community support
However, React alone is of no good use for big applications. So ultimately you have to use some state management tool like redux/ flux with it

Enabling a completed Java app on the web [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 7 years ago.
Improve this question
I am not a Java pro. I need to enable my completed java applications to ONLINE-Versions. Kindly give me the simplest way.
I have tried to go the JSP and Servlet way, but seems exceedingly tiresome,there surely ought to be a direct way.
When you use a typical web application what do you think is happening? You're in a browser and it's displaying some pages. You click around and some server does some work, for example Amazon shows you a list of books you could buy, the server is passing data to the browser for it to display.
That's a big difference from your current Java Application where everything is happening in the same computer.
This split between the UI part of the application, in the Browser, and the server part that's doing the real business is one reason why Web programming is so different from simple Java programming.
Servlets and JSPs are the traditional Java way of doing things, but modern web apps make much greater use of JavaScript for all the UI and all the Java (or any other server technology) does is provide the data displayed by JavaScript.
Bottom line: Sorry, but there is a whole lot more to learn. My recommendation would be to grit your teeth and forget about what you've done so far and start studying JavaScript and HTML.

About Android Frameworks, UI design, and tips [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
Is there some native android framework that uses only java? Example: create buttons, text fields, containers, ext.
And my biggest problem is with the design. I would like to know if is there any framework that facilitates apply styles to buttons, fields, layers, etc? Like twitter bootstrap, but only in java. I do not want html and css frameworks .. I used the phonegap and is very slow compared to native app.
I should use Framework or create my own code?
I highly recommend using the native Android framework using Java to write your code and XML to write your layouts.
The first reason you will want to do this is speed (like you said yourself, native apps typically run much smoother than apps created using PhoneGap and other third-party frameworks).
The second reason is that there is a ton of documentation and tips online teaching you how to write Android apps... there won't be nearly as much documentation available to you if you decide to auto-generate your application using some sort of third-party framework.
To help generate layouts, there is a GUI-builder that you can use in both Android Studio and Eclipse.
The Android SDK available from developer.android.com is the preferred framework. It is based on Java. Apps are written in Java, using the Android API. You must use the Android widgets, not the Java Swing widgets. You can apply styles to Android widgets.
When you go into a new development environment/platform, regardless of what it is, you can only take your existing knowledge so far. Designing web apps and web GUIs is not exactly the same as designing Android apps and GUIs. Designing an Android app is not even the same as designing an iOS app, although many developers make that mistake.
You may be able to craft a simple, functional app using a development tool such as twitter bootstrap (in the past, these were known as "fourth-generation languages" to differentiate them from regular programming languages such as PL/1, Pascal, etc.). At some point, however, you won't be able to get exactly what you're looking for, and then you'll have to learn how to use the SDK as delivered.
In short, none of the shortcuts get you there exactly.

Starting new Android application [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am about to start new Android app considering that Java development is not my strongest side I'd like some advice on where to start. The question is not that much about Android API it's more about the right tools and code organisation.
Should I use template app like Android Bootstrap and are there any other better than that.
How should I organize my code so it makes sense while the app grow.
Any other libraries that might help?
The app would be for downloading music and it'd be free one. There would be a server API that will deliver the content.
In my opinion you should start with a blank project and try to learn Java and understand how the classes in Android work. Using a template is not the best way to learn programming because you can easily get confused and not understand what the code does.
You implement the classic 3-Tier architecture with packages for the Domain, Repository, Controller and User Interface. This way you can stay organized and easily improve on your app.
Read Android forums, documentation and see what libraries do you need to use.
Firstly get stronger on Java development, go through the Java SE tutorial. Then you can take a look at the Android Development Getting Started page.
I'd also recommend you to invest on some good programming book

how to determine the number of users that can be supported by my server for a specific app [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am creating a Java web app that is meant for use by Facebook users.
The web app is planned to be hosted on Amazon EC2- now I want to find out how many users can be supported by one server. So that I have a better idea of the costs involved.
Can you tell me how to determine this, for a java + gwt web app?
Since programming products are complicated and contain many layers theoretical estimation of application performance is hard and even probably impossible. Each layer can be a bottle neck and it is hard to expect which one.
So, the only way is to perform experimental bench-marking you your specific application deployed on specific environment.
There are a lot of tolls both commercial and free. I'd start from some kind of benchmarking with JMeter. It is open source, easily extendable and very popular product for performance testing.

Categories