» Home » programming » Page 1
Functional Programming Vs Declarative Programming Vs Imperative Programming
Category : Web Design

I have been too used to Imperative Programming which is the usual way of telling the computer to perform step by step the procedure to get the final result. On the other hand, declarative programming just passes the input and expects the output without stating the procedure how it is done. The one I am confused about is Functional Programming. I know Functional Programming is a programming para


View Replies


reinventing the wheels: Node.JS/Event-driven programming v.s. Functional Programming?
Category : Web Design

Now there's all the hype lately about Node.JS, an event driven framework using Javascript callbacks. To my limited understanding, its primary advantage seems to be that you don't have to wait step by step sequentially (for example, you can fetch the SQL results, while calling other functions too).


So my question is: how is this different, or better than just functional languages, li


View Replies


Erlang (Functional Programming) vs Object Oriented Programming in terms of thinking
Category : Programming Languages

I am learning Erlang and I am trying to create a very sample blog program. However my mind currently is trapped in the OO world (var p = new Post(); p.Title = ""; p.Save();). I would like to understand some basic thinkings in Erlang. Instead of creating Post object what I should do in terms of data structure (p.Title, p.DateCreated, p.Body)? Should I be using tuple? I would like to understand t


View Replies


How to rewrite finding max contiguous subarray in Dynamic Programming using functional programming paradigm in ruby?
Category : Development Tools & Services

I wrote the following code to find the contiguous subarray with maximum sum, which I tink pretty ugly:


The problem is my internal thinking of this problem (using DP) is imperative. How can I refactor this piece of code and make it more functional (and DRY)? Any recommendations on how to think algorithms in functional language? (maybe should be a sperate question though).



View Replies


CHATBOT: Programming a chat bot with a easy programming Interpret interface
Category : Web Design

I would like to do it (Probably it not necessary to do it) a console interface to make an implementation of a chat bot.
I would like my chat bot has 3 levels of “intelligence”.


Level one: My chat bot is like a dictionary. You write something like “If user say ‘Hello’, chatbot say ‘Hello’”. Or “if user say ‘How are you’, chatbot say ‘I´m fine, thank yo


View Replies


Difference between Gene Expression Programming and Cartesian Genetic Programming
Category : Web Design

Something pretty annoying in evolutionary computing is that mildly different and overlapping concepts tend to pick dramatically different names. My latest confusion because of this is that gene-expression-programming seems very similar to cartesian-genetic-programming.


(how) Are these fundamentally different concepts?
I've read that indirect encoding of GP instructions is an eff

View Replies


Distributed parallel programming model in any programming language - similar to apach hadoop but supports windows machine
Category : Programming Languages

I am interested to know distributed parallel programming model in any programming language (java/perl/python/php) - similar to apache hadoop but supports windows machine (I don't want to install cygwin in windows machine).


Also, i am not keen on high availability & fault tolerance.


Example:
Create a job "sum" and submit it from client so that it runs in many wo


View Replies


How to convert this procedural programming to object-oriented programming?
Category : Programming Languages

I have a source code that is needed to be converted by creating classes, objects and methods.
So far, I've just done by converting the initial main into a separate class. But I don't know what to do with constructor and which variables are supposed to be private. This is the code :


import java.util.*;
public class Card{
private static void shuffle(int[][] cards){
View Replies


I'm interested in Programming Languages. What areas of programming are good for me?
Category : Development Tools & Services

I've always been interested in writing and designing programming languages. Of course, it's pretty difficult to find an employer that will let you write a programming language as part of your job. So I'm looking for the "next best thing".


What fields of programming will let me get some experience solving some related problems? Or what kinds of employers are most likely to view al


View Replies


Learning Win 32 API programming from theForger's Win32 API Programming Tutorial
Category : Programming Languages

Im trying to learn Win 32 API programming from theForger's Win32 API Programming Tutorial. Should I choose Visual C++ -> Win 32 Project or Windows Form Applicationto get started? Thanks


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .