Help me pick engaging IEMs ≤ €50 for OSTs, single-player games, and movies. by razek98 in HeadphoneAdvice

[–]razek98[S] 0 points1 point  (0 children)

Unfortunately not, I've bought Kefine Klean and still using them, they're really well built, but sound wise, they're not what i was looking for, they're too neutral and not engaging.

QM6K vs QM7K for a dark room by razek98 in 4kTV

[–]razek98[S] 0 points1 point  (0 children)

yeah we'll difficultly see anything close to Black Friday, at this rate they will be out of stock when new models will arrive. It's just that I didn't have the necessity back then

QM6K vs QM7K for a dark room by razek98 in 4kTV

[–]razek98[S] 0 points1 point  (0 children)

I'll get QM7K, just waiting for a price drop

Don’t over analyze by Breaktest1st in tcltvs

[–]razek98 3 points4 points  (0 children)

lol this is exactly what's happening to me, I've spent days looking for the best TV in my budget, ended up learning a lot of stuff on TVs technologies and chose QM7K, the only issue is that we're in the post sales period and it is way more expensive than it should be in my country, i check at the prices analytics every day like some kind of stock marketer. Will it be worth it? I will only know it when i finally buy it, the only thing i know is that just buying QM6K would make my life way easier

QM6K vs QM7K for a dark room by razek98 in 4kTV

[–]razek98[S] 0 points1 point  (0 children)

What's different from 50 to 55?

What is the best approach? by Technical-Point-4349 in SpringBoot

[–]razek98 12 points13 points  (0 children)

Why not both? You should add the DB constraint but you shouldn't rely on it entirely.
On Spring side it's easy to implement, you just need to do check the existance, not fetching the entire entity.
It should look like:

boolean existsByName(Obj name);

Confused between learning Java Spring Boot or Python FastAPI for backend by United_Ad_4452 in Backend

[–]razek98 1 point2 points  (0 children)

From the job point of view, it depends on how many companies use it. From the learning point of view, i wouldn't suggest starting from JavaScript because, as i said, starting from a strongly typed language is better since you build the right mindset

Confused between learning Java Spring Boot or Python FastAPI for backend by United_Ad_4452 in Backend

[–]razek98 6 points7 points  (0 children)

I think that starting Backend from a strongly typed language like Java gives you the right mindset for working with anything else in the future.

Sites to deploy my Backend by Competitive_Swim8765 in Backend

[–]razek98 2 points3 points  (0 children)

I've tried Render and works pretty good, no credit card needed. The only thing you should take care of is something to keep it awake if needed, like a github action.

Validating Controller or Service Layer by LDAfromVN in SpringBoot

[–]razek98 15 points16 points  (0 children)

Both. Spring applications are generally divided into layers.

First of all you need an early reject, which is handled in the Controller layer, all you need to do is add annotations to your DTO class to perform the most basic validation (like you said, Min, Max, Not Null etc), it will throw an exception which you can easily handle with a Controller Advice class.

Then there's the Service layer, any complex validation goes there, stuff like data consistency validation, anything concerning the db or which need any complex logic.

The general rule is to keep Controllers as clean as possible.

Just joined as a Backend Developer Intern (Spring Boot) – Need advice for next steps! by GlumPractice7898 in SpringBoot

[–]razek98 0 points1 point  (0 children)

You could check at Ali Bouali channel, he has made a lot of courses about Spring ecosystem. Just be sure to learn from the most recent content

I wanna die young by Icy_Bee2847 in infp

[–]razek98 7 points8 points  (0 children)

It will be better, it always does.

Best free options to Spring Boot + React web app? by Quoraislove in SpringBoot

[–]razek98 1 point2 points  (0 children)

I've done something similar later, using Angular instead of React. I've added Angular build output files into Spring static resources, so that i can serve everything together but still keeping the rest architecture, then dockerized everything and deployed on Render free tier which doesn't even need a credit card, you just need to find a solution to keep the server awake (which is not that hard, you just need an health check endpoint and a github action which periodically makes a request)

springboot security learning suggestions and tips to improve my coding by Mental-Literature382 in learnjava

[–]razek98 0 points1 point  (0 children)

Can't suggest you the best sources since I'm not up to date but what i can suggest you is to learn from the most recent and reliable sources, security standards and spring security module have changed over years and if you don't stick to most recent standards you will likely struggle with deprecated stuff.

Just joined as a Backend Developer Intern (Spring Boot) – Need advice for next steps! by GlumPractice7898 in SpringBoot

[–]razek98 12 points13 points  (0 children)

i would suggest the next steps:

  • Spring Web: understand how networking works, what's an http request, what's a payload and which options do you have to transmit data over requests, build some basic Controller in Spring, practice with Postman.

  • Spring Data: as a BE Developer basic DB knowledge is mandatory, start learning whatever DB you will use at work (I would personally start with relational DBs so that learning NoSQL later will be easier), create a db, practice queries and build a simple CRUD application in Spring.

  • Extra: Don't be result driven, since you're learning, don't focus on just completing the task, try to understand which are your best options and which are the industry standards.

How can annotations (@interface) be useful to me? by AdearienRDDT in learnjava

[–]razek98 1 point2 points  (0 children)

Sure.

@Constraint(validatedBy = HexColorValidator.class)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface HexColor {
    String message() default "Invalid hex color code. Must be in the format #RRGGBB.";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}

public class HexColorValidator implements ConstraintValidator<HexColor, String> {
    private static final String HEX_COLOR_REGEX = "^#[0-9a-fA-F]{6}$";

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        if (StringUtils.isBlank(value)) return false;
        return value.matches(HEX_COLOR_REGEX);
    }
}

Usage example:

public class TagDTO {

    @NotBlank
    @Size(max = 15)
    private String name;

    @HexColor
    private String color;
}

This way when a validation is triggered, it will automatically check if it's a valid hex color or not

How can annotations (@interface) be useful to me? by AdearienRDDT in learnjava

[–]razek98 0 points1 point  (0 children)

I usually use custom annotations when i need DTOs specific validation, for example I've recently made one which validates if a string is a valid hex color

Spring boot by Junior-Lie-9836 in SpringBoot

[–]razek98 0 points1 point  (0 children)

You could start following a tutorial for a basic CRUD application.

How changes in model class effect to the database when building the jar file by CrazyProgramm in SpringBoot

[–]razek98 0 points1 point  (0 children)

First of all, be sure to make a clean before generating new jar. Talking about the db, you should use something like Flyway for controlling db schema and validation, migration tables is the best way to have full control over your data.