just a question. is it true that you're suffering with that stupidness for a week or it's just a joke? if than yes, why don't you remove that null check, GO into game, prove your "truth" with screenshots (of console/game/code) ?SpooKNoF wrote:afk5min wrote:The style is called 'Defensive Programming'. Has its benefits, especially when many people are working in parallel on the whole project โ instead of each being assigned a subset of features to implement or maintain.
By the way, to determine if this null check is redundant, all you need to do is open up the call hierarchy (view references also works). The worst part is, you will have to do it on each new revision.
I beg to differ, that is not quite how it works. Surely, from a purist's PoV, every incorrectly working feature should be fixed. Even when it is a custom system message (identical) instead of client-stored message. The thing is, small things (such as sending initial UserInfo without clan data, to make sure retail server behavior is replicated) take time that can be spent better elsewhere, such as implementing new features, or reestablishing quick hacks/patchwork code.SpooKNoF wrote:if you are so good help l2j to start with small things and then you will find more serious
Unfortunately, most people who try to bring attention to small details are not able to deal with more serious matters... And never really manage to learn.
P.S. Sure, you start 'finding more serious' stuff later on. But in the big picture, the whole l2j gameserver codebase is shit. Mostly because it became acceptable to rush feature implementations and then forget about them, reusing old code exclusively by copy-pasting. That wouldn't be so bad, but it only takes one person to make a mistake in his code, and that mistake will quickly propagate everywhere, but not by design, but as separate copies.
why you bring more people to proove what? IS NOT USSULES NULL CHECK?
doAttack Method...
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- lord_rex
- Posts: 78
- Joined: Sat Jun 06, 2009 2:38 pm
- Location: Hell, 9th circle, centre
- Contact:
Re: doAttack Method...
You're right. I have forgotten how to act like a normal human being. And I play games and I lie and I trick people to avoid the truth of how I feel.
- lord_rex
- Posts: 78
- Joined: Sat Jun 06, 2009 2:38 pm
- Location: Hell, 9th circle, centre
- Contact:
Re: doAttack Method...
by the way, before anyone would ask that "why I am wasting my time with that idiot", I am just doing it because I had a nice and peaceful discussion with Zoey and Jurisics before that idiot was breakin' our discussion with his stupid "null check thing".
You're right. I have forgotten how to act like a normal human being. And I play games and I lie and I trick people to avoid the truth of how I feel.
-
- Posts: 38
- Joined: Tue Jan 31, 2012 4:02 pm
- Location: Away From Keyboard
Re: doAttack Method...
Yeah, I hate people who think their issues are the centerpiece of the universe.lord_rex wrote:by the way, before anyone would ask that "why I am wasting my time with that idiot", I am just doing it because I had a nice and peaceful discussion with Zoey and Jurisics before that idiot was breakin' our discussion with his stupid "null check thing".
I was
And the author insists on whining something about a null check, without even taking time to check whether that null check is redundant or not.
Compute sequentially, true or false?
Code: Select all
p :- p.p.ย ?- p.
-
- Posts: 24
- Joined: Fri Mar 13, 2009 11:22 am
Re: doAttack Method...
lord_rex wrote:by the way, before anyone would ask that "why I am wasting my time with that idiot", I am just doing it because I had a nice and peaceful discussion with Zoey and Jurisics before that idiot was breakin' our discussion with his stupid "null check thing".
so if anyone have opinion is stupid intrepid right? because you are the intrepid now

and you have private project? i hope to see in your pack 100 null checks for the same methods because we talk for java java = ram and cpu at last... doAttack if you see what biggboss say called and from npcs

-
- Posts: 38
- Joined: Tue Jan 31, 2012 4:02 pm
- Location: Away From Keyboard
Re: doAttack Method...
WTF does that even mean?SpooKNoF wrote:java = ram and cpu at last...
Compute sequentially, true or false?
Code: Select all
p :- p.p.ย ?- p.
- lord_rex
- Posts: 78
- Joined: Sat Jun 06, 2009 2:38 pm
- Location: Hell, 9th circle, centre
- Contact:
Re: doAttack Method...
WOOOT WOOT! Do NOT compare my beautiful godself to that annoying unholy mortal people! You never ever heard about the Divine Rex? Okey, your unholy words no longer reaches my ears...SpooKNoF wrote:lord_rex wrote:by the way, before anyone would ask that "why I am wasting my time with that idiot", I am just doing it because I had a nice and peaceful discussion with Zoey and Jurisics before that idiot was breakin' our discussion with his stupid "null check thing".
so if anyone have opinion is stupid intrepid right? because you are the intrepid now
and you have private project? i hope to see in your pack 100 null checks for the same methods because we talk for java java = ram and cpu at last... doAttack if you see what biggboss say called and from npcshow many npcs also we have speacialy on h5
You're right. I have forgotten how to act like a normal human being. And I play games and I lie and I trick people to avoid the truth of how I feel.
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: doAttack Method...
I'm not agree on that, we spend almost two years reworking the core and we let features development in the back sit to make the core better, if you are going to say something try to keep it realafk5min wrote:P.S. Sure, you start 'finding more serious' stuff later on. But in the big picture, the whole l2j gameserver codebase is shit. Mostly because it became acceptable to rush feature implementations and then forget about them, reusing old code exclusively by copy-pasting. That wouldn't be so bad, but it only takes one person to make a mistake in his code, and that mistake will quickly propagate everywhere, but not by design, but as separate copies.

@SpooKNoF remove the check, once you get an NPE, check how the reference got nulled, fix the issue from the root and share a patch after it's tested, that way you would remove a useless null check without causing NPE flood in server logs.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

- lord_rex
- Posts: 78
- Joined: Sat Jun 06, 2009 2:38 pm
- Location: Hell, 9th circle, centre
- Contact:
Re: doAttack Method...
the thing that I mentioned 3 times about xDZoey76 wrote: @SpooKNoF remove the check, once you get an NPE, check how the reference got nulled, fix the issue from the root and share a patch after it's tested, that way you would remove a useless null check without causing NPE flood in server logs.
You're right. I have forgotten how to act like a normal human being. And I play games and I lie and I trick people to avoid the truth of how I feel.
-
- Posts: 38
- Joined: Tue Jan 31, 2012 4:02 pm
- Location: Away From Keyboard
Re: doAttack Method...
Perhaps, just perhaps I may be wrong on this, as I am not really up-to-date with l2j. Well, I guess that explains why you are still stuck with HF, even though hardly anyone remembers that throne nowadays.Zoey76 wrote:I'm not agree on that, we spend almost two years reworking the core and we let features development in the back sit to make the core better, if you are going to say something try to keep it real
Compute sequentially, true or false?
Code: Select all
p :- p.p.ย ?- p.
-
- Posts: 24
- Joined: Fri Mar 13, 2009 11:22 am
Re: doAttack Method...
dude just check how many null checks we using for the same code its at last 5-6Zoey76 wrote:I'm not agree on that, we spend almost two years reworking the core and we let features development in the back sit to make the core better, if you are going to say something try to keep it realafk5min wrote:P.S. Sure, you start 'finding more serious' stuff later on. But in the big picture, the whole l2j gameserver codebase is shit. Mostly because it became acceptable to rush feature implementations and then forget about them, reusing old code exclusively by copy-pasting. That wouldn't be so bad, but it only takes one person to make a mistake in his code, and that mistake will quickly propagate everywhere, but not by design, but as separate copies.![]()
@SpooKNoF remove the check, once you get an NPE, check how the reference got nulled, fix the issue from the root and share a patch after it's tested, that way you would remove a useless null check without causing NPE flood in server logs.
-
- Posts: 38
- Joined: Tue Jan 31, 2012 4:02 pm
- Location: Away From Keyboard
Re: doAttack Method...
> The style is called 'Defensive Programming'.SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> Defensive Programming
> Defensive
Compute sequentially, true or false?
Code: Select all
p :- p.p.ย ?- p.
-
- Posts: 24
- Joined: Fri Mar 13, 2009 11:22 am
Re: doAttack Method...
what? that is colled bad coding!!!afk5min wrote:> The style is called 'Defensive Programming'.SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> Defensive Programming
> Defensive
the point for null checks is THE NULL if somehting is null in 1 code how you will bypass it? we using 1 check for all methods
Last edited by SpooKNoF on Fri Aug 02, 2013 3:37 pm, edited 1 time in total.
- lord_rex
- Posts: 78
- Joined: Sat Jun 06, 2009 2:38 pm
- Location: Hell, 9th circle, centre
- Contact:
Re: doAttack Method...
Leave him, as I did and continue our peaceful discussions.afk5min wrote:> The style is called 'Defensive Programming'.SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> Defensive Programming
> Defensive

You're right. I have forgotten how to act like a normal human being. And I play games and I lie and I trick people to avoid the truth of how I feel.
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: doAttack Method...
Don't "dude" me, I just gave you a proper answer from someone that has been doing this for a long time.SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6Zoey76 wrote:I'm not agree on that, we spend almost two years reworking the core and we let features development in the back sit to make the core better, if you are going to say something try to keep it realafk5min wrote:P.S. Sure, you start 'finding more serious' stuff later on. But in the big picture, the whole l2j gameserver codebase is shit. Mostly because it became acceptable to rush feature implementations and then forget about them, reusing old code exclusively by copy-pasting. That wouldn't be so bad, but it only takes one person to make a mistake in his code, and that mistake will quickly propagate everywhere, but not by design, but as separate copies.![]()
@SpooKNoF remove the check, once you get an NPE, check how the reference got nulled, fix the issue from the root and share a patch after it's tested, that way you would remove a useless null check without causing NPE flood in server logs.
Provide a patch that actually proves the code is duplicated/useless and then we can continue talking about it.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

-
- Posts: 24
- Joined: Fri Mar 13, 2009 11:22 am
Re: doAttack Method...
Zoey76 wrote:I'm not agree on that, we spend almost two years reworking the core and we let features development in the back sit to make the core better, if you are going to say something try to keep it realafk5min wrote:P.S. Sure, you start 'finding more serious' stuff later on. But in the big picture, the whole l2j gameserver codebase is shit. Mostly because it became acceptable to rush feature implementations and then forget about them, reusing old code exclusively by copy-pasting. That wouldn't be so bad, but it only takes one person to make a mistake in his code, and that mistake will quickly propagate everywhere, but not by design, but as separate copies.![]()
@SpooKNoF remove the check, once you get an NPE, check how the reference got nulled, fix the issue from the root and share a patch after it's tested, that way you would remove a useless null check without causing NPE flood in server logs.
so zoey is not l2j dev? because he say..lord_rex wrote:Leave him, as I did and continue our peaceful discussions.afk5min wrote:> The style is called 'Defensive Programming'.SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> Defensive Programming
> DefensiveHe knows only the "Parrot Style".
@SpooKNoF remove the check, once you get an NPE, check how the reference got nulled, fix the issue from the root and share a patch after it's tested, that way you would remove a useless null check without causing NPE flood in server logs.