Thanks for this walkthrough! I'm a relatively new developer in general, let alone in Apex. I've watched other videos on fflib, and I saw a lot of potential for my org, but I was a bit overwhelmed at the thought of being the one to oversee its implementation. This explanation takes the edge off the basic concepts and helps me better understand the dynamic aspects of its building blocks. I'll be stealing this and the recommendations in the comments for my own experimentation immediately! :D
@softwareengineeringandsale4005
2 жыл бұрын
There are of a lot of smart folks out there there rally dislike FFLIB too. My goal with some of these is just to present the patterns on their own.
@stevenduong8126
2 жыл бұрын
Thanks so much, Sir.
@softwareengineeringandsale4005
2 жыл бұрын
Most welcome!
@ST-Vidz
2 жыл бұрын
Hey Brooks. We have not seen a video from you in a while. Please post more!
@softwareengineeringandsale4005
2 жыл бұрын
I have been a little burned out and a little busy. But uploading a new one today.
@ST-Vidz
2 жыл бұрын
As always, your work is top notch. Thanks for impoarYour channel should have more subs! Im trying to promote it on my Linkedin as well.
@softwareengineeringandsale4005
2 жыл бұрын
Glad you like the content. And thank you for the support!
@prakashtiwari2570
2 жыл бұрын
Thank you so much for this wonderful session. I have one question, does unit of work support partial database commit?
@softwareengineeringandsale4005
2 жыл бұрын
i can’t remember if FFLIB does but your own could. Just overload the method
@lodoss118
2 жыл бұрын
Do we need the map string and list
@lodoss118
2 жыл бұрын
Why not have single lists and call sort
@9gager87
2 жыл бұрын
You can simplify handleRegisterType() by calling type.getDescribe().getName() only once and assigning the value to a variable, and then use that variable in your 3 maps.
@softwareengineeringandsale4005
2 жыл бұрын
haha i was wondering who would call me out for that while i was recording. Good catch.
@9gager87
2 жыл бұрын
@@softwareengineeringandsale4005 Also...if you don't mind more feedback (think of it like a code review!), registerNew() would throw a null pointer exception if a map of that object type doesn't exist. I think you should validate that there is a map of that type (i.e that it was passed to the constructor) and only then add the sobj to the list. If the map doesn't exist, a custom exception would be better than a NPE.
@softwareengineeringandsale4005
2 жыл бұрын
@@9gager87 i completely agree. I was just sketching a pattern vs writing production ready code. It’s always a balance between getting the info across and trying to not make the video last forever.
@9gager87
2 жыл бұрын
@@softwareengineeringandsale4005 yes of course!
@lodoss118
2 жыл бұрын
Maybe just use the sobjectType in the maps rather than a string as it is very lightweight than calling getDescribe
Пікірлер: 20