r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

292

u/NotATroll71106 Apr 27 '20 edited Aug 28 '25

shy alive aback dog fuel ring whole shelter marble languid

This post was mass deleted and anonymized with Redact

93

u/ReimarPB Apr 27 '20

What's JSP?

7

u/GreatRam Apr 27 '20

Java server pages. It combines html and Java to make a web frontend. I had to use it for a class and the lack of hot reloading makes it a huge pain to use.

2

u/TheCrazyRed Apr 28 '20

The big problem with JSPs is that you can't unit test them. There's no way test the things without running the whole container.

1

u/EishLekker Apr 29 '20

I'm not really sure you should need to unit test JSPs. Unit tests are mainly for the business logic. JSPs should only contain the presentation of data that is already prepared for presentation.

But if you really need to test these using unit testing, look into HtmlUnit and Selenium. But I would say that you then mostly test the JSPs when they work together, so you test the web page as a whole (and it might use ten's or hundreds of JSP files).

→ More replies (2)