I’ve been running Macintosh machines for quite some time as my primary development environment. Recently I’ve been having to spend a lot of my time running Windows for my work and I’m finding it a lot less painful than I thought I would. Windows 10 has vastly improved over Windows 8 (although the bar was set very low on that on).
The Windows Subsystem for Linux makes doing a lot of things that were tricky under Windows in the past much easier. There are a few applications like Omnigraffle that I miss and I’ve yet to find an email client that feels right, but the thing I’m missing the most is my own QueryThing application that I’ll release for MacOS one of these days. There are many database query tools available for Windows but none of them works quite the way I want to work.
Now all I have to do is rewrite QueryThing to be a cross platform tool and I’ll be happy wherever I have to code 😉
Today I spent quite a bit of time trying to get ASDF to find my local packages on my Windows development machine. It turns out that since ASDF 3.1.5 the place to put the config files has moved. Now the config file needs to be placed in
There’s a couple of hours of my life I’m never getting back 😉
I’ve been making some apps recently. One for the new Windows 8 modern UI and one for iOS using swift. One was a joy to code, the other was not 😉
Swift is an interesting language and I look forward to writing more code in it. C# is also a nice language, however writing code for “modern” Windows apps is much harder than it should be. This is mainly because many of the more useful parts of the .Net API just are available any more 🙁 No System.Data was the real problem for me and meant that I had to roll my own database access layer on top of a SQLite database. An app that should have taken a couple of days to whip up took a couple of weeks. Every time I thought I was getting somewhere I would hit yet another assembly or class that wasn’t available, or worked slightly differently to the “normal” way things should work.
Both apps are working now, so I’m happy 🙂
Since Parallels released the new version of their Mac virtualization software recently and it reportedly works under OS X Yosemite (10.10), I decided to give it a go. Converting my Linux VMs was a breeze, but converting my Windows 7 VM wasn’t as much fun. The Windows VM converted perfectly, Windows itself on the other hand decided it needed to re-authorize. Once I sorted all that mess out (another story for another time), I was able to get back to work.
So far I’m pleased with the performance of Parallels Desktop 10 for Mac. It seems to be running better than when I was using VMWare Fusion 6.0. I don’t have any solid numbers on this, but the fans in my Mac seem to not run as often under Parallels. Booting my main Linux VM is almost instantaneous, and my Windows 7 VM seems to be running really well 🙂
Really big nasty chunks! I guess I’ve been spoilt by working with rails, and to be fair it’s not really ASP.Net I don’t like, it’s ADO.Net. I mean really, who wants to write 12 lines of code to fill a grid with data from a database!
1. construct a new SqlConnection object
2. construct a new SqlCommand object
3. construct a new SqlParameter object
4. set the parameter name
5. set the parameter value
6. add the parameter to the select command
7. construct a new DataSource object
8. construct a new SqlDataAdapter object
9. fill the DataSource using the SqlDataAdapter
10. connect the DataSource property of the grid to the DataSource object constructed earlier
11. call the DataBind method of the grid to actually load the data
12. close the database connection
I guess it’s all supposed to be used via the GUI editing tools which should build a lot of that stuff for me automatically. I assume the GUI built data binding can handle parameters for the select.
Another feature of Rails that I’m missing in ASP.Net is partials. I’m using master pages to give me some of the things that I would have used a layout for in Rails, but there doesn’t seem to be anything quite like partials in ASP.Net 🙁 Fortunately for me it’s a simple application I have to build so there are only a couple of repeated sections of code.
Also, what’s up with not allowing the TextBox control to be bound to a DataSource? I’ve got better things to do with my time than to write a line of code for each TextBox on my form to fill it with data and another to then put that data back into a DataTable so I can have it saved to a database.
A word of advice to all ASP.Net developers who read this, don’t use Ruby on Rails. It will only make you realize how bad you’ve got it 😉
Well, yesterday the task bar and start menu on my Windows dev box decided to crash. I’ve got my explorer set up to open new explorer windows in their own process, so I didn’t loose my opened windows and so loose my place in svn (as well as cvs and darcs). Ordinarily when this happens I just restart explorer and up comes my start menu. Not this time however. I put up with no start bar for the rest of the day as I was busy doing things and didn’t want to mess up my flow. It was an interesting experience. Everything seems to work quite happily without the task bar, however maximizing my windows didn’t use the area at the bottom of the screen reserved for the start menu. I started to find the empty space at the bottom of the screen quite distracting.
This morning after taking my daughter for a swim at the local pool I decided that I’d had enough. I did a bit of research on the net to see if there were some magical command line arguments needed to pass to get my task bar back. I suppose I could have just rebooted the machine, but I was trying to avoid that as much as possible. Finally I thought to myself, “Everything is checked in to their various repositories, so I might as well close down all my explorer windows and see what happens when I start explorer.exe”. I did this and hey presto up came my task bar 🙂 It looks like if explorer starts and it doesn’t see any instances of itself running then it becomes the start bar and desk top.
The more I use windows the more I miss my mac. I really need to get an intel mac so I can run ‘doze in a vm for those rare occasions I need to do something in Visual Studio .Net or some other windows only program.