I noticed a pattern that they really like string manipulation - using magic strings, concatenating HTML as strings in ASP Classic, concatenating SQL...
Sasa Cetkovic
Posts
-
GetAssemblyVersion, VB style -
GetAssemblyVersion, VB styleIt would be almost the same in C#. He could have already gotten everything at Assembly.GetExecutingAssembly().GetName().Version, but he continued to get a string and split it, as any VB6 programmer would prefer. And then, in the next line, he joined the strings with the same character on which he split them, meaning he already had the same result on ToString().
-
GetAssemblyVersion, VB stylePublic Shared Function GetAssemblyVersion() As String
Dim version() As String = Assembly.GetExecutingAssembly().GetName().Version.ToString().Split("."c)
Return version(0) & "." & version(1) & "." & version(2) & "." & version(3)
End FunctionDijkstra was right...
-
"I understand that you guys recently got new credit card readers..."Teachers who say such things don't really understand linguistics. It cannot be poor grammar if it's 100% correct. And, languages evolve, words get new meanings - a guy may be a man, but guys are a bunch of people of any gender.
-
blind micro optimisationPerformance is not the main reason to avoid multiple enumeration. Depending on the origin of the source, the collection may be changed between any two enumerations, so the result will be a bug that is extremely hard to reproduce.
-
What do you do in the witching hour? Anyone else have this issue?Drugs are your friend
-
has anybody hired developers from this site?There is a chance, but the rates are significantly lower than in the US.
-
Proper Science Fiction FilmsQuote:
Isaac Asimov's Foundation series would make a great TV series.
It will be available soon on Apple TV+
-
Updated VS2019 - why exaclty do I need to reboot?I haven't used Unix derivatives for a few years (except MacOS and WSL), but I remember they needed to reboot as often as Windows if you install or update stuff.
-
Both Weird & Wonderful - a W10 SurpriseHow it is supposed to look?
-
It's not often I find a truly interesting blog post on C#...Who reads the entire documentation?
-
Ergonomic Keyboards anyone?I bought Microsoft Sculpt Ergonomic Desktop a few months ago, I'm very pleased with the shape and feel. Awesome material quality too.
-
Best replacement for Silverlight?I would recommend Xamarin Forms. XAML is still relevant, no need to throw it away. Introducing XAML Standard and .NET Standard 2.0 - Building Apps for WindowsBuilding Apps for Windows[^]
-
Building iOS using Xamarin in Visual StudioXamarin gives you native app performance, unlike JavaScript crap.
-
Anyone using a serious multimonitor setup? Eyefinity?I'm using two 24" Samsungs (1920×1200 ;P ) and, a few weeks ago, I've found an excellent software when I wanted to extend my taskbar to the second monitor: http://www.actualtools.com/multiplemonitors/ It's a bit pricey, I'm still on the trial version. But it's a much better solution than Eyefinity. AND you do't need an AMD card with their crappy drivers.
-
The future of felt-tip markers?This is a good idea, but the guy has no idea about colors. You cannot print in RGB.
-
So I gave a dev a choice yesterdayI think that you can do everything that can be done in VBA (and more) using Visual Studio. I'm not talking about over-engineering, but simply writing Office pluggins using VSTO.
-
BUG in Windows Calc [modified]On Windows Server 2008 R2 it gives the first answer in scientific mode, and the second in standard mode.
-
Best C# book for ReferenceYou can hardly find any book that will cover almost everything. MSDN Library is the best place to start.
-
#include or including filesThe only thing you can do is put all your variables in a public static class and put that class inside your project's namespace. You can then access them with className.variableName. If you declare them as public also, of course.