libelektra icon indicating copy to clipboard operation
libelektra copied to clipboard

Rename ksAppendKey to ksInsert

Open lawli3t opened this issue 3 years ago • 6 comments

lawli3t avatar Jul 31 '21 22:07 lawli3t

How do we call ksAppend then?

markus2330 avatar Aug 04 '21 15:08 markus2330

I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

stale[bot] avatar Aug 11 '22 22:08 stale[bot]

@lawli3t there is still an open question

markus2330 avatar Aug 12 '22 16:08 markus2330

I would have thought ksAppend just keeps its name

lawli3t avatar Aug 12 '22 20:08 lawli3t

Sounds inconsistent to me as they are basically doing the same thing (either with a Key or a KeySet)?

markus2330 avatar Aug 15 '22 04:08 markus2330

How about ksInsert and ksInsertAll?

I think the main issue is that "append" suggests adding to the end, which is not at all what happens.

kodebach avatar Aug 15 '22 11:08 kodebach

This issue is part of the issue #4411 which is tagged as project2022w. Maybe we can also offer this issue as a separate FLOSS task.

flo91 avatar Oct 05 '22 16:10 flo91

In general, people should prefer different issues over these simple rename/API change issues, because the renaming/API changes can (hopefully) be done with the tool I'm developing for my thesis.

If people still choose issues like this one, it would be nice if they could record how much time they spent. Then I could use that data as a comparison in my thesis. (I can always just run my tool on an old commit before the change to get some results.)

cc @markus2330

kodebach avatar Oct 05 '22 16:10 kodebach

I agree that the renaming parts are better done by the @kodebach's tool.

it would be nice if they could record how much time they spent.

@kodebach If you really want to do that, you need to precisely clarify what they should do (how to measure the time etc. according to your methodology) I can ask in the course who wants to do that. Then we should also carefully select which renaming (in case of doubt randomly. Letting the people select is not a good idea, as they will probably bias to simple renaming tasks).

markus2330 avatar Oct 10 '22 04:10 markus2330

I'll see if I can come up with some concrete instructions. But this comparison "manual vs. tool" (intentionally) isn't really required to answer my research questions. So I would have just added the comparison as some examples of how the tool can help make things easier, not as a rigorous scientific evaluation.

kodebach avatar Oct 10 '22 08:10 kodebach

Yes but even as an example (case study) it must be clear what the people did. Maybe even more important than instructions is a small questionnaire which gives insights which tooling they used (e.g. an IDE, sed, ...).

Anyway, I will tell the students that this is an option. Can you create an explicit issue for the renaming/removal you would like to be done or can it be any renaming/removal?

markus2330 avatar Oct 10 '22 11:10 markus2330

In general any renaming should be fine. Removal functions depends on what the replacement is. If there is a straight-forward replacement then it should also be fine, e.g. keyGetMeta -> ksLookupByName (keyMeta) + add meta:/ prefix is missing. If the replacement is more complex and requires looking at the surrounding code, then I'd need to take a look to decide whether it would be useful for my thesis.

I can provide a list, but I'm not sure when I'll find time to do this. It's probably easier and quicker, if people just ask me for a specific API change they want to do.

kodebach avatar Oct 11 '22 15:10 kodebach

I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Dec 18 '23 01:12 github-actions[bot]

I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Jan 01 '24 01:01 github-actions[bot]