Похожие чаты

Do you include your parameter names in your function names? I

am struggling to name a function that counts events keyed by their type for a specific device (by id).
Suggestions for better names:
* countEventsByTypeByDevice
* getEventCountsByDevice
* getEventTypeCountsByDevice

8 ответов

24 просмотра

gerEvents().countBy(some fn)

Misan- Автор вопроса
Wojciech Pawlik
gerEvents().countBy(some fn)

In reality, what this does is it does select sum(id) from events where type = 'error' So splitting in such a manner does not really help

What are the arguments to this function?

Misan- Автор вопроса
Thomas
What are the arguments to this function?

the id of a device. types are all provided within the function.

Misan
the id of a device. types are all provided within ...

Ahh, right, it returns a table of types?

Misan- Автор вопроса
Thomas
Ahh, right, it returns a table of types?

it returns an object keyed by the event type and with the value of amount of events for this type

Misan
it returns an object keyed by the event type and w...

yeah, that's what I meant heh, it's hard to say this

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта