Published in ITNEXT·Jun 6, 2019Telegram bot in Go: chartsIt’s been a long time since I wrote about the bot I’m building. Life happened. A lot of it. Now, when things are settling down, I might have again the time and the energy to program the bot some more and write about it in the process. Last time the…Programming4 min readProgramming4 min read
Apr 17, 2019Don’t make me hack your softwareI got a new corporate VPN tool the other day. It’s called Pulse Secure. It worked fine, thank you very much, no complains there. But then I tried to quitProgramming3 min readProgramming3 min read
Published in ITNEXT·Apr 9, 2019Telegram bot in Go: speak robotLast time I taught my bot to speak human. This time I’m gonna teach it to speak robot. I’m going to add a few bot commands. In Telegram the bots receive text exactly as you send it. By convention though, when the first word starts with a backslash (/) it's…Programming4 min readProgramming4 min read
Published in ITNEXT·Apr 4, 2019Telegram bot in Go: speak humanLast time I was bulletproofing my SQLite access foundation. Let’s see if it holds in production. Too bad I’m never gonna get that high load that is supposed to break things. Oh well, let’s wait and see. …Programming3 min readProgramming3 min read
Published in ITNEXT·Apr 1, 2019Telegram bot in Go: concurrent SQLiteLast time I added SQLite to my bot and at the same time I moved the request processing into a goroutine. Which means I introduced concurrent database access to my codebase. Normally one should think, then do. Though not ideal, it’s also possible to do it the other way around…Programming4 min readProgramming4 min read
Mar 29, 2019Telegram bot in Go: databaseToday I’m gonna add a database to my bot. As I mentioned in the previous post, I’m going to use SQLite to keep it simple and because the management turned down my budget request for Oracle on this project. I quickly shopped around for an SQLite package for Go and…Programming2 min readProgramming2 min read
Mar 28, 2019Telegram bot in GoThis is my fourth or fifth attempt to like Go. Kinda didn’t work all the previous times. I blame myself, though. I believe I chose Go for the wrong types of projects. This time it’s what’s it was made to do. It’s a backend application, it’s deployed to a remote…Programming3 min readProgramming3 min read
Mar 26, 2019NUnit to xUnit automatic test conversion: source code transformationIn the previous post I wrote about how I find the patterns in the code that I would like to refactor using simple C# syntax. Basically, I write the exact expression I would like to find with some wildcards that match the varying parts and the rest is matched as…Programming4 min readProgramming4 min read
Mar 18, 2019NUnit to xUnit automatic test conversion: pattern matchIn the previous post I described how to use the Roslyn API to find code patterns in the C# AST and how to change the AST to rewrite the original code to something else. The goal was to automate the conversion of NUnit tests to xUnit. The approach I used…Programming3 min readProgramming3 min read
Mar 12, 2019NUnit to xUnit automatic test conversionI’m currently working on a major refactoring of a C# library which has many NUnit tests. I decided, without having any good reason, it would be a good idea to migrate them to xUnit. I did a few by hand and it turns out to be tedious. Like really tedious…Csharp6 min readCsharp6 min read