I am a beginner for Java programming. I started to self study by referring java documentation. But it is too complicated. But I followed language basics. After that I am in a trouble to select that , which java technologies to study. My dream is to be a java developer. Anyone can guide me?
What is the best way to structure the naming of your (java) packages?
By design paradigm: my.app.dao, my.app.services, my.app.util, my.app.model, etc.
or by function/context name: my.app.clients, my.app.registration, my.app.production, my.app.accountancy?
On a side note:
I think I remember watching a keynote speech on the Spring framework where a developer advocated the structuring of packages according to the application's domain functions. The same would happen for URLs:
Not exactly sure what you are suggesting but if your 'services/userregistration' is based on authorization/authentication then you have a rest call for that and nothing else. Presuming that the functionality is in fact the same.
That is similar to your other areas in that either something like 'products' is different for 'model' and 'services' or it is the same. If the same then there would be a root 'product' and not the way you broke it out. If they are different then they should have two different rest methods.
I'm not sure i'm in the right topic for this question. Feel free to redirect me to the appropriate one, if necessary.
I have an ANT related problem. I want to read some values from a file (new.txt), substring the parts i need from each line and then, concatenate all these values with "_" between them. This big concatenated string will be the name of a folder i'll create. Here is the code i wrote:
var text = attributes.get("text");
var end = text.length();
var start = attributes.get("start")||text.lastIndexOf("=")+2;
project.setProperty(attributes.get("property"), text.substring(start, end));
I want something like: 1344_dvfgf_sfgg_wfggh
but i have: _1344_dvfgf_sfgg_wfggh
Last Visit: 31-Dec-99 18:00 Last Update: 26-Aug-14 18:53