[Console] New approach to improved console in C# (part 1)

I’m back after a looooong time. I’ve been working on several tools, mostly on my console libraries. And I think this is the time when I can start posting about how to use it. Now, when base library is in the state that looks and works as expected and is almost polished.

So, at first I would like to thank Michał Białecki for hist Blog Post, that finally encouraged me to write about my console implementation. Mainly because it’s a nice improvement to the stuff he is / was working on, secondly because I would like people to start using what I’ve created 😉

Then. To the point.

Github for Console libraries is located HERE, please note, that there are many more components (projects) in that repository that I’m NOT going to touch in this post and are in much less usage-ready form than – so called – Root package.
You can also find some Nuggets on Nuget.org, but they are a lot outdated – they come from previous, differently divided solution. I shall soon update them and here in the post.

Main points that this root project supports:

  • Support for 24bit colors (Windows 10).
  • Color schemes support (soon importing from files)
  • Automatic adjustment to closest color (this was the first feature I’ve implemented, way in 2016… A long before discovering colorfulconsole
  • Fullscreen support
  • Easy configuration of resolution
  • Multithreading support (will write about this later)
  • Buffered and non-buffered modes (comming soon)
  • Support for improved colorfullconsole syntax (soon, if someone does that 😉

Czytaj dalej [Console] New approach to improved console in C# (part 1)

Flaksator – Introduction to song generation details

Well, I’m afraid this is about time to stop procrastination. As one of fellow bloggers suggested (thanks Andrzej) I’m switching this series into English. There are at least few reasons: wider audience, more ways to promote my blog and most importantly – to share some nuances of Polish language with English speaking people that might be interested in.

Well, where to start…

Song structure

Every song has a title. And then body. Or not – if it is instrumental one. So, first decision is to randomize that case – let say giving an instrumental creation a 5% chance. The fun factor comes from sometimes ridiculous brain associations on how such stupid title can be realized by only instrumental performance. See few examples and try imagining those tracks:

ORGIASTYCZNI DOKTORZY - Orgiastic Doctors
NAJBARDZIEJ SPLUGAWIONY UPIÓR - The most defiled phantom
WYRACHOWANI RESTAURATORZY (KABŁĄKOWATY KONIEC MISIA) - Selfish (calculated) restaurateurs (baily end of teddy-bear)
SPODNIE W OKNIE BOKU KLEJU (NADCHODZI PRADZIAD) - Pants (trousers ;-)) in the window on the side of glue (Here it comes the great grandfather)

Titles being stored in separate file (Titles.txt) and are treated just as regular verse (will be discussed later). Sometimes titles are being decorated with extra parts from TitleEx.txt to increase fun factor even more 😉
Czytaj dalej Flaksator – Introduction to song generation details

Hello world!

To jest prawdziwy Hello World, godny strony o C# 🙂

// Hello1.cs
public class Hello1
{
   public static void Main()
   {
      System.Console.WriteLine("Hello, World!");
   }
}

Do diaska – tak na prawdę, to próbuję wyłącznie zmusić Syntax Highlighter do działania 🙁