Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a whole bunch of Eclipse projects, large and small, that I want to keep organized. I'm trying to figure out if there is some sort of property that can be attached to the project in order to provide a description of what the project is or what it was created to do or test. I would hope that this field can be easily viewed at the time you are browsing through a list of projects. It would be nice if I could put descriptive text into this field and not have to consider giving my projects names like 'TwitterOAuth2TestImplementationUsingScribe'
Anything that would allow you to browse your projects in a way similar to this (each line represents an Eclipse project):
Myproj1 Simple Test Project
LogTest3 Test new logging class
NetworkUDPTests Testing UDP classes
OAuth2Example Sample project for Oauth2
Unfortunately, project "description" is the name of the .project file that stores each project's settings, so it is a bit harder to search for information on this.
Thats an interesting question we also face. Currently there does not seem to exist a solution for this problem. The only thing that could come near to providing one is the Mylyn Intent project, as it aims to provide a comprehensive documentation on design decisions, which takes into account the inter-dependencies between plugins.
This inter-dependency is exactly the problem. There exist solutions to document the purpose of java packages which is limited to the classes however.
Our solution is a readme.textile embedded in the root of each plugin, providing this specific information. It would, however, be interesting to introduce the documentation used for packages for bundle documentation, which could be used to autogenerate an overview documentation.
There is a comment tag in the .project file: http://help.eclipse.org/luna/topic/org.eclipse.platform.doc.isv/reference/misc/project_description_file.html
However it looks like Eclipse itself doesn't use the content of this tag. I changed it manually but after that I've never seen the text I entered anywhere in Eclipse
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Is there any tool to generate code (text files) with custom templates which I define?
For example it should have possibility to include multiple templates of some functions (which I can specify and parameterize) and put them in one class file template.
Do you know any advanced software which help me with that?
File templates in IDE (like Webstorm) are too simple for me.
Telosys could help you, it's a code generator
working with customizable templates (Velocity templates).
You can also create your own templates.
Telosys is available as a simple Command Line Interface tool and as an Eclipse Plugin. Everything is Open Source (tool and templates).
See the main web site http://www.telosys.org/
and Eclipse Plugin https://marketplace.eclipse.org/content/telosys-tools
The customizable templates are available on GitHub (https://github.com/telosys-templates-v3).
I use Telosys (http://www.telosys.org/) to generate Python code.
It works fine. You can use it to generate any kind of text file.
I made my own tool for this.
parameterized with json file
use Apache Velocity templates
https://github.com/latata/simple-code-generator
check this one https://code.gencode.net you can generate code from simple text templates and SQL server, the output files can be in any programming language.
This is a tool I have developed and personally use to generate the code for all CRUD files an application may need, basically gets database information, field names, datatypes, foreign keys ,primary keys and merges your text templates replacing variables between [], also have sections that can be iterated like fields names in a class or stored procedure, these are replaced in the main template, more information on how it works can be found in www.gencode.net and also there are some sample templates that can be used to see how it works
Answering the question since templates are based on your own code you can add references to custom functions, classes, security validations, anything you want in the templates. Also you can have multiple templates, include them in a group of templates, and include these groups in a project, which has the link to the SQL database
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last month.
Improve this question
Very often when programming, I find that I encounter problems that I have solved in the past, but don't remember the solution to. I've been trying to record notes and code snippets of solutions I come up with so that I can reference them in the future. but I don't know the best way organize my solutions so that I can quickly and productively find them in the future.
Right now I've been putting code examples into separate files in a big directory, but it can get hard to find things for the future. It would also be nice to have the ability to search for keywords so that I can quickly find what I'm looking for.
Does anyone have any suggestions for how to organize a personal body of code to use as reference for future programming?
In the past, I tried to organize my folders and make a "Dictionary" of different problems with their solutions. Unfortunately, I found it was very time consuming even though it was well organized with a few collegues.
If you're working with common languages (C#, VB.Net, Java, html, javascript, css, ...), Internet is your best repository. I find it faster to type what I want on a search engine (or stackoverflow directly) than browse into a home made repository.
If you still want to make a repository, I prefered keeping the entire projects and have a "master file (excel can do)" where you can search for keywords and find which project deals with the problem.
Once in a project, you can do another search for the exact location. I found it less time consuming to do another search than pointing the diffrerents files/functions to look at in the "master file".
Hope this helps.
A friend of mine introduced me to Notion. It's basically like Evernote but has quite a lot more and you can write code blocks etc. Ever since, I use that to keep references of code and some explanations etc. Most of the time I'm too lazy to even copy and paste code snippets I find on Stack Overflow and so I just copy links into there as well. Anyway, I think some sort of integrated solution like this is pretty great.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
The new Microsoft TypeScript language (typed superset of JavaScript) seems very interesting, is there any alpha / incubator project that attempts to support it in Eclipse? Or is it too early to even wish for it
Check this open source plugin which is build by palantir.
This question was asked the day TypeScript was released, so as of today (Oct 2nd 2012), there is no support. Having said that, the XText team -- a team responsible for rapidly creating DSLs -- is aware of TypeScript and I wouldn't be surprised if they do something.
Another place to look is Microsoft. Depending on what their motivation is with TypeScript, they may push for an Eclipse project (although I doubt it).
Orion (the web based eclipse ide) would be a good fit. It is already using nodejs, so it would be easier to incorporate tsc and the language services. Right now they already support Javascript including some type inference. I understood typescript is on their radar.
Looks like the beta of an Eclipse Typescript plugin was uploaded on Aug 7 2013. I haven't had a chance to try it out yet but it looks promising.
http://marketplace.eclipse.org/content/typescript#.UgfEuD9IG-V
https://github.com/palantir/eclipse-typescript
Until a specific plugin is implemented, if you are adventurous enough, you might try and just use JSDT and associate *.ts files with the JavaScript editor. If you get JavaScript validation errors, disable the JavaScript Validator under Project > Properties > Builders. For automatic TypeScript compiling, you can set up an external builder as described here or here.
My settings:
Main
Location: /usr/local/bin/tsc
Working directory: ${build_project}
Arguments: ${build_files:f}
Refresh
Refresh resources upon completion: checked
The folder containing the selected resource
Environment
PATH = /user/local/bin
Build Options
Allocate console: checked
Run the builder: During auto builds
Specify Resources: a folder that contains *.ts files
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have been developing iOS apps for about a year. In that time, I have developed a fair number of classes that I frequently recycle from app to app. For example, I have a bunch of classes related to making it easier to write table views to control in-app settings.
Right now, I simply grab these classes from one app and paste them into the next one. My question is -- at what point is it likely to be easier to create and use a static library?
Static libraries have their problems as well.
Using a static library discourages you from fixing problems as you see them, since the code is in another project and it becomes troublesome.
GCC has a bug in whereas any method defined in a category is optimized away from the static library. Not good if you library code consist of lots and lots of convenience categories on existing classes.
So what you want is a solution where you can add dependencies to actual source code. This way you avoid the nasty GCC bug, and the boy scout rule is encouraged!
Our solution is a simple dependency system based on Rake. It creates sym-links to the source code of the shared libraries, and hard copies when building on the build server (You should never build the distribution binaries on a developers own machine!).
The sym-links allow developers to edit the shared code just as if it was part of the current project, while ensuring any cleanups, bug-fixes, etc. are always propagated to a single repository and benefits all projects using the shared library.
The hard-copies on the build server allows for the shared libraries to be tagged for version, so that the exact build of v1.0 you sent to App Store is forever reproducible!
A colegue of mine have blogged about setting up a build server for continious integration here: http://blog.jayway.com/2010/01/31/continuos-integration-for-xcode-projects/
I will nag him to blog and share the Rake based dependency system as well. It is basically just a handful of lines with Ruby script.
I have my own library of miscellaneous stuff.
I add things to it that I deem to be reasonably generic and that I can envisage using in the future at some point.
After all, there's no harm in adding it to your library, even if you never use it again.
As soon as you tire of copying and pasting you should create a library. Or, as soon as you make your first mistake (mis-)copying and (mis-)pasting.
Or, in more business-like terms: when the net present value exceeds the net present cost.
If you want to distribute your classes out to your "team", then you will not have to worry about changes they make to your code, thus keeping the libary consistant.
Or if you wanted to sell your classes as API's to another DEV team then your can hide the source code from the API user.
I have a few "utility" classes that I find usuful and I do tend to drop the class file into my solution as I find it easier and quicker, (not that the extra 2 to 3 clicks matter), so really i suppose i do it out of habbit more than anything else.
Another solution is to use use a version control system (such as git) that supports submodules. You can wrap up each of these helper classes (or even a collection of classes) in its own repository which can be imported into the main repository of your code.
In this way you don't have to worry about cutting and pasting errors. Also, if you make improvements to these classes they can be propagated to other projects that use them (if you want to), yet you can always roll back to previous versions for bug fixing / testing.
It is common to find such helper code on sites such as github example
I have a static library that is in a separate project.
That way I can fully develop the library, complete with unit tests etc. and then simply re-use it by making another project dependant on it.
It means I don't have to cut/paste, and it also means that should I find/fix a bug, or add/modify a feature of the library, then it can be regression tested easily.
Now all the projects that use that library can benefit.
So for my money, the time to turn a collection of 'useful code' into a library is certainly when you find you want to use it again.
(Of course we all have useful code snippets we re-use by copy/paste from a previous project - those aren't necessarily right for being in a library.)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have not found any answer to why I cannot add a data model to an existing project. So given the fact that creating a project from scratch using core data for storage does create the data model correctly I am trying to move the entire project into a new project that contains the data model.
No matter how I try to do it at some point it will the new project will not build. In my first attempt I tried just dragging an dropping from one to the other, clean all targets and build... disastrous.
After trying several different approaches, the closest I came to success was as follows...
created the new project (same name as my existing project)
link the necessary frameworks
copy the resources, ie plists, icons, picts
create all the classes in the new project
copy the contents of each .f & .m files of each class that does not reference any other class. For each class delete the .xib file and copy the .xib file from the existing project, clean all targets, check all links in the .xib, build.
work my way through the remaining classes as in step 5 making sure that any referenced classes are always created first.
Following this methodology I get to my last 2 classes and get a symbol(s) not found error on a reference back to one of the first classes I created. This error as far as I can tell has something to do with not having a framework properly linked, but I can't figure out how to fix it.
Is there a better way to do this.
I have a tech request in to apple on my data model problem, but can't afford to sit around and wait for their response.
Thanks for any help.
John
You should add the Core Data framework to your project as well as adding the following:
#import <CoreData/CoreData.h>
to your Prefix.pch file. However since you have not said what happened other than "disastrous" it is hard to give you a more targeted answer.