The Big Programming Thread - Page 3
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
cocosoft
Sweden1068 Posts
| ||
Manit0u
Poland17181 Posts
+ Show Spoiler + #include <stdio.h> main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13? main(2,_+1,"%s %d %d\n"): 9:16:t<0?t<-72?main(_,t, "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#\ ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \ q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n' ){)#}w' ){){nl]'/+#n';d}rw' i;# \ ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{; [{nl]'/w#q#n'wk nw' \ iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ' ) }+}{rl#'{n' ' )# \ }'+}##(!!/") :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/' )+t,_,a+1) :0<t?main(2,2,"%s"): *a=='/'||main(0,main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);} Isn't this beautiful? | ||
Cambium
United States16368 Posts
That's like the TL of programming... kind of | ||
![]()
tofucake
Hyrule18967 Posts
On July 09 2010 04:16 Manit0u wrote: Stop scaring people away from C.No one ever does C any more? (not counting Objective C, C++ or C# here) + Show Spoiler + #include main(t,_,a)char *a;{return!0 main(2,_+1,"%s %d %d\n"): 9:16:t<0?t<-72?main(_,t, "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#\ ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \ q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n' ){)#}w' ){){nl]'/+#n';d}rw' i;# \ ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{; [{nl]'/w#q#n'wk nw' \ iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ' ) }+}{rl#'{n' ' )# \ }'+}##(!!/") :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/' )+t,_,a+1) :0 Isn't this beautiful? Notice: Above code is not indicative of standard C coding practices, and is, in fact, one of the hallmark signs of a completely insane programmer. | ||
Craton
United States17232 Posts
On July 08 2010 02:00 fusionsdf wrote: Most Jobs iirc want c++ or java anyways. But feel free to study along the spectrum. I've worked in/studied C (+ Assembly on an old 68000), C++, Java, PHP, Javascript, haskell and prolog. Currently I'm studying haskell (almost no companies use it) and embedded C (interested in AI, not embedded stuff) as well as of course AI. You know, I've heard that a lot, but I keep coming across jobs that use are using C# or VB.net, but I guess that's because its all web-based? My current internship (at a government contractor) does nearly everything in C# (there's ofc the occasional scripting languages, but I don't know of any other programming language being used) and then a friend who was pitching working at the Census Bureau said they do nearly everything in VB.net. people shouldn't come here to get homework (or job work!) done for them aw awwww | ||
DeathByMonkeys
United States742 Posts
C++ http://www.cplusplus.com/ http://www.cppreference.com/wiki/start http://www.cprogramming.com/ General http://stackoverflow.com/ Algorithms (kind of) http://projecteuler.net/index.php?section=about As you can see, I do mostly C++ | ||
Manit0u
Poland17181 Posts
On July 09 2010 07:29 tofucake wrote: Stop scaring people away from C. Notice: Above code is not indicative of standard C coding practices, and is, in fact, one of the hallmark signs of a completely insane programmer. Of course it's not standard. But it's perfectly valid and the guy who made it won the international C code obfuscation contest. And some companies even demand code obfuscation at times. http://en.wikipedia.org/wiki/Obfuscated_code I don't think he's insane (although, people who reverse-engineer such code might be). | ||
![]()
tofucake
Hyrule18967 Posts
On July 09 2010 08:17 Manit0u wrote: Of course it's not standard. But it's perfectly valid and the guy who made it won the international C code obfuscation contest. And some companies even demand code obfuscation at times. http://en.wikipedia.org/wiki/Obfuscated_code I don't think he's insane (although, people who reverse-engineer such code might be). Insane I say! Anyway, while it is true that SOME companies require obfuscated code....that's still a bit overkill. | ||
heishe
Germany2284 Posts
On July 09 2010 04:16 Manit0u wrote: No one ever does C any more? (not counting Objective C, C++ or C# here) + Show Spoiler + #include <stdio.h> main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13? main(2,_+1,"%s %d %d\n"): 9:16:t<0?t<-72?main(_,t, "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#\ ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \ q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n' ){)#}w' ){){nl]'/+#n';d}rw' i;# \ ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{; [{nl]'/w#q#n'wk nw' \ iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ' ) }+}{rl#'{n' ' )# \ }'+}##(!!/") :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/' )+t,_,a+1) :0<t?main(2,2,"%s"): *a=='/'||main(0,main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);} Isn't this beautiful? premature optimization imo | ||
GarlandGreen
9 Posts
Ive gone through a few lectures, and I'm feeling I learn quite a lot. However, remember to do a few of the hand-ins, otherwise the pace of the learning seems really steep. Here's a link to a course I've found particulary useful: 6.00 Intruduction to Computer Science and Programming Mind, they use Python, even if it's not your chosen language, I'd still recommend it. As I understand, learning a new language-syntax is quite easy once you know the mechanics and principles behind another one. Also, the actual syntax doesn't seem to be the main bulk of the course, but they tend to focus more about the principles behind general programming. | ||
fusionsdf
Canada15390 Posts
This thread has potential. I'd be willing to answer general or theoretical questions, although people shouldn't come here to get homework (or job work!) done for them. There are plenty of programming community sites that can help people debug their code, and this thread would get very ugly very quickly if we tried. agree. I think small code samples/riddles etc are fine, but if you want help debugging something, make a blog, or ask a teacher/workmate. TL should not be your first resource for help when there are so many sites dedicated to specific languages and specific algorithms/problems in that language. | ||
sluggaslamoo
Australia4494 Posts
![]() http://projecteuler.net/ | ||
SteveStyle
United States27 Posts
On July 09 2010 16:27 GarlandGreen wrote: I was planning to start on a computer-science degree this fall. I figured I'd try to prepare alittle, so I did some research. I found that MIT and Stanford U is providing something they call open courseware. Which basicly is lectures and hand-ins openly avaible on the web. Ive gone through a few lectures, and I'm feeling I learn quite a lot. However, remember to do a few of the hand-ins, otherwise the pace of the learning seems really steep. Here's a link to a course I've found particulary useful: 6.00 Intruduction to Computer Science and Programming Mind, they use Python, even if it's not your chosen language, I'd still recommend it. As I understand, learning a new language-syntax is quite easy once you know the mechanics and principles behind another one. Also, the actual syntax doesn't seem to be the main bulk of the course, but they tend to focus more about the principles behind general programming. Wow, thanks for showing this, this is amazing! Can anyone who is experienced in computer science take a look there and see which courses would be the most important to learn? There's a lot of electrical engineering mixed in with the computer science classes and I'm curious to see what an almost professional/professional thinks are some of the most important classes to check out! | ||
Qzy
Denmark1121 Posts
I'm at level 2 (solved 60) ![]() I can recommend project euler for EVERYONE who loves programming and math. | ||
![]()
zatic
Zurich15310 Posts
Try to find something annoying and repetitive in your everyday computer life and try to write a Python program that takes care of it. Here are some starters that will get you into Python programming within hours: http://hetland.org/writing/instant-hacking.html http://hetland.org/writing/instant-python.html http://diveintopython.org/ http://docs.python.org/tutorial/index.html As a computer power user being able to just hack up a couple of small programs to help you out is incredibly helpful. You don't need any of the low level stuff until you want to get more serious about it. Python is next to Javascript the language I use the most day to day (and I am a professional Java/ABAP programmer) just because they are both so helpful in everyday computer usage. | ||
Peekay.switch
Canada285 Posts
http://lolcode.com/ How to do the traditional "Hi World" HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE It is a real language and people are working on it apparently, I Thought it was an april fool's joke for sure. On another note <nil> If you have a problem and think to yourself... "I can solve that with a regular expresion!" Now you have two problems. For those interested in unorthodox Programming language look up Brainfuck (Yes, it is the actual name) and Whitespace. | ||
Ahseyo
Sweden80 Posts
On July 09 2010 02:56 tofucake wrote: I don't even know what you're asking :O I found a mac emulator that was written to emulate the Mac source code but was still different from the Mac since it could recognize the Windows programs and make them work via the emulator. The original Mac with it's code was designed so it would take less space than the XP did and Vista which means programs can run more smoothly if you have alot of things running the same time. | ||
haduken
Australia8267 Posts
Still don't understand what you mean. How about you give us a name of this emulator. The concurrent performance of an operating system is depended on many factors, namely the scheduler algorithm, the memory capacity, the I/O so on and so on... You can of course perform optimization on the kernel by taking advantage of the compiler that is designed for particular hardware architectures. But there is only so much that you can do. But... having an emulator which runs the Macintosh OS (Which one? OS X or the original? ) and is also binary compatible with NT platform? My friend, you may just have defeated virtual machine. | ||
ilbh
Brazil1606 Posts
On July 09 2010 20:32 haduken wrote: wut LOL I could never guess I would laugh so hard in this thread. omg... | ||
Ahseyo
Sweden80 Posts
On July 09 2010 20:32 haduken wrote: wut Still don't understand what you mean. How about you give us a name of this emulator. The concurrent performance of an operating system is depended on many factors, namely the scheduler algorithm, the memory capacity, the I/O so on and so on... You can of course perform optimization on the kernel by taking advantage of the compiler that is designed for particular hardware architectures. But there is only so much that you can do. But... having an emulator which runs the Macintosh OS (Which one? OS X or the original? ) and is also binary compatible with NT platform? My friend, you may just have defeated virtual machine. http://emulators.com/softmac.htm As for what I understand in the logic, this is pretty much epic win if it runs good. | ||
| ||