Hot answers tagged

2

Opinion: there is no benefit to building an array like this. I agree it is a clunky use of arrays which I think is unnecessary (and old-school). For instance you don't even need to know in advance how many records, nor do you need to dimension the array to a predetermined size. There are more flexible data types available than arrays for the job. When adding ...


1

I can answer my question myself today. I let Visual Studio's own performance profiler work, and it found that most of the clock cycles (93%) are used for DrawLine. So, I was looking for a library that was faster. First, I found OpenTK, but had to find out that it is not NET compatible. Then I came across SkiaSharp. After a familiarization phase, I realized ...


1

Sometimes you are in the need for a lot of variables. The best way to make your code not confusing for others is to name the variables meaningful and easy to distinguish. For example the variables Dim positionOfPlayerRotating As String Dim rotationOfPlayerRotating As String are difficult to distinguish. That beeing said, there would be another possibility, ...


1

You don't need to use Regex for this, and your regex doesn't cover most of cases anyway. You can simply splitting the input and try parse them into decimals. If they contains any invalid inputs then return three spaces (" ") otherwise print it in "00.000/00.000" format. Function StringFormatting(input As String) As String Dim parts = ...


Only top voted, non community-wiki answers of a minimum length are eligible