Monica Shiralkar

Ranch Hand
+ Follow
since Jul 07, 2012
Cows and Likes
Cows
Total received
4
In last 30 days
0
Total given
0
Likes
Total received
10
Received in last 30 days
0
Total given
25
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Monica Shiralkar

I want to learn Azure as a developer. How should I approach my azure learning as a developer?

thanks
I am working on a REST API where user can send id as a string or a as list from the JSON. I am facing a problem that the POJO variable has to either string or a list.If I keep it as a list and string is sent in the request the code will give error. Also if I keep it as string type and user sends a list then again the code willl give error.What is a way to handle this?

thanks
2 weeks ago
Thanks. I think one good way is to return boolean value.
3 weeks ago
Python is an object oriented language. Why does the hello world program of python not require a class?

thanks.
3 weeks ago
If it is not required to know the number the  is void acceptable or I should return string which is success or failure depending upon whether records got inserted or exception occurred?
3 weeks ago
If I have a method which insert records in database. Is acceptable practice to have void as its return type as it just inserts records or there is a better way of doing this?

thanks
3 weeks ago
Apart from detecting the type right hand side evaluates to, eclipse has been programmed for a lot of things. We do not need to understand each one of those things but can directly make use of them in eclipse. Similarly, we do not need to know how eclipse internally detects the type but need to know the type using eclipse for our understanding while doing coding.
1 month ago

Is this a question about Scala or about Eclipse? If you use var or similar as the type, do you actually need to know the correct runtime type in Scala?



This question as related to Scala. Now I have come to know the answer. The right hand side evaluates to a result which can be stored as var or val. I needed to know that what type does right hand side evaluate to. This is required to better understand what it does. It does this and evaluates to this type. That is easy to understand.
1 month ago
thanks . So I can ignore this syntax and better use the arrow syntax.
1 month ago

means methods inside method call I don't no such concepts that  its, because one method call contains other method call only one call, how does three methods will execute



myProcess() does the below:

calls fetchTableData  and gets the response.
uses the above response to call computeResults method compute the result and return this as response.
uses the above response to save into the database by calling saveOutputResults method.


Is it a wrong design?


1 month ago

Why? That sounds like very dubious design.




The entire processing is broken down into 4 methods:
fetchTableData
computeResults
saveOutputResults


and myProcess() is the method which calls the 3 methods.


1 month ago

I assume this was already clear to you, isn't it?



Sorry for that typo.
1 month ago

Why do you think the call to myPrpocess() should be enclosed in a try-catch?
Does that method throw an exsception?



Suppose if the code is reading from a table in the database but the column does not exist, it will give runtime exception that column does not exist.
1 month ago