long id

Oct. 1st, 2015 02:02 pm
juan_gandhi: (VP)
[personal profile] juan_gandhi
I think I got it where all this bs about passing around numerical ids of entities instead of entity references (maybe lazy) come from. It's like 'error code'. It comes from the ancient c programming, where we just could not allocate a string for a readable piece of text, or for the data that may need some efforts to instantiate or allocate.

In short. It's stupid to pass around "ids" in a program.

Date: 2015-10-01 09:46 pm (UTC)
From: [identity profile] juan-gandhi.livejournal.com
You don't have to allocate everything for everything. Conceptually it's here; actually it's not, and all we have, encapsulated, is that id. But we don't want to see it.

They are not stupid. They are just from an old age. mid-XX century.
Edited Date: 2015-10-01 09:46 pm (UTC)

Date: 2015-10-01 09:55 pm (UTC)
From: [identity profile] rezkiy.livejournal.com
ok let's talk process now.

You have a resource ID. You have a separate team producing you UI strings for error messages. And another team producing you UI strings in some other languages.

Can you describe me the process of adding a new UI string in a situation where instead of ID you have a readable piece of text right there embedded in random places of your 100KLOC project. How do you engage team 1? How do you ever KNOW you have to engage team 1? let alone team 2.

after you are done with that, we will also discuss how you build the process so you eventually achieve and sustain ADA compliance for high-contrast UI.

I can probably propose a one-pager on how you do this all with IDs and stuff.

Date: 2015-10-02 12:30 am (UTC)
From: [identity profile] juan-gandhi.livejournal.com
This is a different story. Internally of course we have identifiers, e.g. for error message formats. But sending error message id to the user, instead of formatting the message with the data, that would be stupid, right?

Date: 2015-10-02 01:03 am (UTC)
From: [identity profile] rezkiy.livejournal.com
it is not stupid, it is a trade-off. You probably reached a point where you have a reasonable number of users who don't understand IDs and you still send them errors (if you send errors extremely seldom, you may never reach this point)... now you weigh the cost of formatting those errors with data vs doing something else.

Date: 2015-10-02 07:36 am (UTC)
From: [identity profile] gineer.livejournal.com
Это напоминает рассуждение типа "зачем в БД хранят фиксед сайз данные, когда мы уже имеем и умеем работать с такими хорошими и красивыми типами данных произвольной длинны".

Это в том же стиле рассуждение, я правильно понимаю?

Date: 2015-10-02 09:52 am (UTC)
From: [identity profile] metaclass.livejournal.com
Actually its not stupid. I`m receiving localized error messages from clients in their languages and forced to translate them back to English. Error codes and formatting parameters would be much easier to deal with. :)

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

July 2025

S M T W T F S
  12345
6789 1011 12
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 16th, 2025 07:04 am
Powered by Dreamwidth Studios