UUID's are 128 bits and do not fit inside a 64 bit integer which means that MySQL / PHP / PostgreSQL / MongoDB / Bash / etc... cannot compare them using simpler integer operations.
But yes, UUID's are certainly great for uniqueness.
Yes, and a CMS can be almost anything actually. It can teach database design, internationalization, MVC, input sanitation, and a host of other things that most sites need.
Personally, I'd build an API for an Angular app. People really want to hire Javascript guys right now.
I'm thinking about changing the configuration number to the last part of the IP. Usually all the PHP servers are configured in a cluster behind a proxy so they should have the same block.
Yes, like I said, this test did not attempt to solve the N + 1 problem, caching, DI, or any other "nice" thing that a finished library would need to solve. It was mostly about individual records being able to identify their own table object and figure out relations themselves.
For those of you on a Mac or linux box (or anything with bash): If you want to take vagrant for a spin (with an nginx + php-fpm install) on ubuntu 14.04 try my simpleserversetup script.
Just download (or git clone it) and then $ vagrant up in a terminal.
This looks like it would be great for beginners after a couple more iterations. At least it will teach people about relationships and how to correctly normalize databases and then use them in their applications.
"This link has the schema for a forum system - take a look at it"
Sorry if it's not clear. That comment is a rebuttal of bad logic that has been passed around the PHP community in the form of "Get the REAL IP" for years now. You should use REMOTE_ADDR since it is the only address we have confirmation of. The others are just support data that may or may not be lies.
I submitted it to reddit in the hopes that I will save many more people from falling for it.
You tested wrong - the @ symbol is there for a missing function $r[....]() not for the getenv call which doesn't care about missing keys like $_SERVER does.
A lot of people aren't aware of the getenv function which also prevents errors if the key is undefined so you don't need an isset() check. I actually submitted this change.
<?php
namespace PrimitiveCollections\Infrastructure\Factories;
use Collections\Infrastructure\Factories\AbstractSimpleListBuilderFactory;
use ObjectLoader\Domain\ObjectLoaders\Adapters\ObjectLoaderAdapter;
final class ConcreteIntegerSimpleListBuilderFactory extends AbstractSimpleListBuilderFactory {
public function __construct(ObjectLoaderAdapter $objectLoaderAdapter) {
parent::__construct($objectLoaderAdapter, 'PrimitiveCollections\Domain\PrimitiveCollections\Integers\SimpleLists\IntegerSimpleList');
}
}
Sorry, but your starting to lose me. Looks like you are simply making use of a list / hash / array here.
At any rate, thanks for publishing the project. I'll have to read through more of it.
We see this with CMS, after blog, after CMS being released each day. We even had John try the Wordpress Ghost project only realize just how hard it would be to fix. Personally, after skimming thousands of projects over the past year my money is on A) automattic branching out with a new system (they have the cash to do it), or B) ForkCMS gaining ground since it's the best multilingual system I've seen yet (actually the only decent one).
UUID's are 128 bits and do not fit inside a 64 bit integer which means that MySQL / PHP / PostgreSQL / MongoDB / Bash / etc... cannot compare them using simpler integer operations.
But yes, UUID's are certainly great for uniqueness.
Also, I don't want part of the IP leaking out into the world so I will probably bitshift a it a little.
updated: https://gist.github.com/Xeoncross/f075f7745c9534e2a894#file-timeid-php-L5
Yes, and a CMS can be almost anything actually. It can teach database design, internationalization, MVC, input sanitation, and a host of other things that most sites need.
Personally, I'd build an API for an Angular app. People really want to hire Javascript guys right now.
I'm thinking about changing the configuration number to the last part of the IP. Usually all the PHP servers are configured in a cluster behind a proxy so they should have the same block.
See the new RFC http://www.reddit.com/r/PHP/comments/2l7xlk/rfc_return_type_hinting_vote/
Next can we have multiple return types? It's nice in Lua / Go.
yes, I love having it in Go. In fact, next I would love to see multiple return types like Lua (or Go).
Yes, like I said, this test did not attempt to solve the N + 1 problem, caching, DI, or any other "nice" thing that a finished library would need to solve. It was mostly about individual records being able to identify their own table object and figure out relations themselves.
Good point. I can't believe I didn't know (or forgot) in_array accepts a mixed
$needle.Good idea! That is safe because we are about to verify the keys as well.
One:
array_key_existsvs Many:array_keys_existGood point, I should just have done it the simple way. Here is a gist with an added strict/only mode.
For those of you on a Mac or linux box (or anything with bash): If you want to take vagrant for a spin (with an nginx + php-fpm install) on ubuntu 14.04 try my simpleserversetup script.
Just download (or git clone it) and then
$ vagrant upin a terminal.This looks like it would be great for beginners after a couple more iterations. At least it will teach people about relationships and how to correctly normalize databases and then use them in their applications.
"This link has the schema for a forum system - take a look at it"
Yes, as far as view systems go - I did that several years ago.
Sorry if it's not clear. That comment is a rebuttal of bad logic that has been passed around the PHP community in the form of "Get the REAL IP" for years now. You should use
REMOTE_ADDRsince it is the only address we have confirmation of. The others are just support data that may or may not be lies.I submitted it to reddit in the hopes that I will save many more people from falling for it.
I made one that had support for regex path matching - but no HTTP verbs.
You tested wrong - the @ symbol is there for a missing function
$r[....]()not for the getenv call which doesn't care about missing keys like$_SERVERdoes.A lot of people aren't aware of the
getenvfunction which also prevents errors if the key is undefined so you don't need anisset()check. I actually submitted this change.Sorry, but your starting to lose me. Looks like you are simply making use of a list / hash / array here.
At any rate, thanks for publishing the project. I'll have to read through more of it.
One problem I have is that I can't seem to get PHPStorm to look as good as Sublimetext. The font rendering is terrible on Ubuntu.
Yes it does, it was rather amusing though. Always check the facts behind the facts.
Sure, totally free under the MIT: https://github.com/Xeoncross/micromvc. Seems TechEmpower released the source for the benchmarks too.
Here is a link to the direct class source.
We see this with CMS, after blog, after CMS being released each day. We even had John try the Wordpress Ghost project only realize just how hard it would be to fix. Personally, after skimming thousands of projects over the past year my money is on A) automattic branching out with a new system (they have the cash to do it), or B) ForkCMS gaining ground since it's the best multilingual system I've seen yet (actually the only decent one).