r/javahelp • • 13d ago

Solved Noob here

Hi everyone,

I’m a junior developer. While learning and working on development, I find it really hard to understand what proper engineering work a feature actually requires. What I build often ends up being more like a demo rather than something production-ready. My team lead keeps criticizing me for this.

Does anyone have good advice on how I can improve? Thanks in advance!

3 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/Dobby068 12d ago

You only demo the happy path ???

1

u/Mqyang_lazy 12d ago

I only know how to do simple port connectivity checks. My unit tests basically just verify whether a connection can be established successfully.

2

u/Dobby068 12d ago

You need requirements for all scenarios. Then you translate the requirements into code. Unit tests must cover all functionality.

Surely when you cannot connect to a port you also have some expectation:

  • retry (how many times and with what delay, configurable parameters or not, etc)
  • finally give up, user is informed in some way, app changes some state
  • logs are generated, configurable different log levels.

All if the above can be covered by unit tests and should be.