|
In this case, I would just make a valueToDisplayName map. Use the value the server expects everywhere and when you need to show it to the user, just use the string value from the map.
|
# ? Jul 29, 2020 15:14 |
|
|
# ? May 11, 2024 13:00 |
|
Using “key/value” as a shorthand for “user-facing string/internal value” is pretty common. I guess it varies which way round people choose to say key and value... but if you call the string the value and the value the key I don’t want to work with you
|
# ? Jul 29, 2020 15:46 |
|
dantheman650 posted:In this case, I would just make a valueToDisplayName map. Use the value the server expects everywhere and when you need to show it to the user, just use the string value from the map. Prism Mirror Lens posted:Using “key/value” as a shorthand for “user-facing string/internal value” is pretty common. I guess it varies which way round people choose to say key and value... but if you call the string the value and the value the key I don’t want to work with you
|
# ? Jul 29, 2020 16:31 |
|
In my mind the “key” is the ID for the associated DB record and the “value” is just the pretty-printed version of the record in context. Just have a lookup table somewhere that defines a record with ID 3 correlates to “100.00” or whatever you need. Keeps the DB well normalized as a bonus.
|
# ? Jul 29, 2020 16:34 |
|
Prism Mirror Lens posted:Using “key/value” as a shorthand for “user-facing string/internal value” is pretty common. I guess it varies which way round people choose to say key and value... but if you call the string the value and the value the key I don’t want to work with you
|
# ? Jul 29, 2020 17:34 |
|
Protocol7 posted:In my mind the “key” is the ID for the associated DB record and the “value” is just the pretty-printed version of the record in context.
|
# ? Jul 29, 2020 17:36 |
Working in Development: I make my own, different bad decisions.
|
|
# ? Jul 29, 2020 17:38 |
|
Woebin posted:Man, I wish this was in a db and not just endless raw strings within the code. Make a constant string for each key (or was it value?) and make a big commit changing all of the handwritten strings to use the consts imo
|
# ? Jul 29, 2020 17:48 |
|
ChickenWing posted:Working in Development: I make my own, different bad decisions. Mods?
|
# ? Jul 29, 2020 17:49 |
|
rt4 posted:Make a constant string for each key (or was it value?) and make a big commit changing all of the handwritten strings to use the consts imo Yeah, it sounds like it's going to be painful, just rip off that bandaid. ChickenWing posted:Working in Development: I make my own, different bad decisions. ultrafilter posted:Mods?
|
# ? Jul 29, 2020 18:01 |
|
ChickenWing posted:Working in Development: I make my own, different bad decisions. rt4 posted:Make a constant string for each key (or was it value?) and make a big commit changing all of the handwritten strings to use the consts imo
|
# ? Jul 29, 2020 18:05 |
|
Would this double-sided thing be a case for a bidirectional dictionary/map aka bidict aka inverse dictionary/map aka two-way dictionary/map?
|
# ? Jul 29, 2020 18:22 |
|
So as others have mentioned, despite the structure of 'user facing string, functional int' not really conforming the conventions of KVP, I'd still use a Dictionary<string , int>/Map/Whatever to represent this. It provides the structure that you'd basically want anyway, and most languages have robust features around Dictionaries such that you don't have to write a lot of supporting code to manipulate and manage them.
|
# ? Jul 29, 2020 21:32 |
|
if anyone ever says that humankind has never united under a single banner, show them this beautiful thread: https://twitter.com/ctrlshifti/status/1288745146759000064
|
# ? Jul 30, 2020 19:23 |
|
perfect opportunity to use recursioncode:
|
# ? Jul 30, 2020 19:36 |
|
Fellatio del Toro posted:perfect opportunity to use recursion It's not webscale, can you refactor into an IsEvenEvaluatorFacadeFactoryBeanImplService?
|
# ? Jul 30, 2020 19:43 |
|
https://twitter.com/ctrlshifti/status/1288653375634956288
|
# ? Jul 30, 2020 19:52 |
|
.
Carbon dioxide fucked around with this message at 12:08 on Aug 1, 2020 |
# ? Jul 30, 2020 21:08 |
|
Oof yeah, time tracking or any mention of personal KPIs is basically for me.
|
# ? Jul 30, 2020 21:55 |
|
Pedestrian Xing posted:Oof yeah, time tracking or any mention of personal KPIs is basically for me. I really can't understand any manager that expects a positive outcome of time tracking. The only rational outcome of time tracking is to work to the time.
|
# ? Jul 30, 2020 22:29 |
|
We used to have to do it when I worked at an agency, but eventually I would just kinda say "how much do you want to bill them for this? great, that's exactly how long it took" Still an annoying waste of time and I fought really hard to get us to switch to selling weeklong sprints but they weren't having it.
|
# ? Jul 31, 2020 01:40 |
|
prom candy posted:We used to have to do it when I worked at an agency, but eventually I would just kinda say "how much do you want to bill them for this? great, that's exactly how long it took" Well yah contract is something totally different. I had been at places where we had to track to 1/10th of the hour. And guess what? I didn't give any free time then!
|
# ? Jul 31, 2020 02:18 |
|
Pedestrian Xing posted:Oof yeah, time tracking or any mention of personal KPIs is basically for me. Personal KPIs: 1a. endear myself to at least 1 manager in my part of the org and 4 in other parts of the org that don't have their reports do personal KPIs. These numbers will be doubled if I can't prioritise my work based on my personal KPIs. Really though; every time I've done them I've had to blow them up and re-do them for some priority change. Which makes them feel even more pointless than I know they are.
|
# ? Jul 31, 2020 14:48 |
|
leper khan posted:Personal KPIs: 1a. endear myself to at least 1 manager in my part of the org and 4 in other parts of the org that don't have their reports do personal KPIs. These numbers will be doubled if I can't prioritise my work based on my personal KPIs. Reminds me of a place that required team wide Achievements (What you did this week) and Objectives (What you plan to do next week.) be sent out to all members every Friday... I loved when I sent out my two liner Achievement: Resigned this week effective 7/31 Objectives: Turnover
|
# ? Jul 31, 2020 15:24 |
|
I'm an oddity in that I started using Toggl to get a better idea of where my time goes during university, and I've just kept using it at every job since purely for my own benefit. I really like being able to look at my own history and seeing how much time I spent on any one thing, how much got wasted in meetings etcetera. Plus it helps keep me accountable to myself when it comes to not overworking, which is nice - I like my job, but I'm not spending more time on it than I get paid to. That's just my own private tracking though, if some middle manager with a need to feel useful demanded that I did exactly the same thing and reported it to them I'd be annoyed at best.
|
# ? Jul 31, 2020 17:44 |
|
To paraphrase what's been said before: metrics that become targets lose all their value as metrics.
|
# ? Jul 31, 2020 20:52 |
|
Che Delilas posted:To paraphrase what's been said before: metrics that become targets lose all their value as metrics.
|
# ? Jul 31, 2020 21:28 |
|
Che Delilas posted:To paraphrase what's been said before: metrics that become targets lose all their value as metrics. Goodhart's law
|
# ? Jul 31, 2020 22:30 |
|
Yeah him
|
# ? Aug 1, 2020 02:56 |
|
Pedestrian Xing posted:Oof yeah, time tracking or any mention of personal KPIs is basically for me. We're still expected to log hours against our tickets. I haven't done that in months. Yes I'm ing EDIT: Also I vastly overestimate tickets because even if the development work is done in the time they never take into consideration rejection by QA, discovery of issues, working with other team members, etc. They are extremely bad at project management.
|
# ? Aug 7, 2020 13:26 |
|
Wow, the thread got the new name, huh? A legacy I can be proud of. Anyway I just quit work for the day, which marks the beginning of three weeks' vacation! Gonna be weird to not work on this project for a while, this is the first time I ever feel like I might kinda miss my job while I'm off. Is this just what it feels like to have a job you like? All my previous dev jobs have been varying levels of terrible for me.
|
# ? Aug 7, 2020 15:02 |
Woebin posted:Wow, the thread got the new name, huh? A legacy I can be proud of. While I can honestly say I've never missed work while I've been off, I'm certainly susceptible to checking slack while I'm out just to make sure everything is still ticking along. Having a job you like is pretty great. Aside: my startup got acquired by a Microsoft shop and now we have teams instead of slack and while I love it for everything calendar related, everything else can gently caress right off. Especially the part where we need MDM if we want to look at anything work related on our phones. gently caress you I just want to be able to call in sick without leaving my bed
|
|
# ? Aug 10, 2020 14:15 |
|
ChickenWing posted:While I can honestly say I've never missed work while I've been off, I'm certainly susceptible to checking slack while I'm out just to make sure everything is still ticking along. Having a job you like is pretty great.
|
# ? Aug 10, 2020 14:27 |
|
ChickenWing posted:While I can honestly say I've never missed work while I've been off, I'm certainly susceptible to checking slack while I'm out just to make sure everything is still ticking along. Having a job you like is pretty great. I hate Slack/chat apps, I honestly miss email.
|
# ? Aug 10, 2020 14:40 |
|
prom candy posted:I hate Slack/chat apps, I honestly miss email. Hi Prom Candy Noted. Regards, beuges <1MB signature image that's now been added to the email for the 10th time> Please be kind to the environment and think before you print this email Disclaimer: this email is intended only for the addressed recipient. If you have received this email in error, please destroy it and you are self. Unlawful possession of this email or the contents therein could result in death by immolation. If you are unable to read this email or disclaimer please send an email to lol@urbutt and you will receive another email with this disclaimer in it.
|
# ? Aug 10, 2020 14:55 |
|
Auto-reply: Due to the COVID-19 crisis, I'm working from home. I'll be checking my email periodically. Who gives a poo poo. Also this auto-reply fired despite my having sent the initial email.
|
# ? Aug 10, 2020 15:02 |
|
Can you take me off this chain? I left that work unit 6 months ago but somehow I'm still in this group. Thanks in advance.
|
# ? Aug 10, 2020 15:06 |
Vulture Culture posted:Work Profile was a significant factor in my decision to switch to Android a few years back okay how's this work because I'm very strongly of the "I don't want corporate IT's grubby paws in my device" persuasion but I've heard peripherally of this option and how it's basically a second partition?
|
|
# ? Aug 10, 2020 15:20 |
|
beuges posted:Hi Prom Candy I'll take this over having 3 parallel conversations in the same slack channel, or taking a day off work and just completely missing anything important that happened, or getting a non-time sensitive request but still needing to respond right away or else it'll be pushed off the screen and as good as gone.
|
# ? Aug 10, 2020 16:02 |
|
|
# ? May 11, 2024 13:00 |
|
prom candy posted:I'll take this over having 3 parallel conversations in the same slack channel, or taking a day off work and just completely missing anything important that happened, or getting a non-time sensitive request but still needing to respond right away or else it'll be pushed off the screen and as good as gone. tldr; you use slack wrong
|
# ? Aug 10, 2020 16:16 |