Thillai Sakthi

Ranch Hand
+ Follow
since Jun 17, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Thillai Sakthi

I fixed this problem. Posting here for others' benefit.

Declared a global var and assigning it.



4 years ago

Tim Cooke wrote: Are you sure you're always returning a value from ask_user()?



I'm new to Python, I think I am returning value from ask_user as long as the user inputted value is Y or N. For other chars, the user is kept asked until they put Y/N .
4 years ago
I have this following code, the basic requirement is to keep prompting the user until they give Y or N for the program to run.
If the user gives Y or N right at the first prompt, it prints "True" or "False" as final result. But if the user gives a different value, say "T", and then on second prompt puts in the right value (Y or N) I get None as final result. Any insights into this behavior?



My output (happy scenario)



My output (error scenario)

4 years ago

Carter Sande wrote:

Also, keep in mind that in Python, it doesn't really matter what type a variable is so long as it has the methods and properties you need. (This is sometimes called "duck typing".) If you write x.endswith(".com") in your Python program, x could be a string, but it could also be some other class that has a method named endswith. So another strategy for dealing with types in Python is to not worry too much about them.



Thank you. This is the first time I am working with a dynamic typed language. So, please pardon my ignorance. Because it is dynamically typed, python could be slow in performance compared to static type languages if I were to write a high throughput API for instance? Any tips/suggestions to be aware of?
4 years ago

Travis Risner wrote:

So, although most library functions returns a specific type which is documented, there are times that a function may be deliberately ambiguous for a reason.  However, no one is suggesting that the documentation is perfect so please share which function is puzzling you.  Perhaps it can be explained better here -- and a request can be submitted to have the documentation improved.  



Thank you. The other day I was working with loading a JSON file and trying to parse through and finding elements in it. (https://docs.python.org/3/library/json.html#basic-usage). json.load documentation simply said "it returns a python object". I was not sure what object was returned. I simply coded something and the exception told me it was a dict object, then I was able to navigate through it. Now I see the document specifically this link (https://docs.python.org/3/library/json.html#json-to-py-table), it makes more sense. Once I crossed this first issue I had, in fact, parsing through the JSON file was so intuitive and able to get the job done in very little time...
4 years ago
Hello

I know a bit of Java, now learning Python. One of the thing I noticed in Java API docs is that the IDE and the docs clearly shows the return type object of a method in the Java class. For e.g. an instance of arrayList.size() returns an int. It is not so intuitive in Python library specs. How do I intuitively figure it out? Is there a simpler way you can suggest?

Thank you,
4 years ago
Thank you, really appreciate your candid answer.
Hello authors
Glad to see you on the forum. I don't have any certification in Java and I don't code on every day basis. I code for leisure and to learn new concepts like lambdas. How much time do you think I should devote to myself certified in Java 8? I know it depends on person to person, but since you know how hard it is any thoughts ?

Thank you,
Hello
There have been some conflicting opinions about the performance of the streams versus good old for loops. Can you please enlighten whether the programmers need to be concerned about performance degradations when using streams and other FP constructs that Java 8 offers ?

Thanks for your advice.
8 years ago

Andreas Wittig wrote:As far as I understand your use case, KMS is not the solution to your problem. KMS is focusing on data at rest. So I guess you need to search for an alternative here.



Respectfully disagree. As per KMS documentation, they have 2 use cases - one for envelope encryption and this is for real time transaction use case. The other one is the encryption of data at rest.
8 years ago

Winston Gutkowski wrote:

I'm also not exactly sure what your primary concern is here - security or throughput?

Winston



My primary concern is throughput.
8 years ago
I have a question on Key management service (KMS). I was thinking of using KMS for encrypting data for real time transactions. My idea was to create a Customer Master Key once and then for every transaction request a data key from KMS to encrypt the pay load. But surprisingly there are limits to such request (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html). As my real time service will easily exceed 100 TPS, I cannot use KMS. Any idea how I can work around this limitation ?

Thanks,
8 years ago
Hello,
I have been imperative programmer for years. How do I transition to "think and program" like a functional programmer ? Some of the symbols and acronyms are new to me in the FP world. Is there a kick start guide in your book or you suggest any ideas ?

Thank you,
9 years ago
All,

Upon reading about the implementation options for RESTful services, there seems to be 2 choices standing out - Jersey or Spring 3.x (MVC based).

While my application infrastructure is already on Spring (using IoC et al) spring based RESTful implementation looks tempting but Jersey seems to be widely adopted and raved upon.

What are the key criteria should I consider for decision making ?

Thanks !
11 years ago
Hello Marcus,

Can you tell the difference between SAFe Agile and Kanban, if there is any. Which one is more effective ?

Thanks