| ||||
marketing ...
better marketing that is what really matters. example?
public class Xxxxxx {
private static Logger logger = Logger.getLogger(Prunable.class);
it is hardly if i have to chase for bugs when i my class logger gets out
of sync with class name
(look on Productive Environments: Log with log4j)
- typical problem of code redundancy
i.e. class Prunable was used as template to create Xxxx but logger is still
reporting for Prunable - it may be good but it may be also a mistake
and definitely it is better to declare intention with your code:
public class Xxxxxx {
private static Logger logger = Logger.getLogger();
no confusion here: Logger works for containing class
created wed dec 25 2002 4am cet [2002/12/25 CET] permalink XML Pull Builder API (XB1)i love XML Pull Builder API and it may not be good sign as i am its author ... Anyway, this is second reincarnation of XPP2 XmlPullNode but this time done with all very nice decomposition into interfaces and value objects and both really easy to use (no longer prefixes or raw XML names are required) and really fast and powerful - essentially can be as fast as streaming pull parser as user can for part of tree work with pull parser directly :-) The API is modeled after XML Information Set and allows building incrementally XML trees from events streamed from pull parser (user can start navigating tree before whole XML input was parsed!) and has an unique ability to bypass tree building for selected sub trees to work directly with underlying event stream. This coupled with ability to create XML tree that can mix in any Java Object allows to represent objects derived from XML (databinding) in the XML tree. The unique feature of API is ability to achieve high performance that is common in streaming parsers and ease of use associated with tree approaches in the same API by provising very precise control over XML tree creation and access to underlying streaming parser during tree creation (API users needs to do it if and only if they do want to bypass default tree creation and replace it with their customized object tree, work directly with XML events or just skip unneded parts of XML that do not need to be in XML node tree). Now the challenge is how to do it in C++ and to make it easy (especially memory operations) so it can favorably compare to DOM ... created sat nov 30 2002 7pm cst [2002/11/30 CST] permalink CodeGuide WishlistCodeguide Omnicore Wishlist let me first state i really like CodeGuide = Incredible Power and Simplicity however there are seom issues that are still not resilved
created sat nov 29 2002 8:20pm cst [2002/11/29 20:20 CST] permalink one of dream J* features already provided by miniloggerin James Strachan blog he writes about features to add to Java to compete with C# including thisClass and uses example of Logger:and this is already solved by minilogger where you can write private Logger log = LogFactory.getLog();and miniLogger can do it now: it will guess current thisClass from context. without changes to language to have thisClass created mon nov 11 2002 7pm cst [2002/11/11 CST] permalink code guide gripeseven though Code Guide 5 is better to write code than Intellij IDEA 3 with its unbelievable-until-you-try instantaneous incremental compiler there are some small changes that would greatly improve CG5 usefulness:
created sat nov 11 2002 11am cst [2002/11/11 CST] permalink minimze redundancy or logger designwhat is the difference between those two lines?class Baz {
Logger logger = Logger.getLogger(Baz.class);
and
class Bar {
Logger logger = Logger.getLogger(Baz.class);
the problem is of course that prblmey user did not want to use logger
from Baz class in Bar class and it may be an annoying bug.
what about this:
class Baz {
Logger logger = Logger.getLogger();
now this version is safe and less redundancy. and is available as part of my
minilogger
:-)
created sat nov 9 2002 10am cst [2002/11/9 CST] permalink now the bug for shortened printStackTrace() has permanent homeno i am proud initiator of bug report on Bug Parade and if you do any RMI programming or have chained exceptions please vote on it ;-)created th nov 7 2002 12am cst [2002/11/7 CST] permalink CodeGuide 5 leaves IDEA 2.6 behind...reading recent praises about IntelliJ IDEA 2.6 i felt compelled to try it and see how it compares with Omnicore CodeGuide 5TODO:link http://radio.weblogs.com/0112098/2002/11/06.html#a235 http://radio.weblogs.com/0107789/2002/11/06.html#a1002 ... with its incredible incremental compiler that allows to instantaneously compile and show errors as you type without any delays - INCREDIBLE!!! IntelliJ IDEA does nto come even close to it and after all the only thing i care is how to write code and not plethora of tools (though some tool sin IDEA looks cool and should be added to CG ASAP). created thu nov 7 2002 3am cst [2002/11/7 CST] permalink JDK 1.4 will not show me full exception traces ...just sent this RFE to Sun bugs parade ... version 1.4 changed implementation of Throwable.printStackTrace to print chained exception however currently it may print truncated stack trace for chained exceptions and it is not acceptable for several classes of apllications like programming with RMI or EJB instead it should be an optional feature disabled by default! here is an exampe that shows that information provided by printStackTrace is almost useless as important stack trace details of remote exception were truncated after first two lines! Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at $Proxy0.requestMessages(Unknown Source) at SimpleMessageMonitor.main(SimpleMessageMonitor.java:60) Caused by: soaprmi.RemoteException: IO Exception; nested exception is: java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at soaprmi.soaprpc.HttpHandler.invokeTransport(HttpHandler.java:141) at soaprmi.soaprpc.SoapDynamicStub.invoke(SoapDynamicStub.java:120) ... 2 more created tue nov 5 2002 10:30pm cst [2002/11/5 22:30 CST] permalink Grid, workflows, and other observationsBunch of observations:
created sun nov 3 2002 1:45pm cst [2002/11/3 13:45 CST] permalink UndeclaredThrowableException ...dealing with undeclared exception in dynamic proxies?got UndeclaredThrowableException? i did so i wrote small utility class to do all neceessary exception wrapping and unwrapping (link to CVS java and tests) created sun nov 3 2002 1pm cst [2002/11/3 CST] permalink why including XML APIs in JDK is bad ideaXML is not about APIs it is about processing XML. if XML was finished and there was no work on standards (DOM3 comes to mind) and implementations were finished and abandoned (Xerces2, Xalan etc.) than maybe it would make sense ... actually that brings another point: java badly needs library (JAR) dependency mechanism in use right now ... created sun oct 27 2002 cst [2002/10/27 CST] permalink |
This blog is about: Find more
about
Blogroll:
Projects::
RSS
Filter Entries: |
Disclaimer: personal opinions and observations that may or may not be taken seriously, or even based on shared reality and generally are very unreliable and personal and snapshots of volatile writer mind ...
NOTE: THIS PAGE IS UNDER CONSTANT DEVELOPEMENT