16
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: April 08, 2017, 09:42:31 am »
as long as you already know how to code, it shouldn't be too hard to make an android app for that.
March 6, 2024: Dwarf Fortress 50.12 has been released.
News: February 3, 2024: The February '24 Report is up.
News: February 4, 2021: Dwarf Fortress Talk #28 has been posted.
News: November 21, 2018: A new Threetoe story has been posted.
Forum Guidelines
char *first_word(char *str){
char *m;
int s,l,i;
for(s=0;str[s]==' '; s++);
for(length = 0; str[s+l]!=' '&&str[s+l]!='\0'; l++);
m = malloc((l+1)*sizeof(char));
for (i=0; i<l; i++)
m[i] = str[s+i];
m[l] = '\0';
return m;
}
I like to cheat by appending a + to the function to coerce it to a number.I'm more worried that sometimes the code will decide to return some completely different type to the one you're normally getting. When the return value is based on external data (e.g. user input) that's also a security risk.All the "Indeed!"
So the main criticisms are that it's slow, it's bulky, it's insecure, and it's fairly random. You have to take extra measures to be sure that the type you're getting is the one you want, e.g. wrapping JavaScript function calls that have to return a number in ParseInt(), which fairly much defeats the purpose of having dynamic types.
using a VNI is a no brainer and its boring. back then people used to rat with a BS or even a BC for that regard. that's why i want to get an armageddon/dominix.
just warp to the site. send the drones and tank the damage. and stay aligned....
yeah and alpha clone can have acces to the VNI, but im not wasting time rolling a new clone for that when i can crawl again to omega with my main character.