Skip to content
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

Switch to Imagine #35

Closed
giorrrgio opened this issue Jun 1, 2013 · 8 comments
Closed

Switch to Imagine #35

giorrrgio opened this issue Jun 1, 2013 · 8 comments

Comments

@giorrrgio
Copy link
Member

Improving OOP, we could move from direct gd ext calls to avalanche123/Imagine classes.

@liuggio
Copy link
Member

liuggio commented Jun 2, 2013

Good idea I like Imagine project, but we have few calls to GD ... I'm not convinced... dunno is my response :)
how it could improve our OOP project?
@toretto460, @leopro what do you think?

@giorrrgio
Copy link
Member Author

I know maybe it's too much for the few GD calls, but ImageCreatorTest is filesystem based, and thus it's an integration test. ImageCreator should have a real unit test, but with explicit gd extension calls it's very hard to unit test it. With Imagine as an injected dependency instead, it would be very easy, with very little overhead. My 2 cents!

@leopro
Copy link
Member

leopro commented Jun 2, 2013

I think that @giorrrgio's idea is good and maybe we have also to mock the file system with https://github.com/mikey179/vfsStream

@stefanosala
Copy link
Contributor

Take a look also to https://github.com/KnpLabs/Gaufrette for FS abstraction :)

@liuggio
Copy link
Member

liuggio commented Jun 6, 2013

good idea...
with the profiler the FS is really fast is nanosecs, the bottlen. is
packagist API of course

On Thu, Jun 6, 2013 at 10:55 AM, Stefano Sala notifications@github.comwrote:

Take a look also to https://github.com/KnpLabs/Gaufrette for FS
abstraction :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-19032513
.

liuggio_______________

/|_ We reject kings, presidents and voting.
/o ) / We believe in rough consensus
)
v _/\ and running code (I.E.T.F. credo)


@liuggio
Copy link
Member

liuggio commented Jun 6, 2013

@stewe do you have time to do some experiments?

@liuggio
Copy link
Member

liuggio commented Aug 30, 2013

:) thanks to @stewe we now (3 months ago) have imagine library..

@liuggio liuggio closed this as completed Aug 30, 2013
@odino
Copy link
Member

odino commented Aug 30, 2013

Congrats :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants