38

Porting of a huge web application from ZF1 to Laravel 5.5.

In summary:
1. approx. 200,000 lines of spaghetti code (ZF1)
2. approx. 2500 custom Javascript files
3. approx. 600 CSS files
4. hundreds of node modules and libraries
5. 12 different layouts (Home, Member, Admin,...)
6. ...
7. ...
8. ...
...

I've got six days to get this done. God help me.

Comments
  • 6
    Hyperbolic Time Chamber, for the win.
  • 7
    Remember, that closer to some mass you are the "slower" time moves, so I guess black hole is the only option right now.
  • 2
    Someone just signed you layoff warrent 🤔
    No way you'll do that in a week. Unless the idea is tiny then u guess yes but I diubt from what you said
  • 5
    @CopyPasteCode Somehow it reminds me of the movie Interstellar :)
  • 4
    @gitpush At least they pay extremely well for it + a decent bonus payment when I finish the project in a week.

    In return, they save $50,000 in support costs for ZF1 every year.
  • 4
    @tracktraps move, I'm taking your place 😛
    Wish you all the best if this is the case, you can do it 😀
  • 3
    "Huge" is an understatement 😀
  • 6
    @Dacexi I forgot to mention the database :) Approx. 500 tables with approx. 1 million entries.

    I hope this will speed things up.
    https://github.com/reliese/laravel
  • 0
    Holy crap, is it even doable in time? Won't that be nonstop work?
  • 1
    Not possible in one week and if you manage to do it in a week, I salute you.
  • 2
    @tracktraps reliese is amazing, I even mailed the dev to thank him for saving my ass the other day but I don't think what you want to accomplish is possible
  • 0
    Ah, yes, ZF1. Loved that stuff back then! Glad we have Symfony now though.
  • 2
    @kurtr In fact, reliese is amazing. It saved me a lot of work. Database successfully ported to Laravel. There are ~ 5.5 days left to finish.
  • 0
    @tracktraps If you want to thank the dev too his email is cristianllanos@outlook.com. Good luck with mission impossible! Keep us updated.
  • 3
    @kurtr Thanks for his email address. I thanked him and offered a donation for the great work.
  • 3
    Oh boy, their webpack configuration is a disaster. 1600 LOC.

    A short excerpt of the first few lines:
    var path = require('path');
    var webpack = require("webpack");
    var UglifyJS = require("uglify-js");
    var CleanCSS = require('clean-css');
    var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
    var CopyWebpackPlugin = require('copy-webpack-plugin');
    var CleanWebpackPlugin = require('clean-webpack-plugin');
    var ExtractTextPlugin = require('extract-text-webpack-plugin');

    I'm looking forward to dealing with all this stuff with Laravel Mix.
  • 0
    How is it going? Sounds incredible. I give you all my respect.
  • 1
    Almost 50% done. I decided to throw away their webpack-config and bootstrap and completely redo the frontend with materializecss.
  • 2
    btw, working with Laravel is a dream. I don't know why they have been struggling with ZF1 for years.
  • 1
    How are you even doing? Haha Progress on Mission Impossible?
  • 1
    @Veox It's getting pretty exhausting.
    At the moment my day looks like this: 20 hours working, 2 hours sleeping, 1 hour walking with the dog and 1 hour for everything else. About 2 (maximum 3-4) days left. Possible? Maybe. More than half of the work is done.
  • 0
    To have all that calculated is pretty amazing 😂
    If ever you do run out of time, let someone else walk the dog. 1 extra hour for the following days could buy you more time. You got this man! Also stop using DevRant so much 😂😂😂. Best of luck brother
  • 2
    @Veox are you crazy? I only have time for devrant while walking with my dog. I live in a RV, currently in Tavira. This is my “garden“.
  • 0
    Finally got some sleep. Haha damn! That is a very nice view
  • 4
    Just don't forget the nintey-nintey law:

    The first 90 percent of the code accounts for the first 90 percent of the development time. The remaining 10 percent of the code accounts for the other 90 percent of the development time.

    — Tom Cargill, Bell Labs
Add Comment