Skip to main content

Posts

Phone Dump: 2018-04-10

Here is a list of things that I've been holding onto on my phone. I finally got around to reading them today and wanted to share:
Recent posts

Making a Move Forward

Today I made some commitments to present some "lightning-talks" on .NET topics for my local .NET user group. I may be giving some discussions on C# basics, HTML5 topics, LESS(CSS), and JavaScript. Like many others who are working in the presentation/evangelism circuit, I feel that this will help force me into showing off some talents that I do have and learning some things that I currently don't know. Follow the Evansville .NET User Group homepage for more details.

Java Problem: Generic Inheritance and Calling GetMethod().getReturnType()

In my current project, I have classes which are modeled like the following. At some point, a method like getReturnTypeForGetId() is called on classes A and B . Calling the method with A returns Integer as expected, but B returns Serializable . What am I missing here? Am I getting bitten by some heinous erasure thing, or am I just missing out on some sort of generic context-clobbering? EDIT: Adding an over-ridden getId() method to B fixes the problem, but I would still like to understand what I am running into. I've also asked this question on stackoverflow. import java.io.Serializable ; public class WeirdTester { static interface Identifiable & lt ; T extends Serializable > { T getId (); void setId ( final T id ); } static abstract class BaseEntity & lt ; T extends Serializable > implements Identifiable & lt ; T > { private T id ; public T getId () { return id ; }

Using MonoDevelop to Create an ASP.NET Web Service

NOTE : instructions below are for MonoDevelop 2.6 Beta 2 - built on 2011-04-06 03:37:58+0000 Getting Started Create a new ASP.NET Web Application in MonoDevelop: From the menu, select: File → New → Solution… Expand C# . Select ASP.NET → Web Application . Enter a name for the ASP.NET project that will be created in the solution in Name: . Change the root location for the solution in Location: , if desired. Change the name of the root solution in Solution Name: , if desired. The Results – I What you have after executing the new ASP.NET Web Application project wizard is a solution containing one ASP.NET Web Application project. In the default project view in MonoDevelop, you'll find the following items: Default.aspx – This is the default web form rendered and presented in the browser when http://<server>:<port>/ is accessed. Default.aspx.cs – This C# file contains the developer-created common code and event handlers which can be used to affect the process

Getting Started with .NET on the Mac

I'm setting out to learn .NET and get some experience creating a non-trivial project. Microsoft does provide Express (free, Windows-only) editions of the Visual Studio application in a few flavors as well as basic version of IIS with ASP.NET and SQL Server. But, since my current personal development environment is a MacBook Pro (OSX 10.6.7), getting started with development on .NET can actually cost money (mostly due to the Windows tax) . The primary development tool for .NET developers on non-Windows systems seems to be Mono with MonoDevelop . The latest stable release of Mono (2.10.1) supports much of the functionality of the .NET 4.0 platform and some portions of Microsoft's extended .NET eco-system: F#, IronRuby, IronPython, ASP.NET MVC(1, 2, and portions of 3) . The latest beta build of MonoDevelop (2.6 beta 2) provides a lot of support for developing applications using C# and the rest of the CLR. I'll be using these in the coming months to do some experimen