News in the Category: Refactor Subscribe to the rss of this category.

Total posts: 393 | Sort by Views | Sort by Hits

SQL Server System Views: The Basics

Simple Talk, January 27, 2016
Views: 52 | Hits 2

When maintaining or refactoring an unfamiliar database, you'll need a fast way to uncover all sorts of facts about the database, its tables, columns keys and indexes. SQL Server's plethora of system c...

You suck at TDD #4 External dependencies

Eric Gunnersons C# Compendium, January 26, 2016
Views: 73 | Hits 2

When I started doing TDD, I thought it was pretty clear what to do with external dependencies. If your code writes to a file system for example you just write a file system layer (what would typical...

You suck at TDD #3Design sensitivity and improvement

Eric Gunnersons C# Compendium, December 18, 2015
Views: 153 | Hits 6

I'm going to talk a bit about design in this post. More specifically, I'm going to talk about sensitivity to design issues. But, before that, I'd like to start with an exercise. Grab some paper and ...

You suck at TDD #2Mocking libraries

Eric Gunnersons C# Compendium, December 10, 2015
Views: 118 | Hits 5

Note: I am focusing only on the design impact of TDD. To better understand the overall impact, see this series of posts by Jay Bazuzi. My first experience with TDD was back in 2002 or so, and it was ...

You suck at TDD #1: Rewrite the steps

Eric Gunnersons C# Compendium, December 4, 2015
Views: 124 | Hits 2

I've been paying attention to TDD for the past few years doing it myself, watching others doing it, reading about it, etc. - and I've been seeing a lot of variation in the level of success people are...

Resharper tip #1: Push code into a method / Pull code out of a method

Eric Gunnersons C# Compendium, October 12, 2015
Views: 126 | Hits 4

Resharper is a great tool, but many times that operation that I want to perform isnt possible with a single refactoring; you need multiple refactorings to get the result that you want. I did a search ...

Visual Studio Code Webinar

JohnPapa.net, May 23, 2015
Views: 403 | Hits 7

Mac OSX, Linux, or Windows … pick your OS! I recently co-presented the launch of Visual Studio Code (aka Code) at //Build with Erich Gamma and Chris Diaz, and on May 26th, 2015 at 10 PT you can ...

Automatically Restarting ASP.NET on OSX with DNXMON

JohnPapa.net, May 23, 2015
Views: 369 | Hits 10

Write some code, see it run, refactor the code, see it run, refactor … you get the idea. This is what I do all day long. Notice I didn’t say “write code, refactor, stop server, start...

Refactoring with Visual Studio Code

JohnPapa.net, April 29, 2015
Views: 284 | Hits 6

Visual Studio Code has some awesome refactoring features. Here are some of my favorites. Visual Studio Code Series Follow this series to learn more about what you can do with Visual Studio Code! Intro...

Painless Refactoring of SQL Server Database Objects

Simple Talk, March 26, 2015
Views: 287 | Hits 13

Refactoring a database object can often cause unexpected behavior in the code that accesses that object. In this article, adapted from his excellent book, Defensive Database Programming with SQL Serve...

Refactoring C# Code With ReSharper Help

peterkellner.net, March 9, 2015
Views: 385 | Hits 27

A pattern that I do quite often is to first right out code that actually works, then when I see a pattern repeat itself, I like to refactor that code to try and avoid the repetitive code.  Reasons inc...

Defusing Database Time Bombs: Avoiding the Need to Refactor Databases

Simple Talk, February 27, 2015
Views: 233 | Hits 4

Where applications are evolved by gradually molding them to a growing understanding of the business domain, this presents great challenges to database development. If databases are designed too loosel...

Find the first spaghetti

The Code Project Latest Articles, February 12, 2015
Views: 360 | Hits 19

Refactoring code - to a deeper extent than what seems pragmatic at first - is a great excercise to learn and shape coding style. In this post I'm gonna take a look at some code taken from Google Guice...

Its asynchronous all the way down

More Whidbey stuff, December 16, 2014
Views: 369 | Hits 14

Captain Obvious has something to tell us: Asynchronous methods can call synchronous ones, but synchronous methods can’t call asynchronous methods, or they must become asynchronous. Duh. What...

Unit test success using Ports, Adapters, & Simulatorskata walkthrough

Eric Gunnersons C# Compendium, December 2, 2014
Views: 407 | Hits 11

You will probably want to read my conceptual post on this topic before this one. The kata that Im using can be found at github here. My walkthrough is in the EricGuSolution branch, and I checked in w...

Use grunt.config.merge

More Whidbey stuff, November 24, 2014
Views: 377 | Hits 7

Most code samples that youll find, both on the Grunt web site, and on the readme.md for Grunt plug-ins, will tell you to set the configuration using the grunt.initConfig method:grunt.initConfig({ u...

How to make ANY code in ANY system unit-test-friendly

Rico Marianis Performance Tidbits, November 20, 2014
Views: 357 | Hits 18

There are lots of pieces of code that are embedded in places that make it very hard to test.  Sometimes these bits are essential to the correct operation of your program and could have complex st...

SOLVED: 'System.Security.Principal.IIdentity' does not contain a definition for 'GetUserId'

Run Tings Proper, November 18, 2014
Views: 279 | Hits 5

While following a tutorial I got the error that GetUserId() didn't exist. Right clicking to refactor the reference in didnt come up with any suggestions. Luckily it wasnt too tricky to solve Problem ...

SOLVED: 'System.Security.Principal.IIdentity' does not contain a definition for 'GetUserId'

Run Tings Proper, November 18, 2014
Views: 680 | Hits 21

While following a tutorial I got the error that GetUserId() didn't exist. Right clicking to refactor the reference in didnt come up with any suggestions. Luckily it wasnt too tricky to solve Problem ...

Source Code isnt sacred

Simple Talk, October 10, 2014
Views: 378 | Hits 6

A recent, short article on O’Reilly.com, Before You Refactor suggests that if you think you need to rewrite code, you must proceed with caution, do cost-benefit analysis and so on. If you’re still con...

Simulators or not?

Eric Gunnersons C# Compendium, October 4, 2014
Views: 833 | Hits 6

Ive been spending some time playing with Cockburns hexagonal architecture  (aka ports and adapters), and the extension I learned from Arlo, simulators. Ive found it to be quite useful. I was wri...

Responsive Web Design: the Costs

Simple Talk, August 26, 2014
Views: 1,130 | Hits 5

Responsive Web Design is devised to help you render your website or web-based application appropriately on different sizes and aspect ratios of browser windows. Adopting it as a solution comes at a co...

A TDD Journey: 3- Mocks vs. Stubs; Test Frameworks; Assertions; ReSharper Accelerators

Simple Talk, August 1, 2014
Views: 880 | Hits 4

Test-Driven Development (TDD) involves the repetition of a very short development cycle that begins with an initially-failing test that defines the required functionality, and ends with producing the ...

A TDD Journey: 2- Naming Tests; Mocking Frameworks; Dependency Injection

Simple Talk, July 31, 2014
Views: 1,101 | Hits 6

Test-Driven Development (TDD) relies on the repetition of a very short development cycle Starting from an initially failing automatedtest that defines the functionality that is required, and then pro...

Rational behavior and the Gilded Rose kata

Eric Gunnersons C# Compendium, July 10, 2014
Views: 1,149 | Hits 2

The following is based on a reply to an internal post that I almost wrote this morning, before I decided that it might be of more general interest. It will take a little time to get to my point so per...

.NET Compiler Platform ("Roslyn") for the Rest of Us

C# Frequently Asked Questions, June 24, 2014
Views: 1,142 | Hits 9

This post is brought to you by Beth Massi, a Program Manager on the Visual Studio team. If youve been reading this blog Im sure you know by now that the .NET Compiler Platform (code named "Rosl...

We have our standards, and we need them

Simple Talk, June 6, 2014
Views: 1,201 | Hits 17

The presenter suddenly broke off. He was midway through his section on how to apply to the relational database the Continuous Delivery techniques that allowed for rapid-fire rounds of development and ...

Turbo Charge your Search Experience with dtSearch and Telerik UI for ASP.NET

The Code Project Latest Articles, May 8, 2014
Views: 1,147 | Hits 8

In this article, Im going to add the Telerik UI for ASP.NET to my previous Faceted Search with dtSearch article and do some refactoring to make my search page look better and easier to use....

Tips For Working With Windows Azure Media Services

K. Scott Allen, May 8, 2014
Views: 1,142 | Hits 7

I’ve been doing some work with Windows Azure Media services and making progress, although it takes some time and experimentation to work through the vocabulary of the API, documentation, and cod...

Visualizing Roslyn Syntax Trees

C# Frequently Asked Questions, April 17, 2014
Views: 1,258 | Hits 12

Hello everyone! I hope you had a chance to catch the recent announcements around the .NET Compiler Platform (Roslyn). If not, I encourage you to view Anderss presentation at Build 2014 (skip to 1:10:2...

Visualizing Roslyn Syntax Trees

The Visual Basic Team, April 17, 2014
Views: 842 | Hits 9

Hello everyone! I hope you had a chance to catch the recent announcements around the .NET Compiler Platform (Roslyn). If not, I encourage you to view Anderss presentation at Build 2014 (skip to 1:10:2...

The future of .NET, today. The .NET Compiler Platform

MSDN: Coding4Fun, April 14, 2014
Views: 705 | Hits 19

I think today's project might be the ultimate Visual Studio extension. Welcome to the future....NET Compiler Platform ("Roslyn") (https://roslyn.codeplex.com/)Traditionally, compilers are black boxe...

New Breeze Angular Service

JohnPapa.net, March 25, 2014
Views: 656 | Hits 2

The world of JavaScript changes at a fast pace and in the time since my Angular and Breeze Part 1 and Angular and Breeze Part 2 Pluralsight courses have been released, both libraries have had some rev...

New Breeze Angular Service

JohnPapa.net, March 25, 2014
Views: 834 | Hits 14

The world of JavaScript changes at a fast pace and in the time since my Angular and Breeze Part 1 and Angular and Breeze Part 2 Pluralsight courses have been released, both libraries have had some rev...

Real-World Inversion of Control and Dependency Injection with WebForms (This Is Not a Drill)

AspNetResources.com articles, news and updates, January 24, 2014
Views: 423 | Hits 11

An exercise in refactoring a real-world WebForm to a more maintainable and testable one.Suppose we have a Contact Us page. Old school, with all the logic in code-behind. I borrowed it from an old proj...

Lessons Learned from Six Years of Agile Database Development

Simple Talk, November 19, 2013
Views: 455 | Hits 12

Alex Kuznetsov describes the agile principles, techniques and tools that allowed his development team to make frequent database refactoring a reality, without disrupting users. He explains how this al...

30 Days of TDD Day 20 Refactoring Revisited Pt. 3

the telerik blogs, November 11, 2013
Views: 527 | Hits 14

In the previous post we started refactoring our code to make sure we were complying with the SRP. Using our tests we are able to optimize our code for readability and maintainability. Well continue in...

30 Days of TDD Day 19 Refactoring Revisited Pt. 2

the telerik blogs, November 8, 2013
Views: 509 | Hits 8

In the previous post we started refactoring our code to make sure we were complying with the SRP. Using our tests we are able to optimize our code for readability and maintainability. Well continue in...

30 Days of TDD Day 18 Refactoring Revisited Pt. 1

the telerik blogs, November 6, 2013
Views: 539 | Hits 12

If youve been following this series you are not doubt familiar with the TDD Store example that weve been using to demonstrate the concepts of TDD. In this post well take a break from creating new test...

LLBLGen Pro v4.1 beta released!

Frans Boumas blog, October 25, 2013
Views: 386 | Hits 5

New features / changes in this release are: Designer: Entity Framework v6 support .NET 4.5.1 support Oracle 12c support in Oracle drivers. Oracle Managed ODP.NET provider support ...

LLBLGen Pro v4.1 beta released!

Frans Boumas blog, October 25, 2013
Views: 602 | Hits 11

New features / changes in this release are: Designer: Entity Framework v6 support .NET 4.5.1 support Oracle 12c support in Oracle drivers. Oracle Managed ODP.NET provider support Lot...

Video - Refactoring and Design Skills for Test Driven Development

ISerializable, October 14, 2013
Views: 509 | Hits 18

Last week I presented a keynote and a talk at the London Software Architect conference. Here is the video I recorded from my laptop during my talk about refactoring. I hope you find it useful. ...

Scaling Advice from MongoHQ

The MongoDB NoSQL Database Blog, October 2, 2013
Views: 501 | Hits 8

Surpassing 100GB of data in your application requires you to have knowledge of how to operate and run MongoDB. MongoHQ has noticed that their customers that reach 100GB are running commercially succes...

New C# Generics Course

K. Scott Allen, October 1, 2013
Views: 841 | Hits 20

My new C# Generics course on Pluralsight includes topics for everyone. For beginners: - Why generic types are useful. - A demonstration of all  the concrete collection types in System.Collection...

30 Days of TDD Day Ten More Refactoring and NUnit Features

the telerik blogs, September 30, 2013
Views: 549 | Hits 13

In the last post I showed you how from time to time it is necessary to change our code to enhance readability, make maintenance easier or to optimize the codes performance. This practice is called Ref...

Scaling 100GB of Data

The MongoDB NoSQL Database Blog, September 30, 2013
Views: 576 | Hits 13

Surpassing 100GB of data in your application requires you to have in-depth knowledge of how to operate and run MongoDB. MongoHQ recommends going through the 100GB Scaling Checklist as you grow. Watch ...

30 Days of TDD Day Nine Refactoring Basics

the telerik blogs, September 27, 2013
Views: 509 | Hits 15

As time goes on in any software development project youll no doubt find inefficiencies in your code that you would like to remove. Other times youll receive new requirements that are going to necessit...

30 Days of TDD Day Eight Dealing With Defects

the telerik blogs, September 25, 2013
Views: 550 | Hits 14

Ive previously discussed a bit of the TDD workflow; start with a requirement, derive a test from the requirement, write just enough code to make that test pass, repeat. This is sometimes referred to a...

Visualizing Performance Issues with MMS

The MongoDB NoSQL Database Blog, September 20, 2013
Views: 514 | Hits 9

This is a guest post by Albert Engelbrecht, Web App Developer at SuretyBonds.com.LMS is down. The dreaded phrase came back again, meaning the office is twiddling its thumbs as the sales lead system be...

Toastr 2.0.1 Released

JohnPapa.net, September 11, 2013
Views: 562 | Hits 12

Toastr 2.0.1 is now released. You can grab it while its hot! This release has several minor bug fixes, CSS tweaks, some JavaScript refactoring, and some new features. Of course there are new unit test...