-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename CachedObjectStorage as Collection/Cells and refactor to optimize #3
Comments
@MarkBaker as I am sure you are aware PSR-16 Simple Cache is about to be published. I was wondering if that would make sense for PhpSpreadsheet to rely on that standard, instead of re-implementing so many adapter ourselves. What do you think ? Also I noticed that igbinary is implemented as a cache itself, whereas I would think it's only a required step for every kind of cache. I mean we should be able to use, eg, memcache+igbinary, or sqlite+igbinary. |
@PowerKiKi PSR-16 is not yet published as i know. If phpSpreadsheets 1.0 release is coming soon - it isn't nessesary to do this refactor right now. We can still use adapters. |
Actually PSR-16 was accepted 3 weeks ago. While it clearly still is a very young PSR, I feel it fits exactly our need. And PhpSpreadsheet is not quite ready for a release anyway. So I'd really like to consider this option. |
PSR-16 looks to young to me. |
Are you saying you think Did you have other argument that would show why it's too early ? or what kind of improvement you would expect to make it a suitable choice ? |
Well, if PSR has never heard of well-established naming conventions (like the Java naming convention is), then have it their way. Think of, why PHP is getting finger-pointed, because not because of PHP itself is bad but the people doing stuff around it are bad. Yes, and it conflicts, if you only see That is why I was very happy with the naming scheme in Causing lesser confusion is better for everyone. Newbies can get easily into the code. And don't think of ignoring |
You seem to be arguing against namespace as they exists in PHP. While it may be an interesting debate, it's a much bigger topic and out of place here. So far I didn't see any practical argument in favor or against PSR-16. |
No, I recommend them in addition to better class names. :-) But okay, getting "a little" OT. |
So after a some analysis, here is my approximate plan for the refactoring:
Classes marked as dropped do not mean that the feature will be gone forever. It just means that there will be no solution out of the box as far as I know. But it is possible for a third-party to re-implement those, either via php-cache project, or as a standalone PSR-16 implementation. By adopting PSR-16 we automatically get new cache supported, such as memcached, redis, mongodb amongst others (~50 projects using PSR-16 so far). It will also drastically simplify our codebase. Making it easier to test and delegating cache implementation to third-parties so we can focus on our core features. @MarkBaker, would you have any opinion to share about this plan ? |
@PowerKiKi So. #75 May be closed? |
Rename CachedObjectStorage as Collection/Cells and refactor to optimize
The text was updated successfully, but these errors were encountered: