kio-stash is in KDE Review

Albert Astals Cid aacid at kde.org
Sat May 27 10:23:18 BST 2017


El dissabte, 27 de maig de 2017, a les 0:29:51 CEST, Boudhayan Gupta va 
escriure:
> Hi,
> 
> On 27 May 2017 at 00:20, Albert Astals Cid <aacid at kde.org> wrote:
> > El divendres, 26 de maig de 2017, a les 23:48:18 CEST, Boudhayan Gupta va
> > 
> > escriure:
> >> Hi,
> >> 
> >> On 26 May 2017 at 20:31, Elvis Angelaccio <elvis.angelaccio at kde.org> 
wrote:
> >> > * The dbus adaptor could probably use build-time generation via cmake,
> >> > rather than being committed to the git repo. If you need an example
> >> > look
> >> > at
> >> > the CMakeLists.txt in kio/src/kioexec (qt5_add_dbus_adaptor and
> >> > friends).
> >> 
> >> IIRC we did that first, but then figured we needed to edit the
> >> generated code (I was the mentor for this project).
> > 
> > That seems dangerous, what if sometime in the future you need to
> > regenerate
> > the adaptor because you add new functions or something?
> > 
> > Files that contain autogenerated code should ideally not be "edited".
> > 
> > Do you remember why editing was needed?
> 
> Not exactly, Arnav will know that. But it's not really too big a
> problem for a project this size. In fact I do the same thing in
> Spectacle.
> 
> Granted this isn't best practice, but the effort required to do it
> right (whatever way that might be) was inordinately large for the
> scope of the project. At some point someone who's trying to patch this
> part of the code might get stuck, but figuring out that generated code
> was edited isn't difficult at all, as neither is asking the maintainer
> how the code works.

Maintainers will leave and we will inherit the code, so there will be noone to 
ask.

If you need to do some changes to generated code either document it or just 
don't do changes in the generated code.

Cheers,
  Albert

> 
> Thanks,
> Boudhayan
> 
> > Cheers,
> > 
> >   Albert
> >   
> >> > Cheers,
> >> > Elvis
> >> > 
> >> > [1]: https://api.kde.org/frameworks/ki18n/html/prg_guide.html
> >> 
> >> Freundliche Grüße
> >> Boudhayan Gupta
> >> KDE e.V. - Sysadmin and Community Working Groups
> >> +49 151 71032970






More information about the kde-core-devel mailing list