doAttack Method...

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
lord_rex
Posts: 78
Joined: Sat Jun 06, 2009 2:38 pm
Location: Hell, 9th circle, centre
Contact:

Re: doAttack Method...

Post by lord_rex »

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.
SpooKNoF wrote:if you are so good help l2j to start with small things and then you will find more serious :)
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.
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?
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) ?
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.
Image
User avatar
lord_rex
Posts: 78
Joined: Sat Jun 06, 2009 2:38 pm
Location: Hell, 9th circle, centre
Contact:

Re: doAttack Method...

Post by lord_rex »

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.
Image
afk5min
Posts: 38
Joined: Tue Jan 31, 2012 4:02 pm
Location: Away From Keyboard

Re: doAttack Method...

Post by afk5min »

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".
Yeah, I hate people who think their issues are the centerpiece of the universe.

I was walking down the street, minding my own business, when this person shows me this thread made in poor english, quickly gaining posts without actually making sense.

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.
SpooKNoF
Posts: 24
Joined: Fri Mar 13, 2009 11:22 am

Re: doAttack Method...

Post by SpooKNoF »

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 :) how many npcs also we have speacialy on h5
afk5min
Posts: 38
Joined: Tue Jan 31, 2012 4:02 pm
Location: Away From Keyboard

Re: doAttack Method...

Post by afk5min »

SpooKNoF wrote:java = ram and cpu at last...
WTF does that even mean?
Compute sequentially, true or false?

Code: Select all

p :- p.p.ย ?- p.
User avatar
lord_rex
Posts: 78
Joined: Sat Jun 06, 2009 2:38 pm
Location: Hell, 9th circle, centre
Contact:

Re: doAttack Method...

Post by lord_rex »

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 npcs :) how many npcs also we have speacialy on h5
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...
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.
Image
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: doAttack Method...

Post by Zoey76 »

afk5min 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.
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 :P

@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.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
lord_rex
Posts: 78
Joined: Sat Jun 06, 2009 2:38 pm
Location: Hell, 9th circle, centre
Contact:

Re: doAttack Method...

Post by lord_rex »

Zoey76 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.
the thing that I mentioned 3 times about xD
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.
Image
afk5min
Posts: 38
Joined: Tue Jan 31, 2012 4:02 pm
Location: Away From Keyboard

Re: doAttack Method...

Post by afk5min »

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 :P
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.
Compute sequentially, true or false?

Code: Select all

p :- p.p.ย ?- p.
SpooKNoF
Posts: 24
Joined: Fri Mar 13, 2009 11:22 am

Re: doAttack Method...

Post by SpooKNoF »

Zoey76 wrote:
afk5min 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.
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 :P

@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.
dude just check how many null checks we using for the same code its at last 5-6
afk5min
Posts: 38
Joined: Tue Jan 31, 2012 4:02 pm
Location: Away From Keyboard

Re: doAttack Method...

Post by afk5min »

SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> The style is called 'Defensive Programming'.
> Defensive Programming
> Defensive
Compute sequentially, true or false?

Code: Select all

p :- p.p.ย ?- p.
SpooKNoF
Posts: 24
Joined: Fri Mar 13, 2009 11:22 am

Re: doAttack Method...

Post by SpooKNoF »

afk5min wrote:
SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> The style is called 'Defensive Programming'.
> Defensive Programming
> Defensive
what? that is colled bad coding!!!

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.
User avatar
lord_rex
Posts: 78
Joined: Sat Jun 06, 2009 2:38 pm
Location: Hell, 9th circle, centre
Contact:

Re: doAttack Method...

Post by lord_rex »

afk5min wrote:
SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> The style is called 'Defensive Programming'.
> Defensive Programming
> Defensive
Leave him, as I did and continue our peaceful discussions. :) He knows only the "Parrot Style".
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.
Image
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: doAttack Method...

Post by Zoey76 »

SpooKNoF wrote:
Zoey76 wrote:
afk5min 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.
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 :P

@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.
dude just check how many null checks we using for the same code its at last 5-6
Don't "dude" me, I just gave you a proper answer from someone that has been doing this for a long time.

Provide a patch that actually proves the code is duplicated/useless and then we can continue talking about it.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
SpooKNoF
Posts: 24
Joined: Fri Mar 13, 2009 11:22 am

Re: doAttack Method...

Post by SpooKNoF »

Zoey76 wrote:
afk5min 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.
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 :P

@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.
lord_rex wrote:
afk5min wrote:
SpooKNoF wrote:dude just check how many null checks we using for the same code its at last 5-6
> The style is called 'Defensive Programming'.
> Defensive Programming
> Defensive
Leave him, as I did and continue our peaceful discussions. :) He knows only the "Parrot Style".
so zoey is not l2j dev? because he say..

@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.
Locked