K
K
Kinhagen2018-04-17 19:11:02
Java
Kinhagen, 2018-04-17 19:11:02

Do-it-yourself practice for newbies in Java?

Hello, I took a couple of courses at home on Java, HTML5, CSS3 and a little more JavaScript, XML. Now I think how to test the theory in practice. Firstly, I don't know how it all comes together, in particular, for example. I read that in Java you can program both pages for the web and applications. Is this done by an IDE like eclipse or do you need something else? I'm especially interested in using Java and a more or less "large" project "with meaning", and not just a page in HTML + CSS or tasks for sorting numbers, for example. What is the best place to start for a beginner? Or where can I find such tasks so that it is at least written which programs need to be installed for the first steps. And there are so many things, I still do not understand.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Kornachev, 2018-04-17
@zelan

Books before going to bed are useless, everything new needs to be fixed immediately.
Write a password manager for websites/accounts.
1) the program writes/reads/edits/displays information about accounts (record number, website, login, password) from a file (xml, json, any other format).
Write an api for:
to get a list of all records
delete record by number
change all data by number
get record by number
record number is unique. the combination of site and login is unique.
Execute in main, no console interface needed.
2) Change the program so that it works with a database instead of a file. Base H2 (embedded mode), working with the base via JDBC. If interested, you can use the database in encryption mode. After all, keep your passwords.
Ideally, think over the program so that at any time you can switch the file / database mode, with minimal cost. To do this, you need to study the topic of interfaces. In serious work without them in any way. But most likely it will not happen soon. Don't despair, it will come with time.
3) Add UI, let it be JavaFX. Login/password window. After authorization, a window is displayed with a table containing information in unencrypted form. The UI must use the api from the previous steps. Windows for editing, confirmation of deletion, etc.
4) It's too early to write further. Frameworks early. Work with the IDE, explore the possibilities.
If you do not want to write a desktop application, then you can write a client-server. The simplest option is servlet+restapi.
Use Tomcat as a container. GUI in HTML/CSS/JS. After running the application on tomcat, go to the page, the server (tomcat) returns the page with the login, enter the login password -> ajax request -> get data -> display the table, etc.
How to do it all? Search the Internet, fill bumps, etc.
This is a rather difficult task for a beginner with no experience. But anyone with 2-3 months of experience will do it without any problems. It covers many important topics: working with files, working with databases, working with ui. This is the minimum you can start with.

S
Sergey Gornostaev, 2018-04-17
@sergey-gornostaev

It is better for a beginner to start with a textbook.

M
Maxim Fedorov, 2018-04-17
@Maksclub

Tasks in PHP, but no one bothers to do them in Java and as a desktop, for example
Test tasks for a junior PHP programmer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question