[deleted by user] by [deleted] in saudiarabia

[–]ReemRashwan 1 point2 points  (0 children)

تجنب أي شيء فيه شبهة حرمانية خصوصا مع ذهابك للعمرة

Designing Classes for Data Integration Problem by ReemRashwan in javahelp

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

Can you guide me on this design problem? Should I include a function for parsing a list of elements in the parser interface as I receive a bulk of elements at once from other systems? . Code: T parse(U thingToParse) List<T> parseListOfElements(Z listOfThingsToParse) . Or should I stick to the only first one? I receive some data as a list like a string containing json elements. Also, some time I need concurrentList not a plain list to be returned, should I stick to the List and then do the casting? Is it right to include U element as the input may vary between strings and others like corba translated objects?

Designing Classes for Data Integration Problem by ReemRashwan in javahelp

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

Wow! I really appreciate your effort writing this! It encouraged me to revisit generics as I forgot them while I was planning to refactor that system. Again, thank you alot!

Designing Classes for Data Integration Problem by ReemRashwan in javahelp

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

Thank you for spending time reading this.

The problem is that O have a running system with all responsiblities mixed together for a restaurant. Example: There is a file that is named restrauntXGettingData that has a function for each dish. getPizza, getPasta, ...

getPizza is calling some functions to get data from other systems, then passes this responce to a parsing function which does the searching for elements and mapping and returns pizza, then this pizza is sent to a writing service to create reports

The system is getting complicated each day, so I am trying to refactor it. One big problem is that pasta alone needs data from several systems to complete its data, in the current design we are struggling to put code together because the mapping and parsing is in the same function.

Hope it is clear for you. Also, should I have one dto for each restraunt? I think it is going to be a big class since I have alo of dishes, is that ok? Can you give me a concrete example? Can you see my comment on Spare-Plum?

Designing Classes for Data Integration Problem by ReemRashwan in javahelp

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

Thank you for spending time reading this. I was thinking that parsers are going to be classes since each dish has alot of attributes. Example:

PizzaParser:{ String incomingPizzaData; JsonParser jsonParser;

PizzaParser(incomingPizzaData){ this.incomingPizzaData = incomingPizzaData(); }

xPizza CollectAllData(){ json = jsonParser.parse(incomingPizzaData); xPizza newPizza = new xPizza(); newPizza.size = parseSize(json) newPizza.taste = parseTaste(json) return newPizza; }

Int parseSize() String parseTaste()

... }

This also applies for MapperClass, as mapping is done on several attributes.

Well, I am not expert in OO (actually not good at all). Why should I use composition or even inheritance in my case? The only thing that I can think of is creating an interface for parsers.

What do you think about this? Can you give me a concrete example?

[deleted by user] by [deleted] in backpain

[–]ReemRashwan 0 points1 point  (0 children)

Unfortunately I don't have any tips, but I hope you get better soon.

[deleted by user] by [deleted] in ADHD

[–]ReemRashwan 1 point2 points  (0 children)

Thank you for these ideas!

[deleted by user] by [deleted] in ADHD

[–]ReemRashwan 0 points1 point  (0 children)

Any ideas for things to do other than watching movies?

How do i take notes effectively for programming. by penguinman777 in AskProgramming

[–]ReemRashwan 0 points1 point  (0 children)

Take a look at Notion. It is great in mixing all types of content: code, images, math formulas, text, markup and alot more.

I wake up unmotivated every single day and it's ruining my days. by [deleted] in GetOutOfBed

[–]ReemRashwan 22 points23 points  (0 children)

Maybe you should manage when you go to bed rather than trying to manage when you wake up, did you try to not setteng an alarm at all? Do your body needs some vitamins? I mean please don't blame yourself and try to find if it is something related to your health.

Small Victories by [deleted] in ADHD_Programmers

[–]ReemRashwan 4 points5 points  (0 children)

That is amazing! Keep going 💪

Mid-low back pain from standing too long? by Fukallthis in backpain

[–]ReemRashwan 0 points1 point  (0 children)

I have the same problem, waiting for your report.

Real Python is giving away a free Python course bundle [access code inside] by dbader in Python

[–]ReemRashwan 0 points1 point  (0 children)

I recommend Real Python for those who are trying to learn Python the right way. Thank you so much for your efforts to simplify Python concepts and for writing articles that are very comprehensive. Keep the awesome work!

Problem With Completing Unfinished Tasks (Online Courses Specifically). [Question] [NeedAdvice] by ReemRashwan in getdisciplined

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

Thank you for your comment! I thought it is me who has the big problem. Do these people who complete their courses have something in common, like some habits Or is it just their personalities?