tjoener
tjoener
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/19/2025 in #java-help
how does open-closed principle really work?
Which is why open-closed is a "sometimes"
24 replies
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/19/2025 in #java-help
how does open-closed principle really work?
I told OP yesterday to read about the expression problem
24 replies
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/7/2025 in #java-help
can request be validated before reaching the controller?
Just as it does the json to object conversion etc
16 replies
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/7/2025 in #java-help
can request be validated before reaching the controller?
yeah, but you put those, in the controller 😄
16 replies
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/7/2025 in #java-help
can request be validated before reaching the controller?
yes, the first place where you can... the controller
16 replies
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/7/2025 in #java-help
can request be validated before reaching the controller?
🤷 , to me he sounds wrong
16 replies
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/7/2025 in #java-help
can request be validated before reaching the controller?
So your friend might be talking about a different framework where they name something else a controller
16 replies
JCHJava Community | Help. Code. Learn.
Created by i hate SQL so much its unreal on 2/7/2025 in #java-help
can request be validated before reaching the controller?
In classical spring/spring boot it's the controllers duty to parse and validate inputs
16 replies
JCHJava Community | Help. Code. Learn.
Created by °~° on 1/23/2025 in #java-help
quick help with a simple confusion
for loops check the condition before doing another iteration, you check it after with the while loop
9 replies
JCHJava Community | Help. Code. Learn.
Created by °~° on 1/23/2025 in #java-help
quick help with a simple confusion
If you put the i == 4 break at the beginning of the while loop it should print 9
9 replies
JCHJava Community | Help. Code. Learn.
Created by rainymc_ on 11/29/2024 in #java-help
Adding to unicode
The simplest way to do it is something like
char[] chars = string.toCharArray();
for(int i = 0; i < chars.length; i++) {
chars[i] += 2;
}
String result = new String(chars);
char[] chars = string.toCharArray();
for(int i = 0; i < chars.length; i++) {
chars[i] += 2;
}
String result = new String(chars);
5 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
"viewMatrix.rotateXYZ(x, y, 0);" <- euler
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
Well, it seems like you're the smarty pants that knows everything, so you don't need any help. Good luck figuring out your completely custom camera system
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
Then you'll understand
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
Read the articles
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
no, update one matrix per frame
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
ok, go tell the video game industry you know better than them
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
read the articles
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
no, the camera stays at 0,0,0 and you rotate/move the world around it
199 replies
JCHJava Community | Help. Code. Learn.
Created by 𝓐pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
Because your camera shouldn't move 🙂
199 replies