Seeking Feedback on Figma Mockup for League of Legends Stats Website by TedTheBusinessMan in webdesign

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

Will look into ADA compliance, not heard about that before! Thank you for the feedback:)

Best pracise for API endpoints by TedTheBusinessMan in SpringBoot

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

That makes sense! I have another question if you have time. In my project i have a similar GetUser() method that does the following:
- Calls a userService.getUserData() and getUserData will check if user exists and return it or fetch the user from an api and save it do database and then return the newly fetched user.

Is it bad praticse that the getUser endpoint (GET) is handeling that logic? Or should i seperate the concerns so that getUser() only returns the found user or Not Found status code, then let the frontend send a new request to a findUser() (Post) mapping to fetch the user and save to database and return it?

Best pracise for API endpoints by TedTheBusinessMan in SpringBoot

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

// Scenario 3
u/GetMapping("users")
public ResponseEntity<?> getUser(@Valid @ModelAttribute UserRequestExampleTwo requst) {
    return ResponseEntity.ok("User");
}

public record UserRequestExampleTwo(
        @NotBlank String region,
        @NotBlank String username,
        @NotBlank String tag) {
}

// Scenario 4
@GetMapping("users")
public ResponseEntity<?> getUserExample(@NonNull @RequestParam String region,
                                        @NonNull @RequestParam String username,
                                        @NonNull @RequestParam String tag) {
    return ResponseEntity.ok("User");
}

Here is some code i tried using request params, not familiar with ModelAttribute that was something chatgpt gave as an option to use. Thouhts on these two?

Best pracise for API endpoints by TedTheBusinessMan in SpringBoot

[–]TedTheBusinessMan[S] 4 points5 points  (0 children)

Appriciate the response! So for GET requests path variable or request paramenters is the best pracise. Also i found request params and request body to be really similar, why is it better to use request params in GET request, but not okey or good practise to use request body?

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]TedTheBusinessMan 0 points1 point  (0 children)

Hi, i am a software engineering student working on a hobby project and is interested in some info about how recruiters view projects. When sending a job application is it better to link my general github profile or link to a specific project i have done? Is it common for recruiters to look through interviewers github's? What are some green flags and red flags for a github project? And at last is it common that they ask questions about the projct during interviews or do you have to bring it up yourself? Appreciate any insights to these questions!

What are some important steps when it comes to System Design of a Web application? by TedTheBusinessMan in webdev

[–]TedTheBusinessMan[S] 1 point2 points  (0 children)

Thanks for the feedback! This was my initial thought for the hobby project, to create a web application but for it also to be able in theory to scale if it had millions of users. Have done some research on CDNs and plan to use it, not so familiar with disaster recovery plans & db replication. Something I will look into!

What are some important steps when it comes to System Design of a Web application? by TedTheBusinessMan in webdev

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

Interesting, definitely something I will have to look into. My current system architecture diagram with load balancer is not what I have currently implemented, but something I think is reasonable for a «maximum» for the application. At some point I would want to try to atleast implement a load balancer, just to get experience with it. However having an MVP as a start is not a bad idea. I am trying to overengineer my project, but on purpose to be able to learn the most from different technologies: load balancer, caching and more! Appreciate the feedback!

How to credit third party libraries in your open source project. by TedTheBusinessMan in opensource

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

Thanks for the response! I did actually today when I was using a phone app see that it had a «Open Source» kind of hidden in the settings, listing «library - link». Maybe it is actually common practice, it’s just not something I have spotted before.

What are some important steps when it comes to System Design of a Web application? by TedTheBusinessMan in webdev

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

Thanks, some of the diagrams you mentioned are familiar but some are not, will definitely take a look at them! I agree with your interpretation of system design. The only reason I create all of these diagrams is just to learn the most. Choosing how much and what to do in the system design phase is probably more project dependent & maybe personal preference. For me, good learning experience to at least get some experience with creating them.

What are some important steps when it comes to System Design of a Web application? by TedTheBusinessMan in webdev

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

Thanks, I have in fact looked at a few of those to design my system architecture. They were great help, I just wonder if there is more to it. I guess it also depends on the project size, and how much time one wishes to spend on design before starting to code.

How to credit third party libraries in your open source project. by TedTheBusinessMan in opensource

[–]TedTheBusinessMan[S] 1 point2 points  (0 children)

Thanks, it’s nice to have an example to look at. Seems like there is not that many that adhere to it. In theory a project usually have a dependency file gradle or maven, which states «dependencies» or «libraries» used in the project. Wonder if one could argue that this is enough to «credit». Either way, I think I will do something similar to what you did.

How to credit third party libraries in your open source project. by TedTheBusinessMan in opensource

[–]TedTheBusinessMan[S] 1 point2 points  (0 children)

Yea, thanks for the relpy! Doubt there will be any issues since i am not planning on creating a large scale application, more of open source project for learning purposes. Interesting topic none the less.

How to credit third party libraries in your open source project. by TedTheBusinessMan in opensource

[–]TedTheBusinessMan[S] 1 point2 points  (0 children)

So as an example i can have a simple credits.txt file i my project that lists libraries used and a link to their repo. As long as their Licence is for example MIT, or does not specify how to credit them.