r/learnjava • • Feb 21 '22

I hate making GUI, what is the point of programming?

I love coding and learning how to code, but when it comes to making GUI, I hate it so much.

I just don't want to do it, I can't even force myself to do it, I know how to use JavaFX and Swing but I don't want to go near them, but then if I am not making an application that has a nice GUI then what is the point of programming ? I love programming but if I am not making GUI I think I should quit.

is there anything else that I can use my programming skill on and build a career that doesn't have anything to do with GUI (java or other programming languages)?

50 Upvotes

34 comments sorted by

•

u/AutoModerator Feb 21 '22

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions

  • You include any and all error messages in full - best also formatted as code block

  • You ask clear questions

  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

69

u/NautiHooker Feb 21 '22

There are tons of backend jobs (not only Java) that will never require you to build any kind of frontend.

14

u/xx_nothing_to_say_xx Feb 21 '22

sorry for asking ignorant questions, but how you don't interact with frontend when working with backend? you have to connect the frontend to the backend to take data and give result back to the frontend (which is GUI).

29

u/NautiHooker Feb 21 '22

In large companies you will often have multiple people working on applications. One guy might do the backend part, another might do the frontend.

There is also areas that dont require a GUI at all, so all the coding would be about the backend.

I for example work in warehouse automation. A lot of processes in the background. 90% of my tasks are about coding backend without any GUI interaction. And I only have the 10% frontend because I have the required knowledge to do those. There are people in my company that never touch any kind of frontend.

14

u/xx_nothing_to_say_xx Feb 21 '22

that is relieving, I worked on couple of projects because of university (homeworks every final of semesters) and it is frustrating, thanks a lot for the helpful answer.

6

u/[deleted] Feb 21 '22

Nowadays, in most Java web projects you don't need to touch in frontend. Are totally separated teams. You (the Java backend) just need to communicate with frontend via a message contract.

38

u/Ellstrom44 Feb 21 '22

My job consists of creating microservices, REST APIs in java, which in turn are used by frontend (gui) applications.

4

u/wheezymustafa Feb 22 '22

This is the same for me. I work on a team that strictly does microservices, no front end work at all

6

u/[deleted] Feb 21 '22

Have a look into distributed systems. There are plenty of back-end services don't have or need heir own frontend/GUI.

1

u/CLOVIS-AI Feb 22 '22

You're right that you need both, but it's often two different teams (one does the frontend, one does the backend)

4

u/Cosby1992 Feb 21 '22

Many jobs just require you to provide data to frontend developers or other services. This could be through REST apis, gRPC, graphql etc. and databases. You can easily develop a fully functional API by writing it in eg. Spring and testing your endpoints with Postman or Insomnia. Then the frontend developers present your data in a nice way in a GUI as either an executable or website/web app/mobile app etc.

I know many developers who doesn't want to touch frontend, and alike, doesn't want to develop backend. So don't loose your hope. If you like programming, but not frontend, that is no problem at all in my opinion.

Now, you mention GUI in java, but there are loads of frontend work, and java GUI is something i have not seen any job applications including. Normally they want HTML, css, JavaScript (and frameworks) to make websites etc. Which in my opinion is very different and can be pretty fun. But i like backend more as well.

2

u/xx_nothing_to_say_xx Feb 21 '22

I made websites using html, css, js and php, I can't say I like them but they don't drive me crazy like javafx and swing do, they look easier and sometimes can be a bit fun if I have to make one, so my problem is when I have to make a mobile application or desktop application using swing, javafx ... etc

19

u/shadow131990 Feb 21 '22

Most of us don't make GUIs. Most people create backends for web apps. The frontend asks for data using REST and backend responds with the data. Most GUIs are web pages and are done by separate teams.

0

u/[deleted] Feb 22 '22

[deleted]

1

u/[deleted] Feb 22 '22

Basic algebra and a good foundation in discreet maths will help you a lot in programming in general

11

u/mohan_ish Feb 21 '22
  1. I started as a Full stack engineer.

  2. I sucked at frontend so I switched my job to become a frontend engineer.

  3. I got really good at frontend but I didn't find writing CSS enjoyable.

  4. I made another switch to become a fully backend engineer.

  5. I am not gonna be a frontend specific engineer again.

-1

u/[deleted] Feb 21 '22

How did you call yourself a Full stack engineer while you sucked at Front-end ?

10

u/mohan_ish Feb 21 '22

I could do frontend tasks but they didn't turned out best, or sometimes took too much of an effort.

5

u/pierca27 Feb 21 '22

hey, I really don't like it neither. I took a course on python a couple years ago and when I got to GUI I noped away. anyways, you could try web development not because you don't have to make a GUI but because it's easier and you have tons of free templates or libraries that help around. you coud even work in the backend if you want to stick to Java

5

u/khooke Feb 21 '22

I just don't want to do it, I can't even force myself to do it

Then don't. Many developers have a long and successful career and never do any frontend development. Software is all around us at this point, it's in everything running everything. A large proportion of systems we use every day don't even have a webbased or app based frontend at all.

7

u/[deleted] Feb 21 '22

just be a backend developper, i hate frontend and design !

3

u/strike69 Feb 21 '22

Take a look at some of the most popular open source Java projects on GitHub. You'll likely notice a bunch of software and tools developed without a GUI. There are also command line utilities. Finally, not sure how far along you are in your learning or career, but I mention the following, since you focused your inquiry on Java. At some point you start to realize the language hardly matters anymore. The paradigms and principals are mostly the same. You simply choose the best language for the job or task, based on many factors. One of those factors will inevitably be how comfortable and knowledgeable you and the team are with a particular language and ecosystem. Enjoy the journey.

3

u/sr1729 Feb 21 '22

Frameworks, the already mentioned backend software or even drivers can be nice places to avoid a GUI.

Initially I wanted to mention log4j2 as a recent famous software without GUI. Then I was surprised by ClientGui.java but was relieved that log4j-jmx-gui is an optional project only.

3

u/dadmda Feb 21 '22

Become a backend engineer then

2

u/MeImportaUnaMierda Feb 21 '22

If you enjoy Java and want to work with it I‘d suggest you look into Spring (Boot) and Microservices. Quite enjoyable and you dont need frontend knowledge at all.

2

u/snipes254 Feb 21 '22

Backend should work for you

1

u/Smithman Feb 21 '22

If you want to build a UI in Java use Thymeleaf and Spring Boot. I use Spring Boot for backend and Angular for front end.

1

u/kumar_banty Feb 22 '22

This is the exact reason I left fromtend job and moved to backend. Now my job involves creating workflows and orchestration for a ecommerce company. I dont care about UI at all and I love this job. It involves problem solving and I deal with issues like scale, databases etc rather than "make this button blue". Fuck that button

1

u/CLOVIS-AI Feb 22 '22

I was exactly the same, then I played a bit with React and JetBrains Compose, and now I find GUI fun as well.

I'm definitely not going back to imperative UIs, it's hell.

1

u/0b0101011001001011 Feb 22 '22

My favourite quote from Linus Torvalds, the creator and leader of linux operating system kernel development:

"I can't do UI to save my life. [...] if I was stranded on an island and the only way to get off that island was to make a pretty UI, I'd die there." [source, youtube]

His career is very specific, but you can absolutely be succcesful without touching a GUI at all.

1

u/[deleted] Feb 22 '22

Backend development.

0

u/[deleted] Feb 21 '22

[deleted]

4

u/xx_nothing_to_say_xx Feb 21 '22

Didn't even know java can be a good choice for embedded programming, I thought is is C (for arduino) and python (for raspberry PI).
I need to read more .....

3

u/desrtfx Feb 21 '22

Didn't even know java can be a good choice for embedded programming

You're in for a surprise. DVD/BluRay/MP3 Players, "SMART" Devices, etc. use quite a lot of Java.

5

u/Wilfred-kun Feb 21 '22

Don't you know? 3 billion devices run Java...

3

u/[deleted] Feb 21 '22

Java really isn't a good choice for embedded programming in my professional opinion, it merely exists as an option because as a compile once run everywhere feature.

Doesn't mean businesses won't be attracted to that though. But when your CEO is starting to ask questions about performance and bottlenecks, prepare to start looking elsewhere for jobs unless you are also skilled at C.