Giter VIP home page Giter VIP logo

Comments (7)

dasgarner avatar dasgarner commented on June 12, 2024

I've not had the opportunity to test it yet, but I think the attached commit will solve it. Just about to pull that into develop branch.

from xibo.

MichaelHoughton avatar MichaelHoughton commented on June 12, 2024

Thanks Dan, this has fixed it :)

from xibo.

dasgarner avatar dasgarner commented on June 12, 2024

Great!

I can feel some re-factoring coming on for the next version :)

from xibo.

MichaelHoughton avatar MichaelHoughton commented on June 12, 2024

Hey @dasgarner - not sure if you have Unit Tests in place, but for this sort of stuff, it would be a big help. Means you can run the tests and see what is broken without needing to re-test the whole application.

from xibo.

dasgarner avatar dasgarner commented on June 12, 2024

Well, that is a good point - no, there aren't any unit tests as such and yes there should be. There have been pressing demands to get 1.7 out, which has taken priority. We do have a python api test library started and we do have the bones of a webdriver based UI testing suite - but they are miles away from complete.

1.8 will be quite a big re-factor where we will pull the XLF into the data model, which means representing regions and media in the DB. That will allow us to support playlists that are reusable across many layouts, and even dynamic playlists.

This means a lot of the core code needs re-factoring - we plan to use a far more OO approach (keep in mind some of the current code is from 2005!) with objects to represent each of the items we are interested in, with factory classes to get and fetch them, etc. At this point I will be adding unit tests (if you have good suggestions for a framework, then please let me know).

from xibo.

MichaelHoughton avatar MichaelHoughton commented on June 12, 2024

Hey Dan

This all sounds good. Overall, the code is good, it can just get very complex in parts!

I don't know about frameworks for unit testing, but myself, I am a CakePHP developer - though in terms of general frameworks, there are many good ones. Given the complexity of the database set up, any framework with a good ORM would make life a lot easier (no more writing SQL!), so I would say CakePHP, Laravel or Yii frameworks would be the ones to consider.

from xibo.

dasgarner avatar dasgarner commented on June 12, 2024

Rewriting into Laravel is something i've looked at - but it would represent an enormous body of work :-)

I'm thinking that PHPUnit would be the best choice, but of course will do some more research when the time comes!

from xibo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.