qcha / drp Goto Github PK
View Code? Open in Web Editor NEWDsv Resource Parser
Dsv Resource Parser
Class: com.github.aarexer.qcha.drp.deserializers.DsvFileIterator
Problem: Need to write unit-tests for class.
Test cases:
null
Class: com.github.aarexer.qcha.drp.model.DsvFileResource
.
Problem: We need to Builder
, which can put default variables in some fields of class. For example - default line separator.
Need to rewrite handling exceptions in deserializers/iterators.
Class: com.github.aarexer.qcha.drp.model.DsvFileResource
.
Problem: We need write unit tests for filling check.
Cases:
Need to configure logger and add log debug, error and etc messages in project code.
Need to understand - what to do with null check for preferences arg.
It's bad to create new connection to ftp server every time when you need resource.
It will be good idea to have a connection pool, from which we can get connection.
library:
org.apache.commons.pool2
Problem:
Data from these classes are copy-paste from CompressorStreamFactory
and ArchiveStreamFactory
.
It's bad design - When the library(apache.commons-compress
) changes, we will not get these changes and our library will not work correctly.
Need to think how we can fix it.
When we work with URI - we can resolve type of schema(ftp, ftps local and etc.).
And type of file.
Need to write class which can resolve what deserializer and connection should be use.
Testing ftp connections with ftp mock.
library:
org.mockftpserver.fake.FakeFtpServer
As i can see - we need to use some generator for DsvResource
in tests.
I think, that generator should have static methods for generate DsvResource
:
generate(uri)
- generate resource with given uri.generate(uri, delimiter)
- generate resource with given uri and delimiter.generate(uri, delimiter, quotes)
- generate resource with given uri and delimiter, quotes.and etc.
It needs for testing deserializers.
Awesome code in ftp
package - a lot of fixme and good stuff!
Solve it.
We need write good readme.md
file and present our library.
With examples of using and etc.
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.