martinsson / refactoring-kata-lift-pass-pricing Goto Github PK
View Code? Open in Web Editor NEWA refactoring kata where you'll practice disentangling business logic from frameworks and SQL
A refactoring kata where you'll practice disentangling business logic from frameworks and SQL
There are two little differences in the Scala version compared to all other solutions:
Also maybe log level could be turned to Warn when running the application.
ping @seblm
@codecop I updated the master branch, so it's ready for being adapted to your java port
The used MySQL driver is too old in the TypeScript version. A newer driver has a different API, so some modifications have to be done.
It'd be great to have a CI (travis, circleci, ..) to avoid systematically testing all PRs to the with_tests branch by hand.
Note: Possibly one could imagine to do the same for the master branch, but that'd require the tests to actually pass whereas now they fail in order for people to see where to start. Either way let's start with configuring a CI on the with_tests branch
There is a small inconsistency to the other projects - because also typescript version has it.
There is a main
entry point (class, whatever) which calls createApp
and then gets the connection and the application. It will print a message with a test URL and proper port (look into index.ts
in the Typescript) and then starts the app by listening. So please instead of having the run of app in the main method of Prices
, please create a separate file.
The createApp
is also returning the connection, so tests can close it after running. I do not see the tests closing the connection, maybe a method provided to shutdown of process? I think it's OK to get the values app
and importing by running the module like it is now, connection is just available globally then?
Originally posted by @codecop in #61 (comment)
I don't know if it's "by-design" to have deprecated code in a refactoring kata, but if you want, I can fix it.
@codecop started working on this: https://github.com/codecop/Refactoring-Kata-Lift-Pass-Pricing/tree/wip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.