GithubHelp home page GithubHelp logo

devnews-fv's Introduction

Devnews v0.0.1

devnews-fv's People

Contributors

kutaybuyukkorukcu avatar

devnews-fv's Issues

Improvement

counterValue() fonksiyonu url'ler crawl edilirken unique Id atamak icin kullaniliyor.

Her kayit icin Id'yi belirlemek icin counterValue() kullanmaktansa collection'da bulunan bir onceki kayitin id'si alinip ona +1 ekleyip, yeni kayida Id atanabilir.

// Bad wording. But i know i'll get it so nw.

Annoying stuff maybe??? - Open 4 discussion.

request to v1/recommend -> database de kisinin begendigi makalelerin linkleri URL collectioni altinda tutuluyor. v1/recommend calistigi zaman bu article linkler crawllanip Like collectionu icerisine yazilir.

v1/recommend is a one per week request so it might not be a problem to think about.

The kick is we have to update isNew field from true to false every single week in order to avoid conflict.

API response

Making API to return a template class composed of status code, message, data and status (error, success)

When transitioning to Spring Framework i should use Response Entity.

Implementing DI

Still searching for what do use as DI

Guice, Dagger, javax.inject etc.

Data/Article isimlendirmesi - Refactor

Data ve Article kavramlarinin isimleri birbirinden ayristirilacak.

Biri raw digeri raw data degil. DB'de data adli collection yerine Article adli collection olmasi daha mantikli.

Data -> Article yapip, Article derken de recommendationdan donen makaleler oldugunu yani recommended content oldugunu belirtmemiz gerekir.

Isimlerdirmelerde degisime gidilecek.

try/catch logging

Implementing slf4j and adding logging functions for try / catch blocks

Service layer - Try/catch or any alternative?

Service katmanindan donen response'u duzenlemek lazim.

Service katmaninda insert() oncesi yapilan kontrollerden gecemiyor ise exception mi atmaliyim? Ve bu exceptioni atarak controller tarafinda try/catch ile yakalayip controller da buna gore mi donus yapmaliyim?

Ornegin API'ma request yapilinca kayit islemi yapiyor. Service katmaninda ekleme de hata cikarsa bu exception controller tarafina nasil gonderilmeli? Approach 1 -> Service katmani tarafinda insert() islemi yapmadan once yapilan kontrollerden gecemiyorsa exception yollanmali ve controller tarafinda bu exception try/catch ile catchlenmeli ve ona gore controller da response atilmali ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.