Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Russian Programmers Part 2

Name: Anonymous 2018-09-04 9:53

Continuing the theme of ingenious Russian programmers, we have an exhibit directly on LJR:
http://lj.rossia.org/users/hex_laden/406941.html

string CheckSpecDiaps (string IP)
{
int uip = IPConverter.IPToInt32 (IP);

for (int i = 0; i <SpecList.GetLength (0); i ++)
{
int start = IPConverter.IPToInt32 (SpecList [i, 0]);
int end = IPConverter.IPToInt32 (SpecList [i, 1]);
string desr = SpecList [i, 2];

if (uip> = start && uip <= end)
{
return desr;
}
}

return string.Empty;
}[/code]


For non-programmers, I'll explain: the Russian fool takes a set of intervals a0:b0, a1:b1 ... aN:bN and stupidly checks each of them for entering the number X. Making this a stupid search is the most inefficient algorithm, although in practice In its task, there may be thousands and millions of intervals. There is a lack of knowledge of the simplest data structures (in this case a binary tree) and the basics of mathematics. Worse, the idiots boasts of his unprofessionalism and the deficiency of the solution, apparently so that the client knows what he is buying and that the server will hang during production.

Indeed, all top companies dream of recruiting Russian programmers, but they continue to patriotically plow vodka fields for copecks at their native sharaga. Although there are isolated cases of traitors, one Russian programmer himself volunteered to promote the pindos science:
https://interestingengineering.com/russian-programmer-volunteers-first-human-head-transplant-next-year

TLDR: a request under a plausible pretext to give a link to this post in any western reddit and hackernews (such as Russian Programming Genius Strikes Back). It is necessary to PR Russian "smarty".

Name: Anonymous 2018-09-12 16:44

>>92
I'm doing shoplifting and panhandling.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List