They are just functions without a name. You often use them to pass to functions that take other functions. (higer order functions). I don't really know if this explanation is better though..Rapid Cube wrote:Does anyone know of a better explanation of how lambda expressions work than the one on Wikipedia?
Search found 267 matches
- Tue Aug 16, 2011 12:07 am
- Forum: Programming Discussion
- Topic: C++11 (aka C++0x) officially approved
- Replies: 12
- Views: 1233
Re: C++11 (aka C++0x) officially approved
- Sun Aug 14, 2011 6:06 am
- Forum: Programming Discussion
- Topic: LISP Tutorials.
- Replies: 2
- Views: 531
Re: LISP Tutorials.
Hey does anyone know any good LISP (preferably video) tutorials? I have found some good ones on how to write LISP, but I recognize it is a very rich language with many interesting and unique concepts and I would like to find some tutorials that demonstrate these concepts in depth. Thanks For Readin...
- Wed Aug 10, 2011 5:01 am
- Forum: Programming Discussion
- Topic: Am I going about this the OO way?
- Replies: 2
- Views: 592
Re: Am I going about this the OO way?
I've been working on an engine I started working on awhile ago, but abandoned due to lack of interest, and I'm currently re-writing the majority of it due to poor design, and I was wondering if I was going about a component based system the right way. Basically currently I have several manager clas...
- Tue Aug 09, 2011 3:06 pm
- Forum: Programming Discussion
- Topic: Lost in the world of software development
- Replies: 17
- Views: 1853
Re: Lost in the world of software development
Pft. DON'T take it easy on yourself. Don't rely on school to teach you things (because it won't teach you a tenth of what you want to learn). Don't ever stop pushing or fighting to better yourself when it comes to your potential. There is nothing nobler than striving to be better. Be your own teach...
- Mon Aug 08, 2011 4:41 am
- Forum: Programming Discussion
- Topic: Lost in the world of software development
- Replies: 17
- Views: 1853
Re: Lost in the world of software development
Im currently at an intersection when it comes to programming, and i have to pick a direction. Sadly this direction isnt as easy as picking one of two graphics libraries, i have multiple choices that lead to more intersections, and that just confuses me even more! I've been stuck for a while, and i'...
- Thu Aug 04, 2011 4:46 pm
- Forum: Programming Discussion
- Topic: Help with 2d top down shooter question
- Replies: 15
- Views: 2794
Re: Help with 2d top down shooter question
The angle between the two is simply the inverse cosine of the X component of our normalized vector. That's one additional trig function. Shouldn't you check if the y component is negative and add pi radians if it is? I guess this method could also be described by just using the unit circle and not ...
- Thu Aug 04, 2011 5:02 am
- Forum: Programming Discussion
- Topic: Help with 2d top down shooter question
- Replies: 15
- Views: 2794
Re: Help with 2d top down shooter question
There is a need for trig when you plan on rotating something! I imagined this problem as a little tank, with a turret that rotates to point towards the mouse cursor. With ATAN, you would have that exact angle, rotate the turret to suit, and use SIN and COS to work out the velocity of the bullet. I ...
- Wed Aug 03, 2011 7:57 am
- Forum: Programming Discussion
- Topic: Help with 2d top down shooter question
- Replies: 15
- Views: 2794
Re: Help with 2d top down shooter question
It seems that you have two points (Player and Mouse), and you want a vector from Player pointing towards Mouse and having some specific magnitude(the speed of the bullet). As i see it there is no need for trigonomitry. The following steps should do: 1. make a vector from Player to Bullet 2. normaliz...
- Wed Aug 03, 2011 7:10 am
- Forum: General/Off-Topic
- Topic: talk about ghosts in IRC
- Replies: 16
- Views: 4852
- Wed Jul 06, 2011 5:41 am
- Forum: Programming Discussion
- Topic: PTL Library
- Replies: 12
- Views: 1372
Re: PTL Library
I hope this is not too offtopic. :) I have been wondering about what the STL actually is. Is it just a specification of what interface the standard C++ containers should have, or is it an actual interface(You know, pure virtual functions). Is it the whole implementation or is it something else? And ...
- Fri Jun 03, 2011 7:14 am
- Forum: Programming Discussion
- Topic: Programming Philosophy
- Replies: 17
- Views: 1994
Re: Programming Philosophy
I just stumbled upon this, and this thread came to mind: http://stackoverflow.com/questions/5764 ... f-pure-ood
It seems like a good example of this "trying too hard to model the real world in OOP" concept some of you are talking about.
It seems like a good example of this "trying too hard to model the real world in OOP" concept some of you are talking about.
- Mon May 30, 2011 12:45 am
- Forum: Programming Discussion
- Topic: Programming Philosophy
- Replies: 17
- Views: 1994
Re: Programming Philosophy
You are talking a lot about that it is important to write programs in the same way computers understand them (procedural). But isn't the whole point of a compiler to be able to write code on a higher abstraction layer? I can see the conceptual beauty in your approach (then again, LISP is also concep...
- Thu Apr 21, 2011 1:57 pm
- Forum: General/Off-Topic
- Topic: Interesting thread i found on SO
- Replies: 0
- Views: 1960
Interesting thread i found on SO
I found this thread/question on Stack overflow about strange language features.
http://stackoverflow.com/questions/1995 ... ge-feature
I think some of them are quite funny :D
Btw, whats up with the new domain name "http://theprogrammingjunkie.com/" ???
http://stackoverflow.com/questions/1995 ... ge-feature
I think some of them are quite funny :D
Btw, whats up with the new domain name "http://theprogrammingjunkie.com/" ???
- Mon Mar 21, 2011 11:26 am
- Forum: Game Development
- Topic: Id Software on TV in 1992
- Replies: 6
- Views: 1291
Re: Id Software on TV in 1992
Does 3D games without texture mapping even exists? It might just be the journalist trying to say as many techie words as possible(or i might just be way too young )N64vSNES wrote:LMAO Texture mapping a new thing?
To think that was 1992
- Mon Mar 14, 2011 2:18 am
- Forum: Programming Discussion
- Topic: RSS type thing?
- Replies: 21
- Views: 2094
Re: RSS type thing?
What is not working as expected???kendricktamis wrote:Not working as i expected..