Seunthomas's Posts
Nairaland Forum › Seunthomas's Profile › Seunthomas's Posts
1 2 3 4 5 6 7 8 ... 29 30 31 32 33 34 35 36 (of 36 pages)
There are many Hadoop flavours but a few standout. a. Cloudera b. Hortonworks. Hadoop itself is an umbrella project for many other projects. It consist of the filesystem(HDFS),query languages(Hive,etc),the core which is the hadoop framework which allows you to write map reduce applications etc. The benefits of Hadoop is that you can cluster machines and use them for solving time consuming jobs. |
Oga dhtml18, you don close class ![]() |
The whole idea of building a client server architecture as you rightly stated is because server hardware maybe much better than the client hardware. However another important factor for using a client server architecture is because you want to be able to run the client and server over a different network or remotely. Take for example you are in the Lagos and the Machine you want to interact with is in Abuja, even if both have the same processing power. It makes much more sense to use a client-server approach. So i think you need to explain what you want more clearly in your initial posting. This are some of the reasons to use client-server architecture: a. Server hardware has unlimited or more resources(CPU,Memory,Storage). b. Need to work remotely or over a network. c. The data in question can only be secure if its on a central server. E.g Some applications require additional security and does not make sense to install it on every client pc. Banking app should not be installed on all the cashier pc. d. The operating system environment may also neccessiate you run a client-server arhcitecture. |
Some important notes. For our Customer object, we created a constructor. When creating objects, we may use our constructor to pass parameters to our object variable. This is a clean way of sending data to our objects. Most important to know is that objects are closed systems. One of the ways to inject data into this system is by using constructors. Lesson Note: Everyone should create a simple object with any thing that occurs in our every day life. example: Car object,Student Object etc. |
Next we need to put some flesh in out Customer object. PLEASE NOTE THAT WHEN WRITING PYTHON CODE YOU MUST INDENT YOUR CODE PROPERLY. JAVA is a case-sensitive language Python: class Customer: #our constructor def __init__(self,firstname,lastname): self.firstname=firstname self.lastname = lastname Java class Customer{ //Java explicitly requires forward declaration of all variable type; String firstname; String lastname; //our constructor public Customer(String firstname,String lastname){ this.firstname=firstname; this.lastname=lastname; } } PHP class Customer{ $firstname=""; $lastname=""; //our constructor public Customer($firstname,$lastname){ $this->firstname=$firstname; $this->lastname=$lastname; } } C# class Customer{ //C# explicitly requires forward declaration of all variable type; string firstname; string lastname; //our constructor public Customer(string firstname,string lastname){ this.firstname=firstname; this.lastname=lastname; } } |
The idea behind objects is the same thing in every language. What we do with objects is to represent our application in a modular and encapsulated way. Take for example a banking application. We can have the following types of objects: a. Customer b. Cashier c. User d. Manager e. BankCommission f. Transactions g. Accounts a simple representation of the Customer object and explanation Python: Class Customer: def __init__(self,firstname,lastname): self.firstname=firstname self.lastname=lastname With this piece of code what we have done is created small part of a customer object. To create an object in most languages(php,python,Java,c#) we use a reserved word called Class. If you dont know what a reserved word is you need to do more research(Reserved words are words that are reserved exclusively for the use by the programming language). The statement Python class Customer: Java class Customer{} c# class Customer{} php class Customer{} This is used to create the base template for our Customer object. |
AkunneObinna:Na una sabi. I feel most people feel intimidated when they are corrected. I have met a lot of people on NL who feel they know it all. The know it all attitude is when someone tells u something different you feel intimidated. Programming is a road. You can never ever know it all. |
QBasic can actually work with a DBMS but you would have to write the database driver from scratch. Thats not a small job. For a newbie might be very very hard. |
d0uph1x:You can use CSV its much easier to manipulate and has structure. CSV file is: Name,Address,Age Seun Thomas,Lagos,100 Also i hope this is just school work. QBasic is an ancient of days language. |
lekropasky:Start a project of some sought and follow it to the end by doing more research. If you have a problem along the way, PM me. |
dhtml18:Go back to your topic. You follow me come here. Anyway am a gangster programmer too. Fell in love with code along the way sha. |
Hello NL, i decided to share my views and my experience on software development. I have been coding for a while and have worked on many projects. Some projects worked fine while others not so fine. Most important lesson i have gotten so far is that programming is a lifelong process. You get better every day. I will start today with an introduction into the concept of an object. But first of all lets start with the rudimentary foundation. A programming language in most cases consist of a runtime(or execution environment) which is the part that takes your code(source code) and converts it to a machine understandable format. A machine(computer,laptop,phone) is actually a very dumb device. It cant do anything on its own. It requires a human to give it the necessary instruction to do something meaningful. Although their are advances in software development that have brought in work such as an intelligent machine(AI,deep learning) but they are not totally autonomous and still require a human. The Other core part of a programming language is the language itself. By the language we mean PHP,Javascript,Java,Assembly,Python,C/C++,C# etc. The language of choice for any programming task depends on the capability of the language as well as the design ideology of the language author. Some languages like Java,C/C++,Python,C# etc are very robust. They can actually work in massive environments. While others may be limited or require extra work to make them work in such environments. I can rightly say that "Not all languages where created equal". Another important note is that machines don't understand code. Machines can only think in digits 1,0,one zero. So basically your programming runtime takes your source code and does the necessary conversion for you. Now lets go into coding. What is an Object? An object is just a way of abstracting the real from the unreal. The human mind can understand things when they appear more physical or realistic than when they are totally abstract. Thats why we use objects. A basic object in some languages would look like this: Python: class Person: def __init__(self,name,age,gender): self.name=name self.age=age self.gender=gender def setName(self,name): self.name=name def getName(self): return self.name Java: class Person(){ String name; String gender: int age; public Person(){ } public void setName(String name){ this.name=name; } public String getName(){ return this.name; } } Basically what we have done is create an object. An object is our way of encapsulating something. We use objects in many cases to hide the real underlying fact about a piece of code. For example we have modeled all the data about a Person in our object. So our object person has a name and an age. Comment and i will continue on this lesson. |
dhtml18:Bikonu. No vex. You can continue with ya tutorial. I don dey go. |
Doctor, i excuse myself from this discussion. Na only me waka come. |
AkunneObinna:I only expressed my view when he said like "whatsapp". |
ballantyne:Ok sir. |
dhtml18:There is nothing wrong with your javascript and i did not say there was. But for any of the programming languages you mentioned above(except php), it requires you must do a forward declaration of types. Yes the interpreter would execute your code and infact we all ignore it as developers but trust me whats bad is bad. When you are teaching beginners about programming you need to always state types. As for the Java part, you totally goofed. You may be one of the best programmers on nairaland but you are definately not a good programmer. I am not side tracking you just sharing my views. And next time try to see things from a balanced view. Not everyone who criticises you wants to destroy you. Programming is about criticism the better way of doing things. If you dont know that then you chose a wrong calling. |
explain what you mean by "share structure in share memory" |
OP I appreciate what you are doing though. Good job. |
dhtml18:Javascript: age=10;(bad coding using a var is good) var age=10; Java: Integer age=10; (bad coding using a built in object where possible) int age=10; |
dhtml18:YOU CANT USE HTTP TO BUILD A LARGE CHAT APP. Its very wasteful. HTTP is stateless. You need to use something like ejabberd(xmpp) or any socket server based system(web socket can work). Also i assume you will be using a RDBMS which would increase latency . So if i send a message now my friend may get it next week if the chat company has 1 million users(just a joking way to explain the reality of this approach). Its a good way to understand how apps work but chat apps are in a different terrain. I know a chat app company that used http and couchbase right now they are going socket server because they know it wont scale. |
OP am interested in what you have reversed in c/c++. |
dhtml18:You cant build a chat app like whatsapp using an http server. It wont scale. You can build a very basic chat app though. |
elisilver:You dont need to have any money to host but you can help us with logistics. |
anetuno:Dude Javascript OOP is much more difficult than learning python straight up for OOP. But you are right, javascript is a good introductory language for learning programming. I recommend he starts with html+javascript and then he can move to python or c. |
yandevboy:Interested. Whats your email address? |
Yahoo Yahoo Boys. |
The stupid man is the one who decides to reinvent the wheel and not build on the wheel. Wise men stand on the shoulders of giants. |
Pins:When your boss gives u a deadline or client gives u deadline. Do plain css and html. Dont use bootstrap or any other framework. Also no matter how good your html/css skills are it can never be better that what bootstrap offers. SELAH. |
elisilver:I am interested in running one across the country. Would you be interested in hosting us in Rivers State??. |
pcguru1:Node is a runtime and not a language. |

You can continue with ya tutorial. I don dey go.