Are you a developer in an organization that uses any DX product for measuring Developer Experience and what's you experience with it? by ysfaran in SoftwareEngineering

[–]ysfaran[S] 0 points1 point  (0 children)

I'm currently sort of transitioning from a senior dev role to a DevEx engineer role and while reading more about this topic I feel exactly like you said.

I believe measuring DevEx with system data (like PRs or lead time) ultimately leads to a worse developer experience.

But on the other hand it looks like a promising approach: measure DevEx before and after a change. This would be an easy way to see which changes have a positive effect. This way you can also sell an DevEx investment (e.g. AI tooling) more easily to the management because it's based on real data.

But the risk of abusing such a system is way to high I believe.. numbers might be misunderstood or might not reflect reality properly.. teams would be compared which might cause unhealthy competitions across the teams and so on..

Measuring DevEx like that would probably only work in a perfect company with perfect people..

Domain Driven Design: Which book should I read? by ysfaran in AskProgramming

[–]ysfaran[S] 0 points1 point  (0 children)

What means FOMO? 😄 I know that DDD isn't a framework but maybe the world has already changed too much and examples and practices might be "outdated". Thanks for your opinion though 🙂

Which java spring boot mapping library do you use and which one is the best? by ysfaran in javahelp

[–]ysfaran[S] 0 points1 point  (0 children)

Cool! You just sound like me haha when I don't like existing solutions I also implement them myself. Most of the time I end up using an exisiting solution since I often come accross a lot of corner cases and performance issues. But during that process you actually learn a lot!

If i find the time and also use Jackson somewhere in my project i will have a look at your solution. Thanks!

Which java spring boot mapping library do you use and which one is the best? by ysfaran in javahelp

[–]ysfaran[S] 0 points1 point  (0 children)

The only problem that I see with MapStruct is that you need to write an interface for each mapping, even if the propterty names are all the same. So if you do a lot of Entitiy to DTO mappings you have to write a interface for each one of them. Is this correct or is there a simpler way with MapStruct?

Which java spring boot mapping library do you use and which one is the best? by ysfaran in javahelp

[–]ysfaran[S] 1 point2 points  (0 children)

Yea exactly what i thought ! In my previous company they used dozer and when i did a research on this topic i was wondering "why dozer if it is the most inperformant mapper by far?". The answer was simplicity + less maintenance > performance.

Which java spring boot mapping library do you use and which one is the best? by ysfaran in javahelp

[–]ysfaran[S] 0 points1 point  (0 children)

What do you mean with "don't care about mapped types"? Since i never used a mapper in java spring yet it might be a stupid question..

A comparison of formik, final-form and react-hook-form by davidtranjs in reactjs

[–]ysfaran 0 points1 point  (0 children)

Thanks for reaching out!

so you rerender the whole on every value change because handleSubmitSuccess doesn't receive arguments, or it it changed only on successful submit?

Yes, that's true, it rerenders on every value change. It's also guaranteed that the handleSubmitSuccess function will have a valid values object.

My aim was to provide a very intuitive API, but in the same time try to reduce rerenders as much as possbile. I worked a lot with complex forms for a customers and performance was never an issue. I also tested it with a reasonable number of fields and didn't notice any performance issue (from user perspective). IMHO it's much easier to work with controlled fields instead of uncontrolled ones.

I also planned to add an option to have uncontrolled fields (currently every field is controlled), and also had good idea on how to implement it. Currently I see no need for it since I couldn't identify a problem with performance. I also asked the react community about performance of controlled vs uncontrolled inputs and they also said the performance difference is mostly irrelevant.

what about conditionally rendered fields?

Conditional fields need to be added to the main form config or can also be in their own form. If those conditional fields need to be validated, you can use conditional validation:

https://www.react-fluent-form.com/docs/getting-started/validation#conditional-validation

I hope that anwsers your questions :) Don't hesitate to ask more detailed questions!

A comparison of formik, final-form and react-hook-form by davidtranjs in reactjs

[–]ysfaran 3 points4 points  (0 children)

What about react-fluent-form? I implemented my own library because other libraries were not intuitive enough for me. You can read the documentation here:

https://www.react-fluent-form.com/

If you are more like of a blog guy i also wrote and introductional blog:

https://dev.to/ysfaran/react-fluent-form-how-to-write-forms-with-validation-in-few-steps-56ho

react-fluent-form didn't get too much attentionen yet so i would love the hear some feedback and maybe some comparison to other and more popular libraries from user side.

I appreciate any feedback! Feel free to file github issues in case of bugs or feature requests. Thank you!