From kde-panel-devel Thu Apr 25 13:56:43 2013 From: "Aaron J. Seigo" Date: Thu, 25 Apr 2013 13:56:43 +0000 To: kde-panel-devel Subject: Re: Review Request 109965: Refactor assetimporters Message-Id: <20130425135643.1659.87051 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=136689822312345 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0130678304087277560==" --===============0130678304087277560== Content-Type: multipart/alternative; boundary="===============2327676668361400263==" --===============2327676668361400263== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On April 13, 2013, 2:12 a.m., Aaron J. Seigo wrote: > > assetimporters/projectgutenberg/src/gutenbergdatabase.cpp, line 326 > > > > > > this is more partnerId than partnerQuery? > > Giorgos Tsiapaliokas wrote: > yes you can call it a partnerId, but I didn't. Because partnerQuery is a virtual method of databasecommon > and I wanted to emphasize the fact that *this* partner has changed. > > So I believe we should leave the method as partnerQuery or to rename all of them into partnerId. > We have to emphasize the change in the value(if it changes at all), no? What is important is not the implementation of the method, but what it takes and what it returns. This method takes nothing (languageQuery below takes a language by name) and it returns the id of the partner (languageQuery returns the id of the language). It's usually better to name the method after what the method signature says rather than the implementation. - Aaron J. ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/109965/#review30976 ----------------------------------------------------------- On April 20, 2013, 10:52 a.m., Giorgos Tsiapaliokas wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/109965/ > ----------------------------------------------------------- > > (Updated April 20, 2013, 10:52 a.m.) > > > Review request for Plasma. > > > Description > ------- > > This patch > > * removes the duplicated code in assetimporters > * adds asset's size into the db > * and fixes a few small issues > > > Diffs > ----- > > assetimporters/CMakeLists.txt 24e76a0 > assetimporters/database-common/channelscatalog.h 5d39c02 > assetimporters/database-common/channelscatalog.cpp 6ca0aef > assetimporters/database-common/database.h 9883216 > assetimporters/database-common/database.cpp e860bdd > assetimporters/kdeartwork-wallpapers/CMakeLists.txt 56d19b9 > assetimporters/kdeartwork-wallpapers/database.h 6991758 > assetimporters/kdeartwork-wallpapers/database.cpp d75cdda > assetimporters/kdeartwork-wallpapers/kdewallpapersdatabase.h PRE-CREATION > assetimporters/kdeartwork-wallpapers/kdewallpapersdatabase.cpp PRE-CREATION > assetimporters/kdeartwork-wallpapers/main.cpp 708a949 > assetimporters/obs/CMakeLists.txt 2dbcd42 > assetimporters/obs/channelscatalog.h PRE-CREATION > assetimporters/obs/channelscatalog.cpp PRE-CREATION > assetimporters/obs/packagedatabase.h 99f4e17 > assetimporters/obs/packagedatabase.cpp ae43b8e > assetimporters/projectgutenberg/CMakeLists.txt b86cc49 > assetimporters/projectgutenberg/src/CMakeLists.txt 2d48e9c > assetimporters/projectgutenberg/src/database.h 8dba0ba > assetimporters/projectgutenberg/src/database.cpp 75cba69 > assetimporters/projectgutenberg/src/gutenbergdatabase.h PRE-CREATION > assetimporters/projectgutenberg/src/gutenbergdatabase.cpp PRE-CREATION > assetimporters/projectgutenberg/src/main.cpp 46f2340 > sql/bodega.sql 44f8641 > > Diff: http://git.reviewboard.kde.org/r/109965/diff/ > > > Testing > ------- > > I haven't noticed regression. > > > Thanks, > > Giorgos Tsiapaliokas > > --===============2327676668361400263== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit
This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/109965/

On April 13th, 2013, 2:12 a.m. UTC, Aaron J. Seigo wrote:

assetimporters/projectgutenberg/src/gutenbergdatabase.cpp (Diff revision 1)
326
int GutenbergDatabase::partnerQuery()
this is more partnerId than partnerQuery?

On April 20th, 2013, 10:51 a.m. UTC, Giorgos Tsiapaliokas wrote:

yes you can call it a partnerId, but I didn't. Because partnerQuery is a virtual method of databasecommon
and I wanted to emphasize the fact that *this* partner has changed.

So I believe we should leave the method as partnerQuery or to rename all of them into partnerId.
We have to emphasize the change in the value(if it changes at all), no?
What is important is not the implementation of the method, but what it takes and what it returns. This method takes nothing (languageQuery below takes a language by name) and it returns the id of the partner (languageQuery returns the id of the language). It's usually better to name the method after what the method signature says rather than the implementation.

- Aaron J.


On April 20th, 2013, 10:52 a.m. UTC, Giorgos Tsiapaliokas wrote:

Review request for Plasma.
By Giorgos Tsiapaliokas.

Updated April 20, 2013, 10:52 a.m.

Description

This patch

* removes the duplicated code in assetimporters
* adds asset's size into the db
* and fixes a few small issues

Testing

I haven't noticed regression.

Diffs

  • assetimporters/CMakeLists.txt (24e76a0)
  • assetimporters/database-common/channelscatalog.h (5d39c02)
  • assetimporters/database-common/channelscatalog.cpp (6ca0aef)
  • assetimporters/database-common/database.h (9883216)
  • assetimporters/database-common/database.cpp (e860bdd)
  • assetimporters/kdeartwork-wallpapers/CMakeLists.txt (56d19b9)
  • assetimporters/kdeartwork-wallpapers/database.h (6991758)
  • assetimporters/kdeartwork-wallpapers/database.cpp (d75cdda)
  • assetimporters/kdeartwork-wallpapers/kdewallpapersdatabase.h (PRE-CREATION)
  • assetimporters/kdeartwork-wallpapers/kdewallpapersdatabase.cpp (PRE-CREATION)
  • assetimporters/kdeartwork-wallpapers/main.cpp (708a949)
  • assetimporters/obs/CMakeLists.txt (2dbcd42)
  • assetimporters/obs/channelscatalog.h (PRE-CREATION)
  • assetimporters/obs/channelscatalog.cpp (PRE-CREATION)
  • assetimporters/obs/packagedatabase.h (99f4e17)
  • assetimporters/obs/packagedatabase.cpp (ae43b8e)
  • assetimporters/projectgutenberg/CMakeLists.txt (b86cc49)
  • assetimporters/projectgutenberg/src/CMakeLists.txt (2d48e9c)
  • assetimporters/projectgutenberg/src/database.h (8dba0ba)
  • assetimporters/projectgutenberg/src/database.cpp (75cba69)
  • assetimporters/projectgutenberg/src/gutenbergdatabase.h (PRE-CREATION)
  • assetimporters/projectgutenberg/src/gutenbergdatabase.cpp (PRE-CREATION)
  • assetimporters/projectgutenberg/src/main.cpp (46f2340)
  • sql/bodega.sql (44f8641)

View Diff

--===============2327676668361400263==-- --===============0130678304087277560== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============0130678304087277560==--