![]() |
[QUOTE=retina;265700]One thing to note is that [I]int[/I] is easier to type than [I]unsigned[/I]. Therein lies the problem, lazy programmers using ints for everything, even in situations when unsigned was the proper choice. How many times have we seen array index variables being declared as ints?[/QUOTE]... and that's just when the coding is in a high-level language rather than assembler. :smile:
|
[QUOTE=retina;265700]One thing to note is that [i]int[/i] is easier to type than [i]unsigned[/i]. Therein lies the problem, lazy programmers using ints for everything, even in situations when unsigned was the proper choice. How many times have we seen array index variables being declared as ints?[/QUOTE]
Do we have an uncomputable number here???? :smile: |
[QUOTE=retina;265700] How many times have we seen array index variables being declared as ints?[/QUOTE]
Whenever I need to do this: [CODE] for (i = x; i >= 0; i--) { some stuff; } [/CODE] :smile: |
[QUOTE=bsquared;265704]Whenever I need to do this:
[CODE] for (i = x; i >= 0; i--) { some stuff; } [/CODE][/QUOTE]With this instead you don't limit yourself to 2GB of memory.[CODE] for (j = x + 1; j > 0; j--) { i = j - 1; some stuff; } [/CODE] |
[QUOTE=retina;265706]With this instead you don't limit yourself to 2GB of memory.[CODE]
for (j = x + 1; j > 0; j--) { i = j - 1; some stuff; } [/CODE][/QUOTE] What made things really tough for me was going from Complex Variables class where i was sqrt(-1) to circuits class where j was sqrt(-1) since we used i for current, then to programming class where we had for(i = 0; ...) and for(j = 1;...) |
[quote]
[I]But... You made a claim that you were one of the first 100 employees of Goggle.[/I] [I]Might you be lying?[/I][/quote] [QUOTE=LiquidNitrogen;265560] [I]I can tell you what it used to say at [URL="http://www.7427466391.com/"]www.7427466391.com[/URL][/I] [B]Congratulations. You've made it to level 2. Go to [URL="http://www.Linux.org"]www.Linux.org[/URL] and enter Bobsyouruncle as the login and the answer to this equation as the password.[/B] [B]f(1)= 7182818284 [/B] [B]f(2)= 8182845904 [/B] [B]f(3)= 8747135266 [/B] [B]f(4)= 7427466391 [/B] [B]f(5)= __________ [/B] This particular conversation is over. I know who I am and who I worked for and what my stock portfolio is worth today. And I don't have to answer to the likes of people such as yourself.[/QUOTE] That doesn't prove much. Visit [URL]http://aleembawany.com/2004/07/20/google-billboard-puzzle-the-lazy-way/[/URL] and you'll get: [quote] On this page you’ll find the following: “Congratulations. You’ve made it to level 2. Go to [URL="http://www.Linux.org"]www.Linux.org[/URL] and enter Bobsyouruncle as the login and the answer to this equation as the password.” f(1)= 7182818284 f(2)= 8182845904 f(3)= 8747135266 f(4)= 7427466391 f(5)= __________ ... 5966290435, is the password to the login [I]bobsyouruncle[/I] for [URL="http://www.linux.org/"][COLOR=#0000dd]linux.org[/COLOR][/URL]. This will eventually land you at the [URL="http://www.google.com/labjobs/index.html"][COLOR=#0000dd]Google Labs[/COLOR][/URL] page from where you can send your resume directly to [EMAIL="problem-solver@google.com"][COLOR=#0000dd]problem-solver@google.com[/COLOR][/EMAIL] "[/quote] Want to dig further? After you type in the login and password, you'll see: [quote] [FONT=Arial][COLOR=#222222]Congratulations. [/COLOR][/FONT] Nice work. Well done. Mazel tov. You've made it to Google Labs and we're glad you're here. One thing we learned while building Google is that it's easier to find what you're looking for if it comes looking for you. What we're looking for are the best engineers in the world. And here you are. As you can imagine, we get many, many resumes every day, so we developed this little process to increase the signal to noise ratio. We apologize for taking so much of your time just to ask you to consider working with us. We hope you'll feel it was worthwhile when you look at some of the interesting projects we're developing right now. You'll find links to more information about our efforts below, but before you get immersed in machine learning and genetic algorithms, please send your resume to us at ********@google.com. We're tackling a lot of engineering challenges that may not actually be solvable. If they are, they'll change a lot of things. If they're not, well, it will be fun to try anyway. We could use your big, magnificent brain to help us find out. [/quote] Source: [URL]http://www.webmasterworld.com/forum86/313.htm[/URL] |
[QUOTE=retina;265706]With this instead you don't limit yourself to 2GB of memory.[CODE]
for (j = x + 1; j > 0; j--) { i = j - 1; some stuff; } [/CODE][/QUOTE] Ah, yes, but you forget that I'm a lazy programmer :wink:. Why would I want to type extra characters and complicate my logic just so I can type 'unsigned' (more characters) instead of 'int'? |
[QUOTE=bsquared;265722]Why would I want to type extra characters and complicate my logic just so I can type 'unsigned' (more characters) instead of 'int'?[/QUOTE]A fair question indeed. And I have no good answer. Let's just hope that 64 bit will solve everything for us lazy programmers. And if 64 bit isn't enough then hurry up Intel/AMD and roll out the 128 bit GPRs please. :rolleyes:
|
There is a reason that many of my programs begin
[code] typedef unsigned int u32; typedef unsigned long long u64; [/code] to give these types names of a shortness corresponding to their utility. From time to time I express mild vexation at g++ -Wall, which enforces that I write monstrosities like [code] for (size_t u=0; u<weebles.size(); u++) { if (is_cromulent(weebles[u])) cromulent_indices.push_back(u); } [/code] |
[QUOTE=Oddball;265719]That doesn't prove much. Visit [URL]http://aleembawany.com/2004/07/20/google-billboard-puzzle-the-lazy-way/[/URL]
and you'll get: Want to dig further? After you type in the login and password, you'll see: Source: [URL]http://www.webmasterworld.com/forum86/313.htm[/URL][/QUOTE] Yes but how many people know that 5966290435 were the next 10 consecutive digits in e that happened to sum to 49, just like the other 4 "functions" above it? Like I said, I'm done with this topic, and I don't care what people think if I haven't met them, they live far away, and they show so much ignorance that they are telling me I have not done something that I have done. |
[QUOTE=LiquidNitrogen;265728]... I don't care what people think ...[/QUOTE]If that is true then why did you make the claim in the first place? Better to be like everyone else here and just pretend to be a nobody, then you will get more respect.
On the Internet no one knows if you are a dog. |
| All times are UTC. The time now is 22:47. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.