I'm learning Erlang. I've moved from Haskell so I don't want to and have to learn functional programming.
But Erlang is quite specific because of the microprocesses. So, can you give me some examples which will be simple to test and measure and use all the power of Erlang?
6.1.4 Describe an algorithm based on breadth-first search for finding a shortest
odd cycle in a graph.
6.3.5 Describe an algorithm based on directed breadth-first search for finding a
shortest directed odd cycle in a digraph.
what is most importent is that it must be a directed graph not necessary bfs but must be the shortest directed odd cycle!!!
Question was taken from "Graph Theory" by J.A. Bondy and U.S.R. Murty
thanks in advance!!!
Fractals have always been a bit of a mystery for me.
What practical uses (beyond rendering to beautiful images) are there for fractals in the various programming problem domains? And please, don't just list areas that use them. I'm interested in specific algorithms and how fractals are used with those algorithms to solve something in practice. Please at least give a short description of the algorithm.
The Component Object Model (COM) is (or was...) the way in Windows to provide language-neutral software components.
There is any programming model in Linux/UNIX with the same philosophy of code reuse through binary components?
I saw people asking about best book for learning spring, and I came across manning.spring in action was recommended most of the time so I decided to give it a go.
The thing is the author offers some pretty reasonable explanations, puzzle by puzzle it gets in your head, than you just need to code it and you're done, you get it(this is how I work don't know about the others).
When it comes to the code its very disapointing, I went trought the Knight example like 2 or 3 times by now and I see its incorrect in the book, I mean its hard already for people eager to learn and why not a note somewhere in the book like pseudo-code or something.
The knight example in the first chapter is missing two classes QuestFailedException and HolyGrail I mean other people must have noticed this, why is everyone recommending this book without saying at least it has some errors(like many others do), was anyone actually been able to compile and this first chapter example?
Hi, can someone please tell me where to find the example codes used in this book:
Sitepoint The Php Anthology 2nd
edition
? Ive been looking for this since yesterday. Thanks for answering.
I own and have read most of this book, a while back. Now I'm about to embark on a pretty large project and was wanting a refresher. Anyone got a recommendation of something similar that has a focus on C#/.NET. I know the principles remain, but if only for my readability.
I'm looking to throw up a web site that supports user submitted entries and allows voting and comments. Similar in form and function to FMyLife.
Basic requirements of site:
Users can submit text entries - generally 1 liners
Enters can be up or down voted
Comments allowed - presentation collapseable
Would like the fastest path possible. Ideal solution is configurable vs requirement for programming.
I have a simple structure, it's just an array of model's objects.
For example, it's a users with books.
@books = Book.find(:all, :include = :users)
I need to check, does user have a book?
I have written a helper method:
def has_book?(user_id)
@books.select{|b| b.user_id == user_id}.any?
end
Then, i need to get only books from selected library
def in_library(n)
@books.select{|b| b.library == n}
end
I have tried to make custom Array class:
class BooksList < Array
def initialize(books)
self << books
end
# its my custom methods
def has_book?(user_id)
self.select{|b| b.user_id == user_id}.any?
end
def in_library(n)
self.select{|b| b.library == n}
end
end
It works, but i have only one problem. I can't access Book's assotiated object (user). So i can't write:
@books = BookList.new(Book.find(:all, :include => :users))
@books.first.user.id # it says undefined method `user' for #<Array:0x104b43e08>
I'm a programmer, and have completely forgotten all the advanced engineering Math I studied ~20 years ago at school. I now have an urgent need to learn about Modelling and Simulation. Though the present context is Disease Modelling, I'm not sure if there's such a thing as 'general' modelling and simulation... with concepts / techniques / algorithms that could be used in just about any domain (and not just limited to biology, finance, trade, economic, weather, etc.)
Would you have any recommendations that are easy to read by a semi-Math-literate programmer?
Basically, I cannot afford to drown myself in too much Math and theory behind M & S, hence this post.
Tia...
Trying to learn more about Polyglot programming.
What is it exactly and is it important?
Look like it is cross platform coding and interoperability across platforms...
I found this article by Ted Neward (Thoughtworks) interesting.
Without looking at the source code, I was curious to know if any of you were familiar with the programming pattern(s) used in the YUI source code. Do they embrace the language and utilize prototypal inheritance? Or are they using classical inheritance style?
Now I code win32 api windows explorer . But it seems quite hard to me.I've a month to do it. But through the time I code, I wonder is it worth that I code win32 api ? . When we can create GUI easily with MFC or even easier with C#.
What should I do ?
1- Keep coding with win32 api to deeply understand about them.
2- Just learn and code some programs to understand how they work.
Can you determine how many time does it take in each choice ( or how many projects ).
Thx for reading, as a 2nd student of IT University I really want your advice in this. My purpose is becoming a good and effective programmer :)
PS: recommended books are really appreciated.
In allusion to Dare Obasanjo's impressions on Map, Reduce, Filter (Functional Programming in C# 3.0: How Map/Reduce/Filter can Rock your World) "With these three building blocks, you could replace the majority of the procedural for loops in your application with a single line of code. C# 3.0 doesn't just stop there."
Should we increasingly use them instead of loops? And should be having loops(instead of those three building blocks of data manipulation) be one of the metrics for coding horrors on code reviews? And why?
[NOTE] I'm not advocating fully functional programming on those codes that could be simply translated to loops(e.g. tail recursions)
Asking for politer term. Considering that the phrase "code smell" is not so diplomatic, I posted another question http://stackoverflow.com/questions/432492/whats-the-politer-word-for-code-smell about the right word for "code smell", er.. utterly bad code. Should that phrase have a place in our programming parlance?
In the context of programming language discussion/comparison, what does the term "power" mean?
Does it have a well defined meaning? Even a poorly defined meaning?
Say if someone says "language X is more powerful than language Y" or asks the same as a question, what do they mean - or what information are they trying to find out?
Can someone pls tell me do we have solic & unsolic message/events in MFC or window programming?
In devices solic response and unsolic response is said as immediate response (like acknowledgement to commands) and late response (generated without any further commands being sent) respectively.
Likewise can we say events as solic / unsolic based on immediate occurrence and late occurrence?
GUYS I need to know abt the book which is best book for a professional to improve his concept
it must be objective
if sm1 have plz send it to [email protected]
In your CS career, which book dramatically changed your way of approaching problems?
Most Frequently mentioned:
Code Complete (MS Press)
The Pragmatic Programmer
Martin Fowler's Refactoring, and
Head First Design Patterns.
The original GoF Design Patterns
Structure and Interpretation of
Computer Programs
How To Solve It
I am creating a website that is to have a book style layout. So you turn the pages and they fold over. I have this working in JQuery for images.
What I am looking to do is have clickable links on the pages so that I can jump to a page further in the "book" or even to another site.
Does anyone know the best way to go about this or have any examples to help out?
Thanks
What's the best way to learn the essentials of geometry (and other types of math) used in drawing/graphics programming - e.g. curves (like bezier curves), transformations, matrices, etc.?
I have been programming in C for a couple of years in Linux. Now I want to work on linux kernel and contribute to kernel, if possible. I have been looking on the internet for the information about a starting point but I couldn't find one. So can any one please tell me where to begin?
It's not a practically important issue, but could you please provide me with an example of tacit programming in F# where my `pointless' functions can have multiple arguments (not in form of list or tuple);
And secondly, where those functions can manipulate a complex data structure. I'm trying to manage it in FSharp interactive, but have no success yet.
Huh.. I've managed to construct something:
(fun _ - (fun _ - (+))) 333 222 111 555
Is that right way?
im planning to develop a game for iphone and android. what programming language can i use to create a shared codebase between the two platform. i understand that there are some parts which are device specific.