189
u/Ctri Mar 20 '21
Not a professional developer, is the issue the use of IF (and not IF ELSE) statements, or is the issue the big long chained series of methods?
What would be a better approach be? How can I avoid ending up on this sub for doing the above? :D
149
u/High_Quality_Bean Mar 20 '21 edited Mar 20 '21
I think the use of returns like that violates a programming best practice (one entry point one exit point iirc), but personally I like to make use of return like that. It's sorta saying "in this case we're done", instead of a big ifelse block that you still need to read past to make sure you're not doing anything else.
Edit: I looked at it again, it might be the god lines. So "object.getHealth().data.getValue().set(xyz)" or whatever tf he has. It's not super bad in this case, but it does require you to remember a lot of nonsense to do anything simple. The real problem is what it indicates about your underlying data structures, if you're digging through that many layers for something that simple then you should really reorganize some crap. It might just be as simple as removing the nesting tho, so not a major deal (in this case).
Strictly speaking that's not a god line, but it's close enough that I think the name fits
113
u/Ctri Mar 20 '21
ahhh I see I see! Tyvm :)
So a better way might be (spitballing here, my Java is at least 10 years rusted)
name = event.getItem().getType().name().toLowerCase(); if !(name.contains("bucket") || name.contains("potion")) { event.getPlayer().setHealth(.5); }64
u/Deechi Mar 20 '21
Not a professional programmer, but that's exectly how I would approach that. If I use a long function multiple times, then I "close" it in a variable, so I only have to write this clusterheck once. Worked for JS, but I'm not good at it shrug
Edit: I think that you could also hide items in a list, so instead of chained OR statements you could just compare it to a list/map/dictionary/whatever?
14
u/absoluuk Mar 20 '21
I think the best way is not having the .getType in there at all. Why not have something like event.getItem().isType(...) where the argument of isType is an enum. That would be way more clear imo. It makes it far more easy to see what types are available and you it would be more easy for a developer to check the type. They dont have to remember to do the lowercase which is something most people will forget about
1
Mar 21 '21
It checks for multiple types.
There are 3 different types that are potions and 4 different types that are buckets. Checking for type would require 7 different checks while this only checks for 2
7
u/fej_ Mar 21 '21
Yes, but matching the type name is very dangerous, because you cannot be sure how many classes get matched during runtime. Possibly, one day, a new item gets added that is something entirely unrelated but just happens to have the relevant string in its name. It would be a very hard bug to find. Moreover, someone reading the code will have to check manually which items are matched.
It would be way cleaner to have a static array that contains the
Classinstances of every item that is targeted.1
6
11
u/High_Quality_Bean Mar 20 '21
Yeah, I think the consensus is that that would be best. I'd like to keep the "if then return" structure though, because if this gets any bigger I'm going to have to look past that if statement to see if those are just "we're done here" states, or if it's really a "we need to do something extra if not this case".
1
u/Lystrodom Mar 21 '21
A better way would be to use polymorphism. If the item isn’t a bucket, and isn’t a potion, (or better yet, if it is a good or whatever) do the thing
1
u/Lystrodom Mar 21 '21
A better way would be to use polymorphism. If the item isn’t a bucket, and isn’t a potion, (or better yet, if it is a good or whatever) do the thing
1
u/ThePsion5 Mar 21 '21
I'd probably do something that didn't require magic strings, personally, like an item type flag or something. For example:
ItemType type = event.getItem().getType(); if !(type.isBucket() || type.isPotion()) { event.getPlayer().setHealth(0.5); }49
u/JuhaJGam3R Mar 20 '21
it's not their problem though, that's just minecraft internal. enterprise scale java projects tend to cause god lines
25
u/Goducks91 Mar 20 '21
If I get a god line I like to assign it to a variable before going into an if. Makes it more readable.
1
u/JuhaJGam3R Mar 20 '21
true, true, this is duplicating code too. not too bad for a dream video which is a one-off script, but not permanent either.
1
u/justAPhoneUsername Mar 21 '21
That also means you don't have to go down that chain again. I hope the compiler would optimize that out, but it's better to just have a reference to what you need
8
u/droomph Mar 20 '21
I think another criticism is that they're switching off the type using string search (locale aware, possibly) instead of using an enum, or even better an extension method (like
event.Item.IsType(ItemType.Potion)or smth). This either points to the minecraft API being overly permissive and bare, or they're not using the stuff that already exists.THAT'S the real horror here (though I'd say it's still more of a Scary Movie horror, not a Silent Hill horror)
3
u/JuhaJGam3R Mar 20 '21
Well it's less a single consistent API and more of a bunch of stuff with more stuff on top to permit modding on a high level easily but also permit lower level modifications since it isn't, you know, official, really.
1
Mar 21 '21
Your item type idea doesn't exist in Spigot. That said, all items are covered in the
Materialenum, and so all potions have "POTION" ingetType().toString(), and all non-potions don't. Since it's a consistent API, you can hardcode these things in.0
Mar 21 '21
It checks for all types that are named something that contains "bucket" or "potion". Those are 7 types in total. You can and maybe should check them individually, but it's not written like this for no reason
25
u/ParanoydAndroid Mar 20 '21
Nah, I was told the "single entry/exit" thing too when I was first getting my degree, too many years ago, but I think the use of guard clauses like this has become more and more acceptable over time.
In particular, it is often semantically clearer than other constructions used to avoid it (i.e. we understand immediately that the method is not supposed to apply to whatever conditions) and it keeps a clean "line of sight" versus uses an accepting conditional.
I would say that with potential exceptions for languages whose style guides specifically prohibit this sort of thing, professional developers would not look askance at multiple returns in guard clauses.
13
Mar 21 '21
Single entry/exit point is an incorrect interpretation of "goto considered harmful". The premise of "goto considered harmful" is that it messes up stack traces when used instead of function calls. TLDR: it's FUD by cargo culting fools.
8
u/fej_ Mar 21 '21
This! If anything, having multiple exit points makes the code clearer, because if a function returns in a specific case, you can mentally rule out that case when continuing to read the code.
If the code becomes hard to read because of a lot of nested if's with return statements, you should split up that function into multiple others, not reduce the number of return statements.
3
u/yads12 Mar 21 '21
Short circuit returns is definitely what we use in our codebase and it's definitely alot cleaner than the alternatives proposed in this thread.
1
Mar 21 '21
[removed] — view removed comment
-2
Mar 21 '21
[removed] — view removed comment
-1
Mar 21 '21
[removed] — view removed comment
2
14
u/remy_porter Mar 20 '21
violates a programming best practice (one entry point one exit point iirc)
Enh, a lot of folks like that as a standard, and there are times when I agree, and times when I don't. In this case, I don't think it matters, because I think the real problem here is that we're digging into
getTypeto grab thename, and then driving our business logic off that. No.Since this looks like game engine code, it'd actually be best to not be using inheritance in the first place (visitor or similar types of patterns are better, just treat game objects as pure holders of state, encapsulate logic in components which act on the state), and just putting an
itemTypeorgameObjectTypeflag on the class, have that be an enum, then this logic can be managed via aswitch.16
u/sid78669 Mar 20 '21 edited Mar 21 '21
It’s the awful chained functions IMO. There’s no way to perform
nullchecks, and if you happen to have any of the chained methods returnnull, your stack is just going to point to this line with a genericvalue cannot be nulltype message.4
u/meme_botanist Mar 21 '21
It’s called a guard statement. Break code execution early in case of failing condition. It reduces useless code nesting i.e. ifs inside ifs and improves readability (why should I need to analyze code further if I can see that it returns in case it matches my expected condition). Built in functionality in Swift language.
3
u/0xd3adf00d Mar 21 '21
I honestly don't see what is so bad about that. IMHO, it's okay to have some early returns from a function, so long as they're near the beginning and happen before any resources are allocated.
Returns in the middle of a function are bad mostly because they might cause resource leaks. If you allocate a resource, then clean it up at the end on failure, then you avoid those leaks as long as you don't return prior to that cleanup.
Also, eliminating those returns makes the code more readable IMO.
While I agree that /u/Citri's solution is better, I wouldn't exactly call that bad code.
3
Mar 21 '21
The data structure is from Bukkit, and it's pretty standard for game dev anyway.
It looks way worse than it is. Event is triggered by an instance of an item. The code gets the type of that item and checks so that the name doesn't match "bucket" or "potion", which covers several items that I don't think are grouped in any other meaningful way but have the same properties.
The .toLowerCase() might be unnecessary. I think all have the same capitalization. But that's the only remotely redundant part.
Getting these monster lines is pretty unavoidable unless you want to split it up into several lines (which is definitely something you should do, but it doesn't really make this bad code). Entity systems in game dev tend to have an annoying amount of layers. Especially if you don't really do OOP, it may look straight up sinful
2
u/Deechi Mar 21 '21
In League of Legends someone had a bug where every interaction showed variable and function names instead of damage and yeah, it looks monstrous when it comes to such big games...
5
2
u/fej_ Mar 21 '21
Also, calling a lot of nestad getter methods on an object violates the "rule of demeter". In short you could say that getting the name of the item should be the job of the class
Item, not us ('us' as in, someone who uses theItemclass). There should be aitem.getName()method.Among others, there is two main reasons for this:
Chances are you need to get the name of an item from an Item-object in a lot of places. Having a method would reduce code duplication.
When we call multiple nested getters, we have to know how
Itemworks internally. The whole point of classes is that they should hide stuff from us that we do not care about. This might seem like nitpicking, but it becomes very important in bigger applications that get worked on by multiple developers. Chances are you never implementedItemand you do not know how it works. While you could look it up anytime, it would be way better to haveItemoffer all the tools you need to work with it directly.2
2
u/blehmann1 depraved Mar 21 '21
one exit is a well known practice but it is a controversial one. In my opinion early return can be useful although I concede it can create poor code when misused.
I think the main thing wrong with this code is the messy nested reflection, especially since whenever possible code should rely on abstractions, not concretions. Thia code could easily break with a seemingly innocuous refactor, which would not be considered a breaking change as this depends on more than the explicit API contract.
Now, they may not be able to remove the reflection as this is a plugin and there may not be any API for this. In that case at least refactor this so that it's one change if/when this breaks.
1
u/MCKoleman Mar 21 '21
This is for a Minecraft modding api (probably Forge, maybe Fabric). The programmer has no control over the underlying framework (the pre-existing game), and this looks to be pretty close to the best you can do. Maybe setting a local variable instead of repeating the same thing twice, but Forge code is notoriously ugly and long, and there really isn't much you can do about itm
1
u/sigmaclientwastaken evil May 06 '21
It's most likely Spigot, a server plugin software, and Spigot is based on Bukkit, and don't get me started on Bukkit
1
1
-45
Mar 20 '21
Using a lot of returns can cause bad performance, at least from my c++ experience
18
Mar 20 '21
how does using returns result in bad performance? i understand it might result in bigger code sizes because of raii, but not in performance?
-24
Mar 20 '21
In a while loop i forgot to mention
14
Mar 20 '21
I still dont get how using returns cause bad performance? If you are using a return in a while loop, it just returns, nothing else. Same as if you returned outside the while loop.
2
2
Mar 21 '21
You were taught wrong unfortunately. Early returns are actually highly efficient in C++. The compiler can do some nice optimizations with them. It will help modern processors with their program flow guessing features. Put the most common return cases at the top sorted by probability.
Considering the OP is written in Java, I don’t know fuckall about it. I’d be criticizing the reuse of method chaining when you could cache the result instead. I don’t even care about the structure of the IF statements. That’s fine and dandy. But again that’s because in my world, compilers can optimize that for me. The string comparison isn’t even that big of a deal. Obviously it could be optimized away using enums or some shit. There are definitely valid cases when string comparison is the only way to do it, though.
Anyway, my main point is that if you know what you’re doing (use RAII techniques) then early return is actually beneficial.
Modern C++ for instance even has lock_guard for mutex stuff where normally early returns would fuck it up but not anymore.
Who is using raw pointers these days anyway? (I do, but I’m aware of how to use them).
-9
34
u/Encursed1 Mar 20 '21
Dream should have looked for a property that determined if the object was food, not checked the name of the item and exited based on the name. Needless to say, this wouldn't age well.
6
Mar 21 '21
Spigot is a lot more of a pain to work with than you would think. There is no property stating whether an item is food. The closest thing to that would be to use the
FoodLevelChangeEventinstead of thePlayerItemConsumeEventand then check if the event has an associated item, which would imply that a food item was eaten. Also, checking the item type string is a valid way to do things, as the documentation specifically states that the only items that can trigger aPlayerItemConsumeEventare "food, potion, milk bucket".1
u/Encursed1 Mar 21 '21
I didn't know that. I've never used Spigot, and I guess it's a lot more simplified than I thought.
1
u/BattleDashBR Mar 21 '21
Yeah, I would've converted it to an NMS stack and then done instanceof ItemFood.
8
Mar 20 '21
one bigger issue is the random strings "bucket" and "poison" and the magic health number.
they should be injected from some class that knows of those things or at BARE minimum be referencing constants somewhere. and why check if it contains a string? shouldn't you be able to determine exactly what items have what effects? would a "anti-potion juice" also trigger it? or a "bucket destroyer" count as a bucket?
also, calling the same getters over and over again. fetch it once at the top and use it. who knows if those getters end up resulting in unsorted list searches or whatnot
0
Mar 21 '21
[deleted]
2
u/Malfrador Mar 21 '21
getType() == BUCKET would be the correct way, as Bukkit (the minecraft server software used here) just has all the Materials in one big Enum.
Not to mention some best practices (the method is named playerSpawn, but uses the Consume event)
3
Mar 20 '21
This uses reflection to examine metadata about the type. Reflection can be very slow. Instead you should have a common property in an interface that contains the event name. That name property should be what's evaluated. Those are the two big WTFs to me: relying on reflection for nonframework code, and the ugliness of it. Oh and a third, using string manipulation to identify first class citizens. Those event values should have a constant assigned to them and then those constants be used to populate event names, compare values, etc.
4
u/EishLekker Mar 20 '21
Reflection? I see no use of reflection in this code.
1
Mar 20 '21
Maybe java reflection is different. In .Net GetType is a common entry point for reflection based operations.
3
u/EishLekker Mar 20 '21
Ah. In Java getType is not part of the language. The method getClass is though.
0
u/migueln6 Mar 21 '21
Let me explain a set of things that are bad in the image:
First if you can totally avoid to use multiple returns do so, sometimes it's had and not worth the hassle, then minecraft code is the appice of bulls hit code and unoptimized trash, if not just look at how many ram do certain single mods do need to work.
Another issue is the the two if statements, inside the condition there's a long chain of getters executed twice which could be done like string name = long().chain().of().getters()
Then he has some code after a return that will never execute.
-4
112
u/OkPreference6 Coding The Declaration of Independance Mar 21 '21
Everything else ignored, who the fuck codes in light mode.
21
14
u/Pycorax Mar 21 '21
It's weird. I find it comfortable to use dark mode in VSCode but in VS and Android Studio, I find myself using light mode. Something about dark mode in those IDEs makes the code kinda blend into the background for some reason.
9
5
u/Shakespeare-Bot Mar 21 '21
Everything else did ignore, who is't the alas codes in light mode
I am a bot and I swapp'd some of thy words with Shakespeare words.
Commands:
!ShakespeareInsult,!fordo,!optout4
u/OkPreference6 Coding The Declaration of Independance Mar 21 '21
!ShakespeareInsult
12
u/Shakespeare-Bot Mar 21 '21
[Your] brain is as dry as the remainder biscuit after a voyage.
Insult taken from As You Like It.
Use
u/Shakespeare-Bot !ShakespeareInsultto summon insults.0
Mar 21 '21
[deleted]
1
u/sneakpeekbot Mar 21 '21
Here's a sneak peek of /r/savage using the top posts of the year!
#1: I don't expect to ever play this game again
#2: Savage XR map making streams by Tjenz | 0 comments
#3: Teaching a friendI'm a bot, beep boop | Downvote to remove | Contact ^^me | ^^Info | ^^Opt-out
85
3
87
Mar 20 '21
What's wrong with this code? (other than the mismatched function name / event it's for)
95
Mar 20 '21
It’s whats called a Train Wreck. Too many . (dots). Look up the Law of Demeter.
103
Mar 20 '21
That's not the developer's fault. This is literally just how Minecraft's codebase is structured. The post makes it seem as if it's Dream's (or whoever made the code) fault.
Minecraft plugins were one of my first development experiences (now I do it for a living) and I remember it being like that since then.
But to be fair, the programmer could have created a variable for this chain instead. But it's not he most horrendous thing I've seen. I've seen far worse in my day to day job from people who are supposed to be professionals.
8
u/Serird Mar 21 '21
Minecraft plugins were one of my first development experiences (now I do it for a living) and I remember it being like that since then.
Are you doing Minecraft plugins or development for a living?
8
Mar 21 '21
Oh, oh no. Im sorry for the misunderstanding. :P I phrased that badly!
What I meant is that I'm a software engineer. :)
4
19
u/forthemostpart Mar 21 '21
Eh, he could have put the full lowercase name in a variable, then do
containson that instead of typing out the full thing again, plus I think it'd be slightly fasterEDIT: also reading below, it seems
getTypereturns an enum, so you could check against that instead of doing string comparison2
Mar 21 '21
It's 7 types that contain these words. He's not just checking for 2 types.
Yes, he could definitely have stored the name first and just compared it, but that's not a huge difference. Not a good code vs bad code difference. It's just better.
2
u/_XenoChrist_ Mar 21 '21
then the next update adds "spider bucket" or whatever and his code breaks and finding out why is a huge pain...
14
Mar 20 '21
Thanks for the info! I'll look it up :)
31
Mar 20 '21
In addition to that, fuzzy string matching (.contains) used in such a way is very error prone, and can cause false positives
3
4
u/ultim4t3 Mar 20 '21
It's called a Fucktrain of Unexpected NPE.
2
u/conro1108 Mar 20 '21
Null checking every time you do a method call on an object would be so much worse than this.
I’d be pretty surprised if any of these references could return null in any sort of recoverable situation
2
u/ultim4t3 Mar 20 '21
Well, if it's an object you build and have control over and you're "pretty sure" nothing will go wrong. There's no need to check for NPE before every call.
5
u/conro1108 Mar 20 '21
You can look at the docs/implementation. I’d never seen this library before making my comment, but a 30 second google search shows that every method in the chain hs a @NotNull annotation
7
u/numerousblocks Mar 20 '21
I just looked up the Law of Demeter, and I fail to see how it's useful. Sure, it makes sense of your class uses another one but users shouldn't have access to every method of it, but otherwise, this seems like it duplicates functionality or introduces boilerplate.
1
u/hackintosh5 Mar 20 '21
import a.b.c.d.e.f;: breaks eye contact3
u/uxp Mar 20 '21
Uh, not sure how proper namespacing in Java is badcode, but alright.
1
u/hackintosh5 Mar 21 '21
Too many dots. But I love java namespacing it's so much better than module systems.
-4
u/DurianExecutioner Mar 20 '21
I assumed is was potions and buckets being involved in a creature spawn callback.
So what should they have done? This?
auto i=event.item(); auto t=i.getType(); auto n=t.name(); auto slc=n.toLowerCase(); auto b=slc.contains("potion"); auto i2=event.item(); auto t2=i.getType(); auto n2=t.name(); auto slc2=n.toLowerCase(); auto b2=slc.contains("bucket"); if (true == b2 | true == b) return;? Because that seems unnecessarily verbose. There again, it is a VM based language.
3
3
2
u/Lysdal Mar 21 '21
how about
name = event.getItem().getType().name().toLowerCase(); if !(name.contains("bucket") || name.contains("potion")) { event.getPlayer().setHealth(.5); }5
u/merukit Mar 20 '21
that big block of dereferences gets the same thing both times, just compares it to a different name, then does the same thing, so could easily also be one if statement
44
75
u/D10S_1 Mar 20 '21
Now people are just nitpicking.
68
Mar 20 '21
Seriously? That’s actually very bad. Getting the type, and then converting it to a string and then checking whether it contains a partial string? Not only is it very error prone since there can be false positives, it also goes against a number of OOP principles
38
u/D10S_1 Mar 20 '21
I meant in comparison to other posts in this sub it doesn't seem like a disaster. But yeah you are right.
3
22
u/leijurv Mar 20 '21
When making a minecraft server plugin you can't just edit the existing classes however you like; meaning there's no practical way to use oop principles to add some method to just the bucket and potion items for example.
20
Mar 20 '21
You can just use the enum you get from getType and a switch instead of comparing strings
7
Mar 20 '21
Agreed, but it's not like Minecraft's codebase encourages good code. The trainwreck you're seeing is how Minecraft's codebase objects are structured. I do think it's a tud nitpicking and misrepresenting of who's at fault here.
Mojang has done a far worse job than the plugin developer here imho.
13
u/Malfrador Mar 21 '21
This is Bukkit, a community made server software. Mojang has nothing to do with it.
Bukkit-API isn't great, but also not that bad. Most of the issues it has are because of a very great desire of keeping compatibility with very old versions of the API. While this means that plugins from 2011 can still work, it also has stopped major reworks that the API needed. But it's slowly getting better
10
u/Auxilor Mar 20 '21
I'm pretty well versed in the realm of spigot/bukkit development - for quick plugins to do 1 thing it doesn't really matter - the code smell isn't getting the name of the material twice, it's putting all the listeners in one class instead of naming the class according to its function
13
u/bob_ficklemictatle Mar 20 '21
Im not too skilled at java, but if the method has the void keyword in it, why is he returning a value in the method?
40
u/DinoRex6 Mar 20 '21
He isn't. If you mean why he is using the return statements, those just break out of the method without returning any value if you don't specify any value after it.
5
u/bob_ficklemictatle Mar 20 '21
Thanks. I totally forgot returning breaks you out of whatever method you are currently in
10
16
3
2
u/Teln0 Mar 20 '21
Can't he just use instanceof in this case ?
5
u/whizvox int getRand() { return 4; } Mar 21 '21
You can in this case, since I believe buckets and potions have their own special classes, but most simple items that don't have any special behaviors (i.e. ingots, diamonds, sticks), are just instances of the Item class.
2
u/GDavid04 <!-- 😈 [EVIL] 😈 --> Mar 21 '21
The real bad code here is that it checks for item name, not type.
1
Mar 20 '21
why is nobody talking aboit the fact that he is verifying that it is food and not a potion or a bucket of milk just by doing a string search ? I mean that's just a bad way to do it, it may be a little bit faster, but there are probably other edge cases, and the name of the items may not always include potion, Minecraft is pretty inconsistent at naming things
1
u/derMilchUndSaftMann Mar 21 '21
At first I was gonna defend this saying something like "To be fair, the last 2 dots are for string operations" but then I noticed that he is converting an enum to a string and soing string comparisons on it lmao
1
u/toastal Mar 21 '21
This is jQuery-style programming. Why save in a variable when you could requery the whole DOM?
1
u/Monkeyget Mar 21 '21
If only there was a way to change behaviour depending on the type of an object in object oriented languages...
1
u/exequias-ulqui Mar 21 '21
DumbPlugin.java
1
u/AutoModerator Mar 21 '21
It looks like this comment contains a code block delimited with triple backticks. Unfortunately reddit does not have universal support for this syntax and your comment will not render correctly on old reddit and most mobile apps.
For the benefit of people on old reddit, this link will take you to a correct rendering of the comment.
/u/exequias-ulqui, it would be appreciated, but not required, if you could edit your comment to use the more compatible four space indention format. For single lines or inline code you can use single backticks.
You can find some examples in the reddit help documentation.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
-5
u/DrMeepster Mar 21 '21
hes using com.dreams but doesnt own dreams.com
bruh
4
u/NUTTA_BUSTAH Mar 21 '21
???
3
u/DrMeepster Mar 21 '21
You're only supposed to use com.whatever as a java package if you control whatever.com
6
u/NUTTA_BUSTAH Mar 21 '21
I thought it has nothing to do with internet URLs. Com just means company and org means organization and private modules don't use com.
Thanks though, going to educate myself (always have been confused with this and not a java dev)!
1
u/joza100 Mar 21 '21
And why is that?
0
u/DrMeepster Mar 21 '21
The package naming system is like this so there wouldn't be collisions between different packages. Only one entity owns a domain. However, if you dont own the domain, you might as well just remove the com because it isnt helping with anything
3
u/joza100 Mar 21 '21
I still don't quite know how this stuff works and where the .com would even help you?
2
-12
u/numerousblocks Mar 20 '21
method chaining being a discouraged practice demonstrates the worthlessness of OOP as a paradigm
0
263
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Mar 20 '21
Image Transcription: Code
[In the screenshot, the text cursor is at the
(.5)section.]I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!