r/learnjava • • Sep 21 '19

I surrender

After 9 months learning Java, reading Head First Java and three chapters of Head First Design Patterns, I officially surrender. I see no point on programming, it's not funny anymore, just a pain in the ass, a nightmare driven by recursive entropy leading to self-encapsulation from the wonders of Nature and the Universe.

So, that's it, I surrender. I prefer to flow rathen than to constantly fight.

Good luck to all those people loving programming, you provide nice things to the world.

84 Upvotes

88 comments sorted by

View all comments

80

u/hamza-itatchi Sep 21 '19 edited Sep 21 '19

I feel ya ,

but for me I found the solution ===> F**** books and tutorial series .

I work only on a project and I search just for what I need ; so a lot of stackoverflow and I'm happy again. this is a way to learn called Goal-driven Learning.

4

u/[deleted] Sep 21 '19

What project are you working on?

2

u/hamza-itatchi Sep 21 '19 edited Sep 21 '19

For now I'm working on ERP for school management.

it's pretty big but a very good experience , almost used every thing I learned from the other project until now.

I stopped coding for a couple of weeks to re-design the architecture (first one was very messy) .

Information systems are easy to create (basically save data then show data) and gives you the basic experience

you can start with something small (login app with 3 UI and DB {login+signup+list of accounts})

for UI javaFXML(scene builder) is just easy you don't need anything to start with it

I'm little bit out of topic but I hope this help.

1

u/IllegalAlcoholic Sep 21 '19

I wanna build something like that, eg: clock in, out system, hotel management system, restaurant system. I don’t know where to start. It seems really interesting to me but I can’t get it start.

2

u/hamza-itatchi Sep 22 '19

the easiest way to do something like that is to start with UI.

1-set a list of your functionalities that your want to built in your software (don't go to deep keep it simple).make groups for this functionalities that can be or must be in one UI.

2-go to scene builder and build your UI based on your list

it's just drag and drop nothing else (don't worry about colors UX , cause you can add
a css any time ).

this method make go to the goal directly (it can cause problems in big projects)

3- now time to code

you will need three types of methods or functions

*functions responding to events like click / button pressed or released ... , usually it
gettext()/getvalue/ settext() and so on a plus test for inputs .... and this type is your
UI clickable items (buttons radio-boxes ....).

*initializing functions (seting data in your UI .......)

*Service methods like connecting to mysql or reading file.

-now you have a functioning UI (not the best code but just enough)

start enhancing your code and architecture.

your software should look complete from the user perspective by now.

the downsides of this way :

*hard to integrate your code in another project

*hard to be debugged by you and certainly by others

this why you need to enhance your architecture (OOP /static methods /packages)

this part is pretty complected but it's what gonna make your style of developing

and always ask questions.

1

u/IllegalAlcoholic Sep 22 '19

Damn, thanks a lot for the detailed information. I’m actually a CS student and I have learned about OOP in java. I want to build something like this. I can’t find anywhere online for tutorials.

1

u/hamza-itatchi Sep 22 '19

I learned this the hard way (try and fail), but it's so satisfying to get the job done in the end. just pick a project (ex:hotel management and do your list) post every step here so me or any one here can help you.