wzhe06 / ipdatabase Goto Github PK
View Code? Open in Web Editor NEWIP geolocation binary tree search
Home Page: https://github.com/wzhe06/ipdatabase
IP geolocation binary tree search
Home Page: https://github.com/wzhe06/ipdatabase
El patron Composite ayudaria mucho al proyecto, su uso facilitaria la integracion de nuevas direcciones ip al arbol y facilitaria la integracion de otros protocolos ip tales como IPv6. Esto es importante considerando que la cantidad de direcciones IPv4 es muy limitada en comparacion a otros protocolos, pero tambien se sabe que hay ciertos dispositivos que no pueden usar IPv6. El uso de composite perimte añadir IPv6 sin reemplazar las direcciones IPv4 ya existentes, ademas de poder integrar mas protocolos si se desea.
Asi se veria el UML del rediseño:
Y asi se verian algunas clases rediseñadas:
我的中文不好。但我想学习。如果你回答我,如果是用中文,我会很感激。
Buenas!
En un trabajo de Diseño de software estamos viendo patrones de diseño en varios repositorios para mejorar codigo y vimos que se podria usar el patron Iterator para majerar el uso del arbol de direcciones ip y del hashmap de regiones.
Creemos que esto seria muy util porque permitiria al usuario ver con mayor facilidad diversas direcciones ip, ya que no habria mucha restriccion y esto se podria lograr conservando la encapsulacion.
Asi se veria el UML:
Asi se veria el rediseño de algunas clases:
我的中文不好。但我想学习。如果你回答我,如果是用中文,我会很感激。
当解析如下地址的时候
println(getCity("71.17.103.212")+"|")
println(getCity("103.204.172.213")+"|")
出现两个结果,这会导致,以城市作为主键的数据库表插入失败
全球 |
全球|
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.