Isaac Ferguson

Ranch Hand
+ Follow
since Jun 22, 2012
Isaac likes ...
Java Netbeans IDE Spring
Online
Cows and Likes
Cows
Total received
3
In last 30 days
0
Total given
0
Likes
Total received
13
Received in last 30 days
0
Total given
30
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Isaac Ferguson

It comes from here : https://medium.com/@TechMagic/reactjs-vs-angular5-vs-vue-js-what-to-choose-in-2018-b91e028fa91d

The thing is that I would like to avoid the use of Angular, beceuse then the front end shoul dbe built again.
1 month ago
Of course, in fact I am reading about it  :https://spring.io/blog/2015/09/01/react-js-and-spring-data-rest-part-1-basic-features

But what I meant is integrate a front end React app already built into the view.

1 month ago
Hi all,

I would like to build a web app using React and then integarte the view in a Spring MVC app. I have read that the integration between both requires very deep React knowledge.

Could someone bring some light about this topic, please?

Regards, Isaac
1 month ago
I think that drink would go with the SportUser class because he realizes the action of drinking... is it right? Also I can use inheritance from a User class which also drink from  a glass.

Out SportMan drink from a bottle..
2 months ago
I am  assuming that the runner drinks 1/3 per lap. So when the rounds are 2, I assume that the bottle is close to be empty... I know it is not very human natural but I cant figure it out without having into account thousand variables... It is my own free UML...
2 months ago
Your comment applies to the use of a singleton isnt it? The map server would not be needed when having multiple instances...?
2 months ago
The words I can think are : water, bottle, round, sportMan.

The idea for the logic is ; a user has ideClubSport, if yes just grab a filled bottle, else he needs to buy a bottle which is empty. In the last case it gets filled. Now that the bottle for both cases is filled, the user goes starts running, it drinks and a round gets added (At the Junilu example I didnt saw how they are incremented the while would continue forever ?)

Lets see the attachment with the UML diagram.
2 months ago
Well I am assuming that only one instance gets replicated in different processes... I am not sure if that matches the question "how could a distributed system (existing with the same state in multiple processes at the same time)". I mean make the previous persistent map distributed (Different instances?)
2 months ago

But when you run the code the Map does not exist, ever, until the line that creates it as an empty one.

Normally, for data that is intended to survive between executions of a program, you would load that data on start (or when it was needed).
So I would expect your Map to be loaded first, if it exists.
If it doesn't exist then an empty one would be used instead.



Yes I am missing a condition to make it happen. Any idea, pelase?
2 months ago
This logic gives an output as expected but I dont like very much in particular how the if...else conditions are....



Any idea, please?
2 months ago
I changed the Design of the classses and the code now the behaviour is manage by the object itself.



What do you think?
2 months ago

And when having just one instance running in several proceses, I think in using Spring ioc but what when using just Java, maybe Singleton?



I dont know if this could make some much sense, but maybe using the singleton pattern (same that Spring uses) could bring some benefits for the solution?
2 months ago

If you want multiple running instances to be able to read and write to some persistent resource, why not use a database?



And when having just one instance running in several proceses, I think in using Spring ioc but what when using just Java, maybe Singleton?
2 months ago
Hi all,

I would like to express the next business logic in code; a user starts running and every 10 minutes(600 seconds) counts as a round. The thing is that in the loop I am searching for a way to express the 4 rounds in seconds and particularly in the if express when a round happens (600, 1200, 1800,2400 secs)...now it is just hardcoded to 600.

Any idea, please?


2 months ago
Maybe just for conceptualize a properties file could be lighter?
2 months ago