Tag Info

New answers tagged

3

You don't need a "controller", you need a "service." A Controller controls the flow of the application based on user input and other events that occur in lower layers. A Service just naively goes about its business doing what it was told. The migration service object would have the intelligence for pulling data from the old schema and persisting it to the ...


4

OOP is not always the best choice for ETL tasks, thus I would not stick to "pure" OOP here. And as long as your model is as simple as shown in your example with just three tables to migrate, I would avoid to overdesign this - having simply one Controller which orchestrates the migration of just three tables, and which uses different "Row Migrator" classes, ...


0

«Perhaps if we wrote programs from childhood on, as adults we'd be able to read them.» (Perlism #24) Understanding code, which is usually abstracted, often written to build a solution and not to best introduce a reader to it, and not filled with explanations, is inherently hard. You can't readily fix how other people write code, but you can work on your ...


6

I know this sounds a bit trite, but you become better at reading other people's code the same way you become better at anything else: practice and experience. It's a skill that you learn. It sounds like you don't have much talent (inherent ability) for it, but that can be overcome by practicing and working at it. Generally, if you can read your own code ...



Top 50 recent answers are included