Skip to main content

Tools, tools, tools. And Lambda's

I like tools. I learning about them, learning to use them and simply discovering them.

So, my current topics of interest are an assortment of languages and a discipline. The discipline is "Functional programming" - that lead off to a couple of languages.

Lately, I have been learning Ruby. I like its pure "object-orientedness" and its conciseness and its ability to support functional programming - if you have the discipline. Lambda's intrigued me, but I felt that I wasn't getting the whole picture. Then I read about LINQ - a project based on my bread and butter language, C#. LINQ adds Language Integrated Query capabilities and set handling features, basically to C# itself. Well, how do they do this? OK, Lambda's. In C# 3.0. Well there's something I didn't know about, but I'm starting to see something important take shape.

From there I followed my nose and ended up looking at many neat things. I have tripped over a number of functional programming tools such as Haskell, OCaml and F#. Haskell looked good as presented in A Gentle Introduction to Haskell 98 - particularly since this tutorial gives a good feel for the functional programming model.

How'd I get to functional programming? I tripped over Lambdas in C# 3.0.

Of course, to whet one's whistle regarding functional programming see Introduction to Functional Programming, which is geared somewhat towards Python, but is not hampered by that. The examples are readily understandable and I could see them through to Ruby.

My head is spinning. It's great. Which way do I go? F# and a head first into FP. Oh wait, what about my continued explorations into Ruby and Rails? Oh, and then when do I get to C# 3.0....

Comments

Popular posts from this blog

Unit Testing - What to Test

This I wrote to answer a question that came up when we were discussing our software process and I was training developers on how to unit test. It seems a simple enough question, but I kept pondering it and delving deeper until I realized I needed to write this monograph. What unit tests should we write? How do we know what to test? Ideally, unit tests should cover every path through the code. It should be your chance to see every path through your code works as expected and as needed. If you are practicing Test Driven Development then it's implied everything gets a test. In the real world, you might not be allowed to test everything - for instance, if the testing suite ends up taking a week to run, then the world will have changed by the time it finishes and the test results will be obsolete. Unit testing at it's basic is testing an object, a method - the smallest unit of your code that it can test independently. It should test the inputs "goes into" an...

Risk Mitigations for Custom Applications

  In many healthcare applications, often due to the cloistered nature of the use cases – e.g. it will only be accessed by users authorized in a particular facility, such as an operating room suite – the needs for Authentication and Authorization are minimized when the system is designed and implemented. This presents a risk as soon as you allow for the possibility of users with ill-intent or that otherwise want to operate outside their given roles. Custom applications need to consider these possibilities and implement the following measure to ensure the integrity of the system. 1.   Authentication and Authorization Controls: Multi-Factor Authentication (MFA): Implement MFA for all user logins. This adds an extra layer of security beyond just a username and password. Role-Based Access Control (RBAC): Grant users access only to the data and functionalities they need for their specific role. This minimizes the potential for unauthorized access. Strong Password Policies: ...

You don't really know who you're talking to online...

The following is a story that I think highlights the assumptions that get you into trouble online... https://www.proofpoint.com/us/blog/threat-insight/i-knew-you-were-trouble-ta456-targets-defense-contractor-alluring-social-media This is particularly scary since we found so much utility in online connections during the pandemic and out of necessity, started trusting more online. Please note the timeline for this breach - it was a long, slow process, a key factor in many 'cons'. "Build trust" is a key first step, once someone has identified you as a party. You think...you're convinced you know who your talking to, but if you don't triangulate the identity with some non-online, ideally in-person information, you shouldn't trust. And even if you do get what seems like real-life confirmations of identity, you must look at questioning motives, needs, and keeping danger at arms-length. Online includes email, texting (sms), application chatbots, voice communicati...