Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,725 members, 7,816,979 topics. Date: Friday, 03 May 2024 at 10:02 PM

Fayimora's Posts

Nairaland Forum / Fayimora's Profile / Fayimora's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (of 42 pages)

Programming / Re: Java Collections Question by Fayimora(m): 1:55pm On Mar 05, 2012
Kobojunkie:

The simple way is simply having an Array [/b]of strings. However this might be tedious [b]if you do not understand how to work well with loops, split() and indexing.
Read my post above. Specifically, the hidden one!
Programming / Re: Java Collections Question by Fayimora(m): 4:52pm On Mar 04, 2012
NO emails, Again, post it here(http://www.pastie.org) and give us a link to it!
Programming / Re: Java Collections Question by Fayimora(m): 3:28pm On Mar 04, 2012
Start by using 3 arrays. You dont need to store the the description. Also, PASTE YOUR CODE HERE => http://www.pastie.org and post the link to it here. I want your code because I want to see what you have done , and then walk you through making a your solution awesome. You are going to have to do this a lot so you can aswel start learning.
Programming / Re: Want To Learn Java: Where To Start In A Simpler Form. by Fayimora(m): 3:05pm On Mar 04, 2012
That book has quite extensive chapters on GUI. I would also recommend the Java Tutorials. Its the first place I go to when I want to learn something "Javaish". You can just scroll down to the GUI part and ignore the others until you need them!

1 Like

Programming / Re: Java Collections Question by Fayimora(m): 9:58am On Mar 04, 2012
Hmm you don't get the whole strategy then. My Algorithms and Data Structures prof said this: "NEVER use arrays! However, until you understand arrays, never use Lists."

HE NEEDS TO KNOW HOW TO JOGGLE THE INDICES! tongue Its COMPULSORY!

I know as someone who has gone past the level of zipping arrays, you might be thinking Maps, quite typical. However, you should remember that you started from somewhere. You dont want to push someone to Maps when the best DS he knows is an Array.

Looking at the problem properly, using HaspMaps wouldn't be necessary. You can use 3 arrays(ignoring the description), 1 containing the names, the other containing the corresponding category and a final one containing the corresponding Cost! I guess you should know what to do. However as a challenge, loop through all three arrays at once and get all the information you need, in O(n)(ignore this for now if you dont know what it means).

An alternative, would be to create a small class that holds some data(attributes to store values from file). You would end up with an array of <some_object>. Again you just need to loop once.

I prefer the latter solution as the former is a bit dirty, however the former is a procedural approach! If it suits your needs then use it,


I have used arrays heavily in this program but. . . . . 
In what sense? posy your code here ==> http://pastie.org

[size=3pt]Let me tell you an experience I had. Someone from University of Liverpool mailed me(how she knew me is still a mystery) asking me to write some code to fit a spec for her. I rejected and she refused to leave my mailbox alone. I felt bad for her after a few days and since the deadline was in less that 24hrs, I decided to help. I asked her how far they had gone(syllabus wise) so I don't write code no-one would question. She said anything would be fine. My code was simple but complex. It was a  C++ project. She failed the assignment. Not because I wrote bad code but because I didn't know that she knew nothing about OOP! I felt bad and still feel bad even thought she didn't blaming me. You should try to avoid such stuffs. [/size]
Programming / Re: Want To Learn Java: Where To Start In A Simpler Form. by Fayimora(m): 7:34pm On Mar 03, 2012
If you want books, I can give you 50 for just £0.0. And also the next 50 for £0.0. Ok now am pissed. I present to you Introduction to Java Programming, Comprehensive Version for starters.  Enjoy it. .

DO NOT pay anyone you don't know personally!
DO NOT pay anyone you don't know personally!!
DO NOT pay anyone you don't know personally!!!
DO NOT pay anyone you don't know personally!!!!

Thats why you have Amazon and E-bay amongst others.

If you need video tuts. I have quite a lot of them in my library. Send me an address and a spec of what you want and I would post it to you for just £0.0.  I have done it 2wice on thhis forum so I ain't bluffing!

Raw link: http://fayimora.com/Books/Introduction.to.Java.Programming.Comprehensive.8th.Edition.Jan.2010.pdf

@doctor isa SERIOUSLY?

1 Like

Programming / Re: Java Collections Question by Fayimora(m): 7:25pm On Mar 03, 2012
Ghenghis:

Array ke  shocked ? He needs a Map or 2 (HashMap).

Fayimora:

For starters 4 arrays!

[size=3pt]Its a trick to test the OP's level of expertise! Tell someone, that doesn't understand Arrays or even Lists, to use a Map is . . . . . . [/size]
Programming / Re: Java Collections Question by Fayimora(m): 8:17pm On Mar 02, 2012
For starters 4 arrays!
Programming / Re: How Can A Legitimate Webapp Subtract Credit By Knowing A User's Phone Number? by Fayimora(m): 1:12pm On Mar 01, 2012
Contact the service provider of course!
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 7:15am On Feb 29, 2012
Yaaay! lol ok cool. The money would come out when the need arises!
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 4:54am On Feb 29, 2012
Ok i give up. cry
Programming / Re: Why Nigerian Start-ups Fails: by Fayimora(m): 12:17am On Feb 29, 2012
lmaooooo
Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 12:14am On Feb 29, 2012
In terms of a mix, I would agree with that, So an initial shallow waterfall movement and then agile to the end, Doesn't sound bad!
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 12:06am On Feb 29, 2012
From our calculations, you can deploy 10 RoR live apps on a linode comfortably. Others can be demo projects but probably less interaction with the database! Oh and yeah they give you a few megabytes,  NOt sure but i think its 10% of your original mem everyday if the need arises. Anything more than that then you would have to buy some more mem. You can also get an extra IP address for just $1.

Programming / Re: In Search Of "that" Software Development Methodology by Fayimora(m): 11:58pm On Feb 28, 2012
Cant understand why this bot still bans mods, Anyways I have posted something so you would have to wait until I can get it unmarked as spam. . .
Programming / Re: In Search Of "that" Software Development Methodology by Fayimora(m): 8:58pm On Feb 28, 2012

Edit your post with the full text  wink

Lol you of all people should know that testing is default! It depends on the developer but this is how I work. In summary look up Behaviour Driven Development *and* Test Driven Development.

- I write acceptance tests. Make sure they all fail. Cucumber
- I write functional tests and make sure they all fail. RSpec
- And then I write code to make all the tests pass.

Later on I write integration tests(havent really dont much of these). So testing the whole system as "one system".


To be honest with you. I only say I use Agile because after reading about the process lat year, I realised thats how I always worked. AFAIC, those are just buzzwords. Oh yeah they are METHODOLOGIES! I just develop my way and if someone decides to give it a name then good for them. . lol .

I think those words are overhyped! Especially that pair development thingy(I think its extreme programming), they program in pairs cause they are crap alone! #JustHating

How do you develop?
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 8:42pm On Feb 28, 2012

Dont get it twisted when I didn't need linode, I deployed to my personal VPSs. I have one at home(BT has sent me warnings) and another in school. I also used and still make use of amazon cloud servers, for instance http://ec2-23-21-243-96.compute-1.amazonaws.com/ and a few others. But right now, i've got people that won't stop until I develop something for them so I can aswel get something reliable. With my linode, I can deploy 20 moderately resourceful RoR applications and not worry about memory or even setup, to an extent for just £140/yr. Later, when I deem it necessary, would subscribe to New Relic too. C'mmon man get convinced angry grin

I may not be interested in system admin stuff but its quite a lovely field. . . . 

(I really still can't justify you paying for educational computing):
Errr why did you call it educational computing?

Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 6:43pm On Feb 28, 2012
When they say agile, it doesn't necessarily mean you MUST deploy in bits. You can deploy in Bytes, KiloBytes or even MegaBytes if you know what I mean. What matters is the level of abstraction. I can decide to deploy this way:
- Make static pages available
- Develop blog
   - make index page list posts
   - make index page list 4 items per page(pagination)
   - include comment system
   - include taggin system
   - include blah blah
- Develop main store
  - list products
  - see more details bout a specific product
  - Implement cart
     -  lah blah blah
     -  lah lah blah
  - add items to cart
  - Implement payment gateways
      - blh blh blh
      -blh blh blh
  - Pay for items

. . . . .  and so on and so forth. Yes this is Agile, however this is what I would do when developing a store for my company, or a store for library, or  store for my college.

Developing something like amazon is DIFFERENT. There is a much higher level of abstraction in such a project. For instance, I would do something like:

- Make static pages available, integrate a blog/update system
- implement store with primary features
- include a few novel implementations to store
*** Deploy starter application!
- Implement rating system and deploy
- Implement recommendation system and deploy
- Implement search engine and deploy

. . . . and so on and so forth. We can also go into a much higher level of abstraction. By the way note that am talking from the implementation side of things.

Have your customer with you at all times? NO. Absolutely not. You only need you customer with you at certain times which are before, inbtw and after(not always true). Your customer tells you what they want --> you make stories out of it --> You tell them what you can deliver and when --> Halfway thru you present what you have, make sure you are on the right line and revalidate the tasks -->You deliver when the time comes --> and then you go over the cycle again.

Waterfall methodology MAINLY works for those with the resources(mainly financial but other things count). A small startup would care less because they provide in stages. Facebook wasn't built at once! WHere would Mark have gotten the resources from?? However Twitter was! Dorsey had enough money, not to talk more about the funding he got!

Anyways, we should probably continue this somewhere else so we don't derail this thread
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 4:54am On Feb 28, 2012
delomos:

which is cheaper since its a shared hosting (if scalability and bandwidth aren't your concern, which, per what you're doing, it shouldn't)

I agree their site doesn't look very appealing, but I doubt that matters much.
Oh you think I just host damainboss.com and dats it? lol I've got a few other apps running there man. I have a game that I am currently working on(private git repo tongue ) which requires a client-server model. I have the "server" on linode! I added a few networking features to my current software engineering group project. Again, the code that handles server stuff is on there. A few other stuffs as well.  Oh yh I hide some private stuff there too, lol  grin All these with a 512MB VM.

Linode, if not the best is almost the best. You should make use of their platform manager! AWESOME(NB: The images used in their documentation are old versions tho). . . I've got free 24hrs support either by using tickets or on IRC from the technical team.

Also, if you dont want to do any sys admin shIt, they allow you install control panels(e.g cPanel). They also have StackScripts. All you need do is choose a script, populate a 3-5 field form and you have a working VM in less than 3 minutes.

Oh and yh you can ssh into Linode itself, not just the VM, so I can do EVERYTHING from my local machine(Terminal). Man I think the £12 I paid is too small  lipsrsealed Oh that reminds me, I only started using Linode in Jan, more of Feb though!

Linode all they way cheesy



I get the flexibility argument but do you really want to be spending more of your time doing sysadmin
Hell Yeah! If you think about it, I dont setup virtual machines every Day/Week/Month. All I need to do is setup properly once, and keep deploying. Once in a while i update the system(gems, packages and so on).


Did I convince you to get a linode?  sad cheesy
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 3:27am On Feb 28, 2012
Too expensive? Naa. For the services and flexibility I think its just about right. That site doesn't even look appealing. That puts me off a lot! angry The VPS rates look too cheap to be true. They just gave me a VM and I set it up from scratch! 
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 1:32am On Feb 28, 2012
I use nginx, passenger for the app layer. I use cap to deploy to a linode. Errr yeah thats it. . . damainboss.com is just my sandbox, at least for now. There are times when I just need a domain to test something I learnt or thought about, just like I did for easy deployment few days ago  smiley
Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 11:32am On Feb 27, 2012
I think you should be more worried about the spambot. It's has an interest in you, lol
Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 4:29am On Feb 27, 2012
telema2000:

pretty easy!!!.you can use one of the free open source cms software e.g joomla!nif youre good at using it and integrate it with virtual mart a free open source in order to create a market place of your choice regarding your payment plans if you want to use paypal or the likes, for more info contact 07034293710 for help!!!

BAN YOURSELF!!!
Programming / Re: Want To Learn Java: Where To Start In A Simpler Form. by Fayimora(m): 1:28am On Feb 27, 2012
naija_swag:

Head to the official java standard edition 7 http://docs.oracle.com/javase/tutorial/index.html site and begin at getting started.You can download the whole tutorial in html form and drop on your pc so you can read it offline.there are other books like thinking in java,java how to program (in pdfs) that you can get from folks here and get yourself started.then start reading and practicing and come here for help and guidance

Mind you,its not an easy road!
+10
Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 11:16pm On Feb 26, 2012
Of course the are. . . Just that I cant really call it a module, thats why I used the word embedded. The amount of work to be done is ridiculous! Its like doing 3 separate modules.
Programming / Re: Why Nigerian Start-ups Fails: by Fayimora(m): 11:14pm On Feb 26, 2012
Because it is a GENERAL problem!
Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 10:04pm On Feb 26, 2012
Oh cool,  Am a CS student but i've got Software Engineering embedded into my syllabus(Freaking 1 yr sub-course). . .Currently the most annoying module. . .
Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 9:31pm On Feb 26, 2012
I mean't the designer might not be necessary. Most analysts are designers, at lest the ones I have seen! Are you currently studying software engineering?
Programming / Re: Need Urgent Help With Php Mail by Fayimora(m): 8:39pm On Feb 26, 2012
OK so when is all this gonna stop? I am gonna have to lock this thread if it doesn't. C'mmon guys!!!
Programming / Re: What Does It Take To Develop An Ecommerce Site Like Ebay & Amazon by Fayimora(m): 8:31pm On Feb 26, 2012
For the first 3, you do need a system analyst and designer(might not be necessary).

csharpjava:

You will need a good Software Engineer that will carry out the folllowing:
4. Usability Testing - Making paper prototypes or quick UI designs for the users to test the system to make sure it will be user friendly
5. Implementation - This is where the programming and unit testing will take place. The programming must strickly follow to the design above.
6. Deployment - The system is made available to the users to allow testing
7. Testing - The system is tested as a whole 
8. Maintenance - Fixings errors and other issues that may occur
You can get all these from a  Ruby developer. Application in Rails, API in Sinatra and later on, you might start re-implementing a few things in JRuby(performance shits). I am fully against PHP, don't ask me why, a topic for another thread. When it comes to Agile development, Integration/Acceptance/Functional and Unit testing, you can count on a ruby developer. Its sorta the default thing if you know what i mean. One very good reason why I would always advise rails is because every part of your application improves daily. MIght sound like a normal thing but no it isin't. Again, another topic for another thread.

HOWEVER, note that all these would COST you money. Personally, I would just start step by step, the agile way but at a moderate pace. If you do have the money then go for it! I don't mind developing if you are READY TO PAY! . . . .#justkidding

Programming / Re: Why Nigerian Start-ups Fails: by Fayimora(m): 8:07pm On Feb 26, 2012
I disagree with the "NIgerian startups" and "3rd world countries" thing
Programming / Re: Any Software Product From "nairaland Programmers"? by Fayimora(m): 6:44pm On Feb 26, 2012
delomos:

Yup. I'm partially a sysadmin and setting up/managing web server happens to be partly my job sad And if you get a VPS (which I don't see the need for if you're running a small site), since I deal with enterprise, it's a diff story, again ,

@lordZOUGA Apologies for derailing ,

Hey man, I've been researching on rails deployment and I finally figured out a very easy way to deploy rails apps. But then I used a VPS so tongue. Anyways, check http://www.damainboss.com . Built and hosted that in less than one hour! Pretty fast innit? Ws good you made that statement. Made me re-think my deployment strategies. . . 

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (of 42 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 73
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.