Details
-
SkillsC, COBOL, Oracle Pro*C, Lua
-
LocationKiev
-
Github
Joined devRant on 4/10/2019
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
i had a 2-day, sat & sun, coding contest on codingame, but after coding for 24h my mother called me and said that her brother (and my uncle) died from alcoholic addiction
i did not commit my solution on that contest and now, for already five years, i'm afraid of participating in any similar contests2 -
ioctl with FIONREAD as request
it returns size of bytes ready to read, but to store that size it requires pointer to int passed in va_args
when i want to malloc a memory using that size i need variable of type size_t which is 8 bytes on 64-bit system
why do this types mismatch? if ioctl returns size with FIONREAD request it should accept pointer to size_t variable in va_args -
!dev
In 1964 t the news conference the Beatles were informed that a "stamp out the Beatles" movement is under way in Detroit.
They answered that they are going to start a campaign to stamp out Detroit.
Look at Detroit now - they won. -
program, which should save report from db to file, running a couple of minutes:
1) despite prefetch precompiler option no fetch was prefetched, because for every next line fetch cursor was reopened with condition WHERE some_val > prev_val
2) allocated array of host variables to fetch 100 rows per call to db client api
program is running under 3 seconds now -
> You have found an even better place to make the code changes than I had indicated in the FR. Well done!4
-
in vb.net i can declare a void function:
Declare Function some_func& Lib "some_lib.dll" ()
then try to assign its return value to a variable:
some_return = some_func()
and get no errors during compilation, not even a warning
but in runtime it produces integer arithmetic overflow exception
in what way it is not even a warning?4 -
visual basic dotnet
ComboBox and ListBox both have Items property, and also both are descendants from ListControls
but ListControls have no Items property
do those developers understand object oriented programming correctly?1 -
programming:
cc hello_world.c -o hello world
object-oriented programming:
cc -c hello_world.c -o hello_world.o
cc hello_world.o -o hello world
some weird shit:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}4 -
https://codingame.com/leaderboards/...
i got 409th place from 2347 participants total, 12th place from my country and 4th place in selected language (pascal)1 -
I have a dream that someone will write completely free linux driver for AMD videocards
and for Nvidia too
and fixes OpenGL7 -
Frédéric Raynal: french programmer who coded videogame Popcorn in 1988. He is still supporting this game, also released android version and versions for iOS and Windows.1
-
void intDatetostr(char *strDate, int intDate) {
if (intDate == 0) {
sprintf(strDate, "%09ld", intDate);
} else {
sprintf(strDate, "%-09ld", intDate);
}
}2 -
1) receive functional requirements
2) create functional specification, post it on forum (no jira)
3) create memo document, post it on forum (no jira)
4) create analysis document with actual code changes without seeing the code (wait for step 8), post it on forum (no jira)
5) receive review on analysis document, fix it and post (no jira, redmine etc from now till the end of rant)
6) after analysis is approved make a checkout request
7) source code manager checkouts files from svn and posts them on forum along with the files list
8) you make actual changes to the code, post changed sources on forum
9) source code manager makes a review to check that amendment commet is present in source code and is properly tagged, and every line of code chnged is properly tagged (you are not allowed to delete anything, not even one space, you need to comment it (and put an appropriate tag))
10) after you passed review you fill in standard compilation request form
11) you code is compiled and elf is put on testing stand
12) you fill in "actual behaviour" and "expected behaviour" columns near description of changed function in template of unit test plan document (yeah we have unit testing) and post it on forum
13) if testing ok changed sources and compiled elfs along with its versions (cksum) commited to svn (not by you, there is a source code manager for that)
14) if someone developed function in same source file as you "commited" he is warned by source code manager and fills checkout request form again
15) ...2