|
I've been looking at that video a couple of times now, and I don't believe they're telling the whole truth.
The rocket arrives at a fairly high lateral speed from seven o'clock, overshoots, overcompensates and topples over.
Maybe because of lack of hydraulic fluid as they claim, but I believe it might be simpler than that. They missed.
|
|
|
|
|
They ran out of hydraulic fluid while they were descending, which caused vehicle control to fail. It's rather amazing how close they came.
Think of it as writing 10,000 lines of code and getting only one compile error on your first build.
Software Zen: delete this;
|
|
|
|
|
Ran out of fluid.
That's the part I'm having a problem with.
All hydraulic systems I know about are closed systems, such as the brakes for a car, or the hydraulic pistons on an excavator.
If your car runs out of brake fluid you don't bring 50% more next time, as has been claimed, you fix the leak.
|
|
|
|
|
In worst case when I had to make a work around for third party libraries I did the following:
#define private public
No it is not dirty it is simply pragmatic
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Take it to "Weird and wonderful".
P.S. -- "Dirty" would be defining it on the command line, in a batch file, or in a make file.
|
|
|
|
|
Do you work for the government?
|
|
|
|
|
No not for government, for NSA
Ok in real it was #define private NSA
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Bruno Sprecher wrote: No it is not dirty it is simply pragmatic
Or is it creative programming?
Nah it's dirty!
New version: WinHeist Version 2.1.0
My goal in life is to have a psychiatric disorder named after me.
I'm currently unsupervised, I know it freaks me out too but the possibilities are endless.
|
|
|
|
|
Sales man says: It's creative
Programmer says: Nah it's dirty!
Me: pull the head / neck from the noose
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
#ifdef NDEBUG
static
#endif
int _counter;
When the freakin' debugger doesn't allow you to see file scoped symbols.
|
|
|
|
|
This one I planed for tomorrow for Lounge *grrr*
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Dirty is the normal way in C.
If there's any other way, please explain.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Here's some of my C goodness from the late 90s:
# ifdef __OVERRIDE__
# ifdef strlen
# undef strlen
# endif
# define strchr(str,ch) str_chr ( str , ch , CASE_SENSITIVE , NULL , NULL )
# define strcat(str1,str2) str_ncat ( str1 , str2 , 0 )
# define strcmp(str1,str2) str_ncmp ( str1 , str2 , 0 , CASE_SENSITIVE )
# define strlen(str) str_len ( str )
# define strncat(str1,str2,n) str_ncat ( str1 , str2 , n )
# define strncmp(str1,str2,n) str_ncmp ( str1 , str2 , n , CASE_SENSITIVE )
# define strrchr(str,ch) str_rchr ( str , ch , CASE_SENSITIVE , NULL , NULL )
# define strstr(str1,str2) str_str ( str1 , str2 , CASE_SENSITIVE , NULL , NULL )
# endif
|
|
|
|
|
Oh yes something like this I also remember
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Today I had to call a function taking two int pointer arguments for returning some stuff. But I wasn't interested in those returned values (I tried with 2 nullptrs but fail) so:
int result = peskyFunction(new int,new int);
|
|
|
|
|
Won't those two int's leak?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Absolutely (100% incontinence) but:
1) it was some demo PoC
2) that function is initialization stuff so it will only leak once (or rather twice )
|
|
|
|
|
I'm almost certain everyone here is dirty. This is all that it takes:
(void*)pValue
It's even more exciting (meaning dirty) coming out the other end...
|
|
|
|
|
I think most programmers aren't to keen on personal hygiene
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
Concerning "personal code hygiene" I have other experience. I was always the "only" one who was prepared to do such dirty "fixes"
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Wow, where I come from people don't even recognize dirty
Unfortunately, in software development, dirty is often a synonym for practical
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
Quick, not practical.
Reusable is practical.
|
|
|
|
|
Jörgen Andersson wrote: Reusable is practical. One word: YAGNI... Or is that five words?
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
Here's another dirty trick:
objects that are only created at program start up don't need to be deleted (because all memory is freed after application close)
Don't cringe - we are talking about dirt after all!
|
|
|
|
|
Thank you for this!
I think next discussion I will start is "program dirty to me", but I think than I have to move to soapbox
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|