Does Project Lombok offer any benefit compared to code templates / code generation in Eclipse? Are there any downsides (apart from including the .jar)?.
Looking to enable the "Enable code Analysis on Build" feature in Visual Studio.
Obviously the Rules are a best practice, and I am working with an existing code base that currently fails many of the rules.
I am looking for input as to which rules are the most egregious and should be treated as an Error.
In this blog post: EF4 Code First Control Unicode and Decimal Precision, Scale with Attributes, Dane Morgridge used attributes to control the creation of different types on your database.
...And I found this pretty unique BTW!!!
How do I generate money type fields in my resulting database using code first API of EF CTP5, if is possible to do it…
How should I format very long strings in my source code?
I follow the rule, that line of code should not be longer than 80 characters.
(The other rules are Zend Framework formatting standard)
e.g.
protected $_messages = array(
'key1' => 'very, very long string lorem ipsum dolor sit amet…',
'key2' => 'this one it very long too,…
I'm looking to do some side projects but don't have the time to hand code everything. What code generators has anyone used? Currently, I am looking at Iron Speed, but can't really afford to buy it. So I'm looking for a product under $300.00.
Any suggestions?
Jim
Step into the confessional. Now's your time to come clean.
What's the worst code you personally have
ever written?
Why was it so bad?
What did you learn from it?
Don't tell us about code you inherited or from some co-worker. This is about your personal growth as a programmer and as a person.
Hi,
As a programmer, I know sometime all has to write some code which they think -"Thank God! It's done" or "Ohh, how did I write it?"...
Do you have any such piece of code.
I've created a web application in asp.net. I've to generate embed code for one of my page so that other websites can embed that code in their websites. Tell me what is the best way to do this?
I created an open source Project : TwPaste on github.
It provides The Social Source Code and Plain Text Sharing Service.
You can post any source code here ,
All pastes and comments will post to twitter .
I'm not sure the usefulness of this project , so I need your feedback to improve it ,
if you think it is useless , please tell me…
Working with COM interop, I can call a managed function from within unmanaged code.
But, this only gives me the HRESULT for the exception, in case a managed exception is thrown.
Is there anyway to further inspect the exception from the unmanaged code? For example, to look at the message contained in the exception object.
Thanks!
In Visual C# 2008 Express I can type e.g.
for{TAB}{TAB}
and a code snippet pops in.
Are there built-in code snippets for private/public/etc. methods as well?
Anyone know of a code editing platform that allows users to collaborate in a live environment? For example, google docs but for editing PHP code with others?
Does anyone know of an easy way to work backwards from the VS2010 code coverage in-file highlighting to the test that provides the coverage? I have a file with one method covered and another not but looking through my tests I can't spot the one providing the current coverage. It would be great to be able to navigate back from the code…
The challenge
The shortest code by character count to output a spider web with rings equal to user's input.
A spider web is started by reconstructing the center ring:
\_|_/
_/ \_
\___/
/ | \
Then adding rings equal to the amount entered by the user. A ring is another level of a "spider circles" made from \ / | and _,…
At face value, it would seem that object initializers present a problem for .net 4.0 "code contracts", where normally the invariant should be established by the time the object constructor is finished. Presumably, however, object-initializers require properties to be set after construction is complete.
My question is if the…
Is there any website out there somewhere where a programmer such as myself might be able to post pieces of code to be looked at by more experienced people? I am thinking of something that programmers could use to have advice given on how to improve their ability.
I really like the atmosphere here, but am not sure that…
Hello friends,
I am having an aspx page with a user control in it. The usercontrol contains the GridView. At some place within this usercontrol i need html code of GridView.
Can anybody provide help on how i can get html code of GridView.
Thanks for sharing your time.
can you convert this perl code to python code :
$list = $ARGV[0];
open (PASSFILE, "$list") || die "[-] Can't open the List of password file !";
@strings = ;
close PASSFILE;
Thanks
Hi,
I am looking for an obfucator for my PHP code, the code which I am trying to obfucate uses the codeigniter framework. The obfuscators that I have tried, don't seem to be able to do it.
Any suggestions greatly appreciated!
I have turned on "Treat warnings as errors" for my VS project which mean that I get errors for missing documentation (nice reminder for this particular project).
However, part of the code is generated by a custom tool which does not insert xml documentation so I'm looking for away to ignore the missing xml…
I have one problem.
I have one button and one textarea in a frame.I want to show the source code in that textarea when I click on button. show source code of URL that I want to show.
help pleas!
I want to display some dozens of highlighted snippets (of code) on a presentation, I though of pasting the relevant snippets in a editor, capturing the screen and cropping the image to the code.
Is there an easier way to do this? An editor? Maybe a Pastie-like website that can export direclty to PNG?
…
What is the least amount of code you can write to create, sort (ascending), and print a list of 100 random positive integers? By least amount of code I mean characters contained in the entire source file, so get to minifying.
I'm interested in seeing the answers using any and all programming…
Is there a way that a javascript function can read the javascript source code in an html page, so that the function can do some checking job on the javascript source code?