Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,168,867 members, 7,872,881 topics. Date: Thursday, 27 June 2024 at 01:44 AM |
Nairaland Forum / Ghenghis's Profile / Ghenghis's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (of 8 pages)
Programming / Re: What In Your Opinion Is The Most Programmer Friendly Java Web Framework? by Ghenghis(m): 2:13pm On Dec 03, 2009 |
Mini frameworks are cool if the project team is small and the requirements crystal clear. The problem is, how many people know the right way to use your mini framework? So you end up with a few high priests without whom nothing can be done on the app , The funny thing is you'd feel rotten when you see a standard framework that does what your mini framework does, and maybe better, all that time wasted So lets not reinvent the wheel, you can still innovate without building everything from scratch. Like i said before, Spring is a wonderful way to glue web apps together, it allows the use of Struts and many other frameworks. |
Programming / Re: What In Your Opinion Is The Most Programmer Friendly Java Web Framework? by Ghenghis(m): 11:05pm On Nov 30, 2009 |
Spring is not a bad way to go, it seems to have bindings to work with everything. It's a definitely a good way to develop web apps |
Programming / Re: Defend Your Programming Language by Ghenghis(m): 7:55pm On Nov 24, 2009 |
logica: I'm sure the maths of 50 years ago is still quite applicable today, the same cannot be said for a programming. The math libraries that were developed when FORTRAN was the only scientific programming language are huge! (remember this was when there was the space race including all sorts of scientific drives that bough computing into the mainstream) Even the mighty C++ cannot claim the kind of exclusive attention FORTRAN got in those days, the math libraries are still as valid as they were 30years ago(minus programming bugs) While, I myself wont develop any new app in FORTRAN (if i had a choice) its good to appreciate the history behind the language. People might be talking this way about Java, C# or Python the same way 20years from now. FORTRAN is a giant, on who's shoulder many new languages sit , |
Programming / Re: Defend Your Programming Language by Ghenghis(m): 1:10pm On Nov 24, 2009 |
candylips: FORTRAN |
Programming / Re: Defend Your Programming Language by Ghenghis(m): 2:06pm On Nov 20, 2009 |
usisky: I'm not sure i agree with you, the great thing about high level languages is abstraction which lets you manage complexity. While its useful to know how the processor is moving data around or doing context switching, most times i want to be able to forget those details an think in terms of the customers problem and a probable solution. Is the headache you get really worth it ? The advantage of also using a highlevel language is because the compiler can generate code thats's optimized for the hardware. That'll be hard, if you're coding in Assembly (you're apps won't be portable) , usisky: Yeah these are great exercises for programmers, i.e. algorithm development skills are lost most time in the corporate build, compile, run mode that is necessary for business apps. Even i large business projects only a very small part of the code (like 0.5%) is made of programming acrobatics, the rest is boiler plate stuff. That's why more people are advocating for automatic code generation robots/tools. |
Programming / Re: Pls I Need Help With This Assignment by Ghenghis(m): 4:35pm On Nov 11, 2009 |
infinite loop a la carte , a is the same throughout sum is the same throughout no progress in this program , |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 10:21am On Nov 10, 2009 |
Beaf: check out these blogs http://my.opera.com/zomg/blog/2007/08/18/verbose-programming http://lesscode.org/2005/12/28/verbosity/ |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 8:13pm On Nov 09, 2009 |
Kobojunkie: The truth is licensing is never cheap for large enterprises be it Linux, windows, .NET or java. An MSDN license is a developer license, not necessarily one that would be used for production purposes. Having free access to software does not eliminate financial liability. For instance most oracle products are available for download, but you're still expected to pay at some point , who was Walmart supposed to pay licensing fees to ? licensing matters a lot, it can also make the difference when approval is to be given to develop a product. licensing is definitely politicized or economized (for lack of a better word ) I see it all the time with oracle, and MS also gives free licenses when it suits them. Get the customer hooked first |
Software/Programmer Market / Re: I Need Help Of A Java Programmer That Has Deployed A Mysql Driven Application B4 by Ghenghis(m): 11:41am On Nov 09, 2009 |
@segsalerty you're not listening , i'm also talking deployment. The java command runs your app, it doesn't compile it. Since you won't be using Netbeans to run your app in production, you either have to run it from the command line or use an executable jar. the method i suggested is best, until you work out all the chinks in the app. You have to create your jar file and place it in your classpath , with the mysql driver jar. |
Software/Programmer Market / Re: I Need Help Of A Java Programmer That Has Deployed A Mysql Driven Application B4 by Ghenghis(m): 8:52am On Nov 09, 2009 |
Take @logica's advice, build your jar and when running the app use something like this : java -cp mysql.jar;myapp.jar net.segsalerty.AppStart run the above in command line window (don't use java -jar or javaw, else you might miss the errors). |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 12:39am On Nov 09, 2009 |
@Beaf, @Logica is right, import statements or using only indicate the intention of using a specific library to the compiler. its a sort of compiler directive. Hence importing an entire package or namespace instead of specific classes means the compiler has slightly more work to resolve the classes at compile time (only). Java has the protected keyword, and the effect of overrides and virtual in C# are messy. the final keyword in java does not mean a method is no longer polymorphic , |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 4:21pm On Nov 08, 2009 |
@beaf the comparison with delegates is inner classes(not anonymous classes), C# has inner classes too(not for the same reason as java). how often do you use multicast delegates and for what ? richer polymorphism ? what's that ? how is overrides polymorphic ? are namespaces different from packages ? also what you can knock up in a few minutes using c# is very subjective, it also depends of your level of experience with programming(or with C#). besides can't i knock up similar apps with with J# (were both languages can leverage the Visual studio IDE) |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 7:42am On Nov 08, 2009 |
A C# programmer has a lot to contend with : what are delegates, attributes, indexer, etc. In C#(and other .NET languages) you have to worry about the behavior of inherited behavior: is the method virtual ? u have to know if an object is created on the stack or heap , u have operator overloading , You think all these don't translate to confusion ? check out what others think. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 12:53am On Nov 08, 2009 |
Verbose means more flesh, not less , @Beaf I don't get the purpose of the code , are you comparing the Java language to c# or .NET CLR to the JRE ? Ironically your both code snippets are C# Also if we assumed you wrote the 2nd snippet in java, what is the null check for ? Why is the encoding part not important ? All these arguments about verbosity is even funny, what do you want weakly typed language proponents like (python to say). Yes C# is more powerful that Java, but at what price ? complexity ? inconsistency ? (so i've said it , ) Hmm, na wa o! |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 7:40pm On Nov 07, 2009 |
I'm surprised you think Java is more verbose than C#. @Kobojunkie You spoke about natural language, natural language is verbose and ambiguous : and English is the most verbose of them all simply because it has the largest number of words. To cut some of the story short, I think it C#'s verbosity(though its not much) that gave it the edge over Java. I've used both languages professional, i prefer Java because of its simplicity and consistency (Personal bias , ). Delegates, attributes,events etc. are all syntactic sugar, since not even all .NET languages support these features. Yeah C# is great, it made the Java people in the JCP wake up. The dust clouds have now settled and Java is as strong as ever(thanks to C# of course). On frameworks covering up for verbosity, that not a fair statement without mentioning some of these frameworks, we can learn from each other ; so your list please , Cheers |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 6:15am On Nov 07, 2009 |
@Kobojunkie i agree the C# language has more keywords and constructs to do different things @Beaf referred to java as verbose, which he concluded is a weakness. I didn't want to make his argument for him, that infact C# is more verbose which is its strength. For instance there's little or no verbosity in C or assembler, hence the user has fewer commands to remember higher level languages have more commands so which is more powerful assembler or 3GLs ? you have to agree that it depends on the angle from which you're looking, Is more better or less ? |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 5:47am On Nov 07, 2009 |
Beaf: if you use both languages you'll realize that c# is more verbose than Java, there are more keywords , more language structures etc. for example: [list] [li]Java has interfaces c# has Delegates, interfaces, events [/li] [li][/li] [/list] [list] [li]In java all member methods are polymorphic In C# you have to explicitly use the virtual keyword. there's also overrides etc. [/li] [li][/li] [/list] If you insist c# is better than Java, its definitely not because of the points you raised. Beaf: references and reference sites please , which banking applications ? which bank ? Do you know Java runs on AIX, HPUX, LINUX, all BSD Variants, Mac OS X, SOLARIS , ( I intentionally left out windows) ? please don't mention mono or the other experimental .NET ports, they are not yet production ready As a data center manager, CIO or CTO of any large corp, you'd definitely use NIX for you core apps. On NIX boxes Java rules! (Lets not talk about telcos, ask anyone you know at E///) There's a place for .NET (which is also great) but its not in the areas you've mentioned. Your enthusiasm is good though , |
Programming / Re: 10 Reasons Why .NET Is Better Than Java by Ghenghis(m): 7:59pm On Nov 02, 2009 |
javarules: I don't think there's anything, and some people would argue that pascal would do it better. The Delphi platform is pascal and .NET gets a lot of roots from there (Anders Hejlsberg's babies). Like i said many people would swear that Delphi is still the best RAD environment available (and this is from current polls) javarules:hmmm |
Programming / Re: Help ! Sql Defining Relationship Between Tables by Ghenghis(m): 8:30am On Nov 01, 2009 |
Hello Price should be in its own table, since it can change and you might have different prices for the same flight. Is the relationship between schedule and reservation correct, a schedule should have several reservations(not the other way round) A customer also has several reservations (reservation details should not be in customer) Gotta go, i'll look at it later (Your relationshiop seem upside down though ), Cheers |
Programming / Re: How Do I Jar A Java File. by Ghenghis(m): 8:26pm On Oct 30, 2009 |
candylips: I love ANT (hate maven) , when the build starts getting complex , with jars scattered all over then you should start thinking ANT (or Maven ) but for simple builds with a few jars, nothing beats javac and jar. Knowing both commands has saved me many times at, say, a client's site with only the JDK as a weapon. I think most people's problem is a lack of understanding of java CLASSPATH, once the JCP gets rid of it finally, maybe we'll have fewer jar or compile issues Cheers |
Programming / Re: Pls I Need Help With This Assignment by Ghenghis(m): 4:52pm On Oct 30, 2009 |
Big Star: I also went through the questions its a design assignment not programming, since you're supposed to use pseudocode. You'll be better served if you start looking at the questions yourself. Most programmers skip UML and all the other goodies your assignment is testing. I'm sure you'd receive lots of help if you get stuck, try first though . |
Programming / Re: Pls I Need Help With This Assignment by Ghenghis(m): 7:14am On Oct 30, 2009 |
You don't think there's anything wrong with this ? You must read and understand NCC Education’s policy on ‘Academic Dishonesty and Plagiarism’. You must complete the ‘Statement and Confirmation of Own Work’ form and attach the completed form to your assignment. Its better to ask direct questions rather than uploading your entire assignment on a public forum, you'd be surprised by who reads these forums , you're playing with Plagiarism also since you don't know the sources from which you're seeking help. Just friendly advice , Cheers |
Programming / Re: MVC Pattern by Ghenghis(m): 8:20pm On Oct 29, 2009 |
Guys I've been following your posts and you guys are just short of throwing punches I've used both .NET and Java extensively(though i now use mostly Java cause of work). Design patterns are language agnostic, and we all need them. They are simply good, industry tried techniques for solving common problems. Yes, some languages tend to shield many developers from thinking patterns, and yes there are more opportunities for java architects than .NET cause MS usually bundle their own brand of best practice into ,say, infrastructure libraries. This is a fact, but i've seen great application of patterns in .NET apps (both from MS and 3rd parties). Distributed applications can generally be categorized as 2tier or 3tier (same as N-tier). In two tier you have smarter clients driving the server. In 3 tier you have a middleware driving the server. MVC or similar patterns that allow separation of concerns for apps is necessary to build complex but maintainable apps (yeah MVC is boring cause its everywhere, but its important) |
Programming / Re: MVC Pattern by Ghenghis(m): 3:32pm On Oct 28, 2009 |
Kobojunkie: Yeah .NET implements many patterns in the base class libraries, but only a handful and the simple ones. There are many programming need that requires more than instantiating a singleton or using an iterator. And there are so many patterns besides the ones Identified by GOF, i particularly like the leaky bucket of credits pattern. Kobojunkie:I agree the poster was a little dramatic about MVC, but that does not remove from the wisdom of using patterns. There's a saying about standing on the shoulder of giants - that's what a developer that uses patterns gets! logica: True, but knowing the patterns that the framework uses might allow a developer to understand the intent of the framework, so you get less abuse or erroneous constructs. You'll be able to do things the right way. (You can definitely write un-MVC with struts if you are stubborn enough) |
Programming / Re: MVC Pattern by Ghenghis(m): 3:06pm On Oct 28, 2009 |
Kobojunkie: On one hand i agree with kobojunkie, There is more to being a great developer than MVC. There are many patterns that a developer can use to write robust, scalable and maintainable apps. because Frameworks come and go, its better to be familiar with patterns ( which are like good solutions to some general kind of problem ), they'll stay with you. all good developers should be familiar with the patterns of their domain , Patterns adds more magic to a developer's box of tricks |
Programming / Re: MVC Pattern by Ghenghis(m): 2:31pm On Oct 28, 2009 |
In reality MVC can't be used as is for the stateless web. A variant called Model 2 is used. The core abstraction of MVC is however, generally valid for most application needs . Sun for instance uses a variant called Model-delegate. The motivation for MVC is ,any kind of application that has an HCI (possibly multiple) and data. MVC tries to isolate the parts of the system that change the most. |
Programming / Re: New To Programming: I Need A BASIC Compiler by Ghenghis(m): 11:33am On Oct 28, 2009 |
You have so many choices unlike those days , You'd need a compiler if you intend to create programs that other people can use without installing any extras. With an interpreter u need both the interpreter and your code to run the app. http://www.thefreecountry.com/compilers/basic.shtml I recommend Xbasic or liberty basic, they both have nice editors and act like an interpreter and compiler. Enjoy! |
Programming / Re: How Do I Jar A Java File. by Ghenghis(m): 10:27am On Oct 28, 2009 |
A war file can also be created using the same technique however the directory structure must follow that of a standard WAR archive. i.e WEB-INF, WEB-INF/classes, WEB-INF/lib etc. Also remember to use myApp.war instead of myApp.jar |
Programming / Re: How Do I Jar A Java File. by Ghenghis(m): 8:21pm On Oct 27, 2009 |
I'm going to assume you compiled your classes with something like javac -cp foo.jar -d output *.java where foo.jar is an external library you used so that the full class directory structure is created in directory output then for jar : jar cvf myApp.jar output\* If the jar is to be run in windows like an executable jar, you might need to create your own manifest file , |
Career / Re: Learning (c++,c Sharp,& C) In India Vs Masters In Econometrics In The Uk by Ghenghis(m): 10:16am On Oct 09, 2009 |
Go for the masters. If you're really interested in the C++, C sharp and C you can pick that up along the way through self learning. Your masters generally opens doors for you , |
Programming / Re: Which Programming Language Holds Brighter Prospects In Nigeria by Ghenghis(m): 1:48pm On Oct 07, 2009 |
Java and then .NET (with Nuke, sharepoint etc.) for Web portals. PHP is used by smaller shops (and it can be used with Java and .NET portals) but if you're looking at total IT spend on software its simply Java. if you sample the telcos and banks, most apps are simply Java, those that were developed in C++ in the early 90s are being migrated to Java. If you look at the type of applications and hardware platforms used in the enterprise , u'll find mostly Solaris, AIX and HP UX (and some Linux). These platforms are not ready for .NET so Java has the run of the field. Windows OSes are used mostly for exchange, active directory, Lotus notes etc. But vertical apps generally run on NIX boxes. |
Programming / Re: A Little Help With Java by Ghenghis(m): 8:29pm On Sep 29, 2009 |
In a loop of this type for ( exp1; exp2; exp3 ) { . //stuff . } exp1 is evaluated, exactly once exp2 is evaluated is a boolean expression that determines if the loop should continue exp3 is evaluated every time the loop is iterated. A && B like you guessed && has a sort of short circuit effect hence, if A is true , B would be evaluated if A is false, B is ignored (this is because false AND anything results in false). |
(1) (2) (3) (4) (5) (6) (7) (8) (of 8 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. 71 |