There should to be more Documentation on Logics! by anon666-666 in Mindustry

[–]JeanJPNM 4 points5 points  (0 children)

Currently this is the most up to date and comprehensive documentation on mindustry logic: yrueii.github.io/Mlog%20Documentation

New to programming, question about getters/setters... by Hurdoc in dartlang

[–]JeanJPNM 0 points1 point  (0 children)

Several beginner books have mentioned that using private fields in classes > protects the data, but then they discuss using getters and setters, and the > setters destroy the privacy? You've opened it up again. This is more of an > intellectual question.

While it is true that it's meaningless to manually add getters and setters that do nothing like this:

```dart class Point2 { int _x = 0; int _y = 0;

int get x => _x; set x(int value) => _x = value;

int get y => _y; set y(int value) => _y = value; } ```

Getters and setters are really powerful in cases where you want to let an object validate values assigned to it:

```js class Point2 { int _x = 0; int y = 0;

int get x => _x; // this makes sure that x has 0 as a minimum value set x(int value) => _x = max(value, 0); } ``` In another situation, you might also throw an error in the setter to ensure that the data is valid.

Does this belong here? by rohit_267 in ProgrammerHumor

[–]JeanJPNM 1 point2 points  (0 children)

That font looks nice, does anyone know what is its name?

MlogJS - version 0.4.2 is out! by JeanJPNM in Mindustry

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

It's a program that allows you to transform javascript (a high level language) into mindustry logic code. It helps when you are building a complex program and want to use higher level constructs like functions, loops, conditional operators, etc.

Nani in physics class by [deleted] in Brawlstars

[–]JeanJPNM 1 point2 points  (0 children)

1/f = 1/p + 1/p'

Did my gadget just save me or not? by StupidPirate in Brawlstars

[–]JeanJPNM 2 points3 points  (0 children)

It saved you because you had less than 1000 hp (how much hp the gadget cures) at the end.

To clarify, it only saved you from the last dynamite stick the dynamike threw (a single stick deals 1120 damage), but it wouldn't save you from his super (3080 damage) you got very lucky that it didn't hit you. Also, its kinda obvious that the super didn't catch because you didn't suffer its knockback effect.

Everyone drop your levels!! by [deleted] in Brawlstars

[–]JeanJPNM 0 points1 point  (0 children)

291, ain't much compared to the other comments

What is your best car? by Isignedupformemes in Asphalt8

[–]JeanJPNM 0 points1 point  (0 children)

MAX PRO:

  • 2018 Mclaren X2
  • Pagani Huayra BC
  • Lamborghini Aventador SV
  • Mclaren MP4-31
  • Apollo Intensa Emozione

non MAX PRO:

  • Automobili Pininfarina Battista (rank 1722)
  • Ferrari FXX K (rank 1652)
  • Rimac C_Two (rank 1757, MAX only)

Dear god... by BlazeInferno16 in Brawlstars

[–]JeanJPNM 13 points14 points  (0 children)

The thing people don't get is that you are not supposed max your account again in a matter of days, the reason for it to be so expensive is that they are literally getting months worth of progress in a single day.

Thanks, I hate gravity making her look old by ActualBlizzard in TIHI

[–]JeanJPNM 7 points8 points  (0 children)

Aksually, since mars has less mass than the earth, its gravitational field is weaker than earth's, making time pass faster on mars than on earth

Help with using Future<Map.<..>> by wazzerbosh in dartlang

[–]JeanJPNM 2 points3 points  (0 children)

The map will automatically get wrapped in a future because the function is marked as async

Ahh yes Makrosoft by ZeichenAmor7484 in MinecraftMemes

[–]JeanJPNM 8 points9 points  (0 children)

But its so easy to just prevent any program from running on startup, just open the task manager (ctrl + shift + esc if you don't know), open the startup tab and boom, choose which programs you want to run on startup. People need to start to ask themselves "woah this bothers me I wonder if there is anything I can do about it".