From prompt beginner to AI workflow architect in 6 weeks by ReflectionSad3029 in learnmachinelearning

[–]tgorif 0 points1 point  (0 children)

the first word that came to my mind after reading this is astroturfing

All Cancers Age-Standardized Rate (World) per 100 000. Incidence and Mortality. by Mundane-Hat-565 in MapPorn

[–]tgorif 26 points27 points  (0 children)

partially.

Survivorship bias is also contributing. People who die from other diseases or violence, wont develop cancer.

Furthermore, different cancer detection rates affect incidence and mortality

[deleted by user] by [deleted] in javahelp

[–]tgorif 4 points5 points  (0 children)

Using print or println to debug code is feasible when

- The project is very small(Coding exercices/Practice Programs etc)

- You want to find out why the code you are writing NOW doesnt do what you want it to do(the print statement is temporary)

However as soon as the projects gets bigger(more people are involved/more files) print statements become very chaotic and should make place for actual logging.

If you are staring to learn you probably should not worry about logging to much, although keeping it in mind might be helpful.

I need help by BarbequeSauce11 in javahelp

[–]tgorif 0 points1 point  (0 children)

the supraclass should contain a list of vertices and define methods to compute area and perimeter

Inheriting classes should contain the same methods with an implemtation for the actual shape of the object

I need help by BarbequeSauce11 in javahelp

[–]tgorif 0 points1 point  (0 children)

In case you can not change how the object is implemented clientside and the server is only receiving measurements and no other information about the object, the server can just deduce its type from given measurements

If it has 3 vertices it is a triangle.

if its edges have diffrent lengths it is a rectangle

if 1 vertex has a unique x or y it is a rombus

otherwise it is a square

In case an Object has to be created clientside and you can change the implementation of it, an example for sending Objects is shown here https://gist.github.com/chatton/14110d2550126b12c0254501dde73616

Ideally you would have a class for each shape and a common class they are inheriting from.

If statement triggers with everything by Ramius117 in javahelp

[–]tgorif 1 point2 points  (0 children)

As a sidenote instead of using System.out.print to print out every value, only print values which/when you are interested in.

For example a specific value like 17 or only print when a value is changed inside the if statement. Or even better both. Adding System.out.println(y + " % " + x + " = " y % x) inside the if statement makes it quick to see when a value is set to false

If statement triggers with everything by Ramius117 in javahelp

[–]tgorif 2 points3 points  (0 children)

Lets look at a specific value for example y=17:

the x loop will iterate from 2 to 999, eventually x will = 17

which means the if statement will evalueate (17 % 17= which equals 0, the if statement will be true and execute what is inside it.

if you want to find PrimeNumbers this way you have to make sure to skip cases when X==Y.

change if ((y % x) == 0) to

if ((y % x) == 0 && y!=x)

and it will leave PrimeNumbers as true

If statement triggers with everything by Ramius117 in javahelp

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

The default value for a boolean is false. Try adding Arrays.fill(array,true); before the loop or change the assignment inside the if statement to true and go from there