Stories recently tagged with 'Code'

Finding duplicate code in C#, VB.Net, ASPX, Ruby, Python, Java, C, C++(alexdresko.com)

submitted by alexdreskoalexdresko(25) 1 year, 5 months ago

Whether you realize it or not, you need a tool that finds duplicate source code in your applications. In fact, if you’ve never used one before, you probably don’t realize just how much you need an automated solution to this problem. For all practical purposes, it’s nearly impossible to manually locate the types of duplicate code that such a tool can easily bring to the surface. Even if you think you’re intimately aware of an application’s code base, every line of code you write contains the potential to awaken the duplicate code dragon. read more...

add a comment |category: |Views: 0

tags: another

An introduction to Code Contracts in .NET 4.0(www.ryantomlinson.com)

submitted by RyanTomlinsonRyanTomlinson(125) 1 year, 5 months ago

NET 4.0 sees the introduction of Code Contracts. Code Contracts allow the developer to specify rules and "assumptions on your code in the form of pre-conditions, post-conditions and object invariants" (in the words of DevLabs). read more...

add a comment |category: |Views: 27

tags: another

7 Minutes from Install to your working EntitySpaces Architecture(developer.entityspaces.net)

submitted by EntitySpacesEntitySpaces(315) 1 year, 6 months ago

7 Minutes from Install to your working EntitySpaces Architecture, no kidding, no modeling, no XML files, no BS read more...

add a comment |category: |Views: 356

tags: another

Using delegates to eliminate duplicate code(alexdresko.com)

submitted by alexdreskoalexdresko(25) 1 year, 6 months ago

Here’s a simple technique you can use to easily eliminate duplicate code. Try not to let the word “delegates” scare you away from learning the technique and I’ll try to refrain from using the word “delegate” as much as possible. I’ll start small and then work my way towards a more complex example that really demonstrates its power. read more...

add a comment |category: |Views: 35

tags: another

Introducing Code Rocket(www.getcoderocket.com)

submitted by alansparkalanspark(5) 1 year, 7 months ago

This article introduces you to Code Rocket's main features. Code Rocket is a pseudocode and flowchart design and visualization tool for Visual Studio (and Eclipse). It gives you on demand access to the pseudocode and flowchart views of your methods and always keeps the design in sync with the code. The content was the basis of a presentation given at TechMeetup Aberdeen. You can download the slides and sample code for the example. read more...

add a comment |category: |Views: 21

tags: another

Code Contracts Primer – Part 2: Handling Legacy Code(devlicio.us)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 7 months ago

So the one of the first questions that many people ask when talking about using the Code Contracts library is ‘what do I do about my legacy code?’. Asking this is a very valid question. If your team has already subscribed to the design-by-contract or fail-fast concepts then maybe you have already added in your own checks. If this is the case the contracts team has thought of you and has already provided a simple answer. read more...

add a comment |category: |Views: 12

tags: another

Template based code generation with T4 from custom applications.(timcools.net)

submitted by TimCoolsTimCools(40) 2 years, 8 months ago

Generate source code from custom applications by using the Text Template Transformation Toolkit of VS 2008. read more...

add a comment |category: |Views: 14

tags: another

100% Unit Testable Linq To Sql Repository - Kazi Manzur Rashid's Blog(weblogs.asp.net)

submitted by jantujantu(1045) 2 years, 11 months ago

In this post, I will show you how you can architect your Linq To Sql repository which will have 100% code coverage. I will use our favorite Northwind database along with my ongoing UnityCommonServiceLocatorMVC project. First, lets add a Linq To Sql diagram in our project and drag n drop the Category and Product table that will look something like foll... read more...

add a comment |category: |Views: 370

tags: another

Code Snippet: Filtering a list using Lambda without a loop(blog.decayingcode.com)

submitted by arch4ngelarch4ngel(585) 3 years ago

Quick code snippet to remove some loops inside your code and increase visibility inside your methods. read more...

add a comment |category: |Views: 15

tags: another

Have you ever wanted to monitor a website for changes?(dink.no-ip.info)

submitted by hughesdohughesdo(59) 3 years, 4 months ago

Here is a free and handy tool to have around for anyone that has ever wanted to monitor when a web site has changed. This is a very small install and a very small task to alert you when your favorite page has a new update. RadPop also hides so that it is nearly unnoticeable. The program nicely alerts you to when changes occur with a MSN style popup. You can configure it to continually watch for changes to your favorite pages by dragging it to your startup folder. read more...

add a comment |category: |Views: 46

tags: another

‘Linq to Gac’ : Use Linq to Power Query your Gac via C# to Fusion(blog.domaindotnet.com)

submitted by dcarrdcarr(790) 3 years, 4 months ago

This post gets the GAC via Linq to bend your way. How? A Fusion Wrapper to IEnumerable over your Gac. No nasty PInvokes to deal with. It's all clean C# which is here to use. We owe a debt to the Mono project for this as well as a very smart Microsoft staff member to be give credit when we can find the page again. Be careful however...Our last post cranked through your registry. This post gets you the GAC. Here is what is done with a holistic post later: * All files we can find (if you specify them) * The Gac (all of it and even the other two ‘sub-gacs’ if you want * Environmental Stuff (Path variable, etc. but we actually parse them and produce another tree and it fits our code) * A lot more (think all things inside you box) You can even join all this data if you can find the right keys. We joined our registry to our file system ‘where the registry key value as a path’ (where is was a valid path) didn’t exist. Earth-shattering? No. Faster then any virus checker we’ve tried? ABSOLUTELY. Relevant to virus checkers? No not really actually…. read more...

2 comments |category: |Views: 92

tags: another

How to Search And Replace values in SQL across All Tables(korayem.net)

submitted by korayemkorayem(1240) 3 years, 5 months ago

My website got hacked. I got several html code injections inside the database. Here is how i fixed the issue very quickly. read more...

add a comment |category: |Views: 27

tags: another

Showcase of C# VS2008 Snippets(mindstudies.psy.soton.ac.uk)

submitted by dmitridmitri(408) 3 years, 6 months ago

Why write snippets when you can generate them using C#? The advantage seems obvious: greater adaptability and a functionality similar to parameter passing - but with snippets. This project is precisely this - an attempt to have snippets with arity, permitting developers to, e.g., quickly generate fully-specified data structures of the size they choose, or to make plumbing code for executing precisely N processes in parallel. The possibilities are endless! read more...

add a comment |category: |Views: 99

tags: another

Detailed code metrics with NDepend(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 3 years, 8 months ago

A while ago, I blogged about code performance analysis in Visual Studio 2008. Using profiling and hot path tracking, I measured code performance and was able to react to that. Last week, Patrick Smacchia contacted me asking if I wanted to test his project NDepend. He promised me NDepend would provide more insight in my applications. Let's test that! read more...

add a comment |category: |Views: 269

tags: another

ASP.NET MVC Source Code Now Available(weblogs.asp.net)

submitted by mehfuzhmehfuzh(1901) 3 years, 10 months ago

Last month I blogged about our ASP.NET MVC Roadmap. Two weeks ago we shipped the ASP.NET Preview 2 Release. Phil Haack from the ASP.NET team published a good blog post about the release here. Scott Hanselman has created a bunch of great ASP.NET MVC tutorial videos that you can watch to learn more about it here.... read more...

add a comment |category: |Views: 26

tags: another

The One Single Tip to Comment Your Code(itscommonsensestupid.blogspot.com)

submitted by nsoonhuinsoonhui(1810) 3 years, 10 months ago

You've heard about 13 tips to comment your code, but what about the One Single Tip? read more...

add a comment |category: |Views: 9

tags: another