There are times to celebrate, like this one, that I was expecting since 2 months; a moment I delayed because of an amount of things that you can’t even imagine.
But as I stated earlier, a product should respect its estimated lifecycle and be released with the announced features: that’s why I’m proud to announce the immediate availability of the beta-3 tag of Orient, which ( stand up who does not know what it is ), last time I repeat it, is a library which lets you easily work with OrientDB from PHP.
What’s new?
Nothing that special.
As I remarked via Twitter and in the first post I linked in this article, the beta-3 was a solidifying release:
- we added the last SQL commands that were missing, like
ALTER CLASS
- we refactored lots of the code involved in order to eliminate lots of the hardcoded new Class in the code
- integration tests for the QB have been written
- believe it or not, the most crucial and time-consuming task was digging deeper into these tests, so we spent lot of time trying to have more meaningful integrations
- we previewed a big refactoring, introducing the concept of Validators – a la’ symfony1 – which are probably gonna replace those ugly and static formatters
- we eliminated all the
@TODO
s from the PHPDOC, which means we solved them
Swishes the code
As always, we tried to make it clear enough for Doctrine 1.2 users to be able not to get lost writing a simple SELECT
:
1 2 3 4 5 6 7 8 9 10 |
|
You can obviously do more complex stuff or use any of OrientDB SQL-like operators:
1 2 3 4 5 6 7 8 |
|
Status of the library
If you want, before looking at some nice pictures a few lines below, read these considerations about the current state of Orient.
…there we go: the most boring parts of the library are done and I’m glad these moments are past, from now.
As far as I – now – know, a few refactorings will be performed on the QB, but the test coverage is high enough to let us perform these operations without being scared at all: the first thing I want to work on are the formatters and the entire way the query tokens are handled; since the formatters introduce a lot of static code I primarily want to see if I can replace them with validators, then re-think the entire structure of the tokens, because the implementation is a bit sucky nowadays ( I want to type-hint them! ).
But don’t think these 2 steps will really be the first things I will do: with the beginning of August, thus vacations, I’ll spend lot of time on the data mapper, which is the most funny and complex part of the whole system; being able to spend some time during this month will let us have a really buggy preview of the final mapper by the end of august, I suppose.
Magic pictures
Developers like metrics and related pictures.
I want to share with you a few pictures and number from the beta-3 tag of the library, but please, be aware that without having thousand of systems that use it in production all of these numbers are meaningless! :)
Here is the code coverage, generated by PHPUnit:
and some really interesting numbers, like cyclomatic complexity, thanks to PHPLOC:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
…without forgetting the fact that I created a report.sh file that can be run to inspect the health of the code; for example, take a lot at the phpDepend pyramid:
Last but not least, if you like interactive PHPDOC tools ( I don’t, they all suck hard ), I set up a small Doxygen init script that you can use to generate the documentation:
1
|
|
then you can look at Docs/html
to read the generated documentation.
So, what are you waiting for? Go out there and get oriented!