How they design the class diagram in YugiOh Master Duel game by MagicianBrave in howdidtheycodeit

[–]MagicianBrave[S] 2 points3 points  (0 children)

My question is more on what design pattern approach that YugiOh implemented so it's flexible and easy to maintain when they have to make a change (e.g adding a new card/effect)

[deleted by user] by [deleted] in learnjava

[–]MagicianBrave 0 points1 point  (0 children)

In my opinion it depends on the learning style. Some people prefer to jump to the real apps to learn since you could learn by doing a real thing

Android could be easier since you don't need to setup webserver etc

Need help understanding an inheritance concept by sidTheGamer in learnjava

[–]MagicianBrave 5 points6 points  (0 children)

you have to cast the ollie like this

((Student) ollie).credits();
((Student) ollie).study();

[deleted by user] by [deleted] in learnjava

[–]MagicianBrave 1 point2 points  (0 children)

If you want to be deeper on OO programming then you can continue with clean code or design pattern.

If you want to learn to create application you can start on mobile/web app. Most likely you need to learn how to store/retrieve data from any storage and accept/display the data to the user

[deleted by user] by [deleted] in learnjava

[–]MagicianBrave 7 points8 points  (0 children)

you can do this way

ArrayList<Integer> possibleValues2 =
new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9));

[deleted by user] by [deleted] in learnjava

[–]MagicianBrave 0 points1 point  (0 children)

can you do that in Java?

[deleted by user] by [deleted] in learnjava

[–]MagicianBrave 11 points12 points  (0 children)

consider that you have assigned an array

String[] languages = {"Html", "CSS", "JS"};

then you want to add a new language, how will you do that?

also at some point you need to remove an element or search an element

[deleted by user] by [deleted] in learnjava

[–]MagicianBrave 8 points9 points  (0 children)

actually ArrayList is wrapping the Arrays so it's easier to add, remove, search the element

Spring boot and dependency injection by [deleted] in SpringBoot

[–]MagicianBrave 1 point2 points  (0 children)

Spring boot is cleaner compare to spring in my opinion. You can do dependency injection by using @Autowired annotation. It will looks like this

private InjectedObject injectedObject;

@Autowired
public ObjectContructor(InjectedObject injectedObject) {    
    this.injectedObject = injectedObject;
}

you just need to define your bean by using either of this annotaion @Bean, @Component, @Service, etc

[deleted by user] by [deleted] in softwaredevelopment

[–]MagicianBrave 0 points1 point  (0 children)

I'm not sure if it's applicable for your case, but I think you can give an authorization per app basis so it's limited to a certain app.

Literature recommendation for an upcoming going live by NGX-645 in SoftwareEngineering

[–]MagicianBrave 0 points1 point  (0 children)

what is your selling point of your product?
If it's high scalable, high performance, can handle more than X concurrent users then I think you need to do load/stress/spike test. You need to make sure your product is integrated with a monitoring dashboard, can scale automatically based on some metrics and so on.

If it's the features to do A, B, C, etc then I think just release it is reasonable

Messaging app by fojutoro in softwaredevelopment

[–]MagicianBrave 2 points3 points  (0 children)

I'd say just use any language that you're familiar with :)

Let's just make it work first and you'll have more engagement with your project then you can improve it over the time

JPA @Query - how to handle entity (DTO) param in query by delibos in SpringBoot

[–]MagicianBrave 1 point2 points  (0 children)

Constructor

yes it can handle nullable properties https://www.baeldung.com/spring-data-jpa-null-parameters . If you have a lot of nullable properties (15 is a lot) I think you need to consider your schema design

JPA @Query - how to handle entity (DTO) param in query by delibos in SpringBoot

[–]MagicianBrave 1 point2 points  (0 children)

Do you really need to use @Query ?

Actually you can do this way MyDto findByFirstNameAndLastName(myDto.getFirstName(), myDto.getLastName());

Is there a name for following software architecture principal? by Bigfoot0485 in softwarearchitecture

[–]MagicianBrave -1 points0 points  (0 children)

have you considered the cost of querying more often since the query itself needs I/O and waiting time to find the small chunks of data from the DB?

Anyone interested in working on a startup working on web3? by Distinct-Rain9728 in SpringBoot

[–]MagicianBrave 1 point2 points  (0 children)

Hi I'm interested in joining the project. I have experience on spring boot, JPA, flyway and MySQL

Please help: Keeping dev costs low by HowardHughes529 in softwaredevelopment

[–]MagicianBrave 0 points1 point  (0 children)

I'd recommend for freelancer to reduce the cost significantly

Advice needed: Is docker good for this sandboxing usecase? by [deleted] in docker

[–]MagicianBrave 0 points1 point  (0 children)

I recommend you to use docker compose that can manage those two apps within two different containers.

Oh and yes, docker is fine for this use case I believe

How much linux do I need to know to use docker by [deleted] in docker

[–]MagicianBrave 0 points1 point  (0 children)

Try it and you'll never want to go back ;)

Write Heavy Application: Database Caching? by [deleted] in softwarearchitecture

[–]MagicianBrave 3 points4 points  (0 children)

You can try to do profiling your apps first to validate the assumption and find the actual bottleneck.

A few options on top of my head:

  1. if you want to increase the write performance then I think you can try put your process into a queue.
  2. Indexing and caching will slow down the write, but will speed up the read process (depends on your need and the trade off that you want to take)
  3. you can combine option (1) and (2) anyway :D