jrcalzada

Stories submitted by jrcalzada

WPF Dispatcher Decorator in IronPython(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 2 years, 10 months ago

If you have some experience with WPF, you may know that only the UI thread can make modifications to the UI and that if you want to make changes from another thread, then you need to use a Dispatcher object to which you pass a delegate containing the code to execute. This code will, eventually, execute in the UI thread. There are no surprises when doing this from IronPython, fortunately, but I thought it would be nice to have a way to take care of this issue without adding unnecessary code to my methods. That’s where decorators come in. read more...

add a comment |category: |Views: 39

tags: another

Memoization… And an example in IronPython(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 2 years, 10 months ago

Memoization is one of those programming techniques that makes an awful lot of sense in theory yet I almost never see in practice. For those not familiar with the term, memoization refers to maintaining a store of function results so that when a function is invoked several times with the same arguments the result can just be retrieved from the store instead of being computed every single time. read more...

add a comment |category: |Views: 8

tags: another

Haar Wavelets Implementation in C#(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 2 years, 10 months ago

Implementation of the Haar Wavelets in C# with support to directly apply a multi-level transform and inverse transform or to get, independently, the trend and fluctuation sub-signals. read more...

add a comment |category: |Views: 318

tags: another

The Duality of Software Engineering(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 2 years, 11 months ago

A reflection on the different segments of the software industry, how each of them view the role of the developer, and what role education plays nowadays in the forming of future software engineers. "That is precisely where we encounter a weird duality in software engineering: On one side, we’ve got consulting firms that employ the highest amounts of developers playing them down and relegating them to the status of grunts; on the other, we have software companies that seek out great developers and are willing to pay and treat them right." read more...

add a comment |category: |Views: 5

tags: another

Generic Graph Implementation in C#(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 2 years, 11 months ago

Lately I’ve been doing a bit of work on graphs, mostly because I was going over some of the algorithms I implemented on an Artificial Intelligence framework a while ago. Since I needed a generic graph class to use across different domain and algorithms I decided to implement a simple one that would offer the features I needed. I’m using three different classes: one for the nodes, one for the edges, and one for the graph itself. read more...

add a comment |category: |Views: 101

tags: another

A Programming Adventure: Extreme Generic Programming in C#(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 3 years ago

An attempt to implement an extremely generic Graph data structure using parametric polymorphism with generics. The story covers the problem that gave rise to the solution and the downsides of the proposed implementation. read more...

add a comment |category: |Views: 58

tags: another

On the A* Search Algorithm(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 3 years, 1 month ago

I recently made a post about two generic delegates introduced in version 3.5 of the .NET Framework. As an example, I mentioned an implementation of the A* search algorithm. For those not familiar with the algorithm, A* (pronounce A Star) is one, if not the, most popular search algorithms in artificial intelligence. Generally, the algorithm visits nodes in a graph, taking certain aspects into consideration, until it finds a node that meets a specific goal condition or until there are no more nodes left. The algorithm is, usually, optimal and complete, which means it will always find the least expensive solution. This, however, can change depending on certain factors I will get into later on in the post. read more...

add a comment |category: |Views: 10

tags: another

Generic Delegates in .NET 3.5(raine-tech.com)

submitted by jrcalzadajrcalzada(70) 3 years, 1 month ago

A nice explanation of the Action and Func delegates introduced in version 3.5 of the .NET Framework. read more...

add a comment |category: |Views: 25

tags: another