#PARAN SILVERLIGHT#
  • Tistory
    • 관리자
    • 글쓰기
Carousel 01
Carousel 02
Previous Next

'PROGRAMING'에 해당되는 글 58건

  • 2013.09.03 Termianl Tool - Eclipse + Plugin
  • 2013.09.03 IDE - SubLIme
  • 2013.08.28 프로그래머로 사는 법 - 디버깅
  • 2013.08.07 From Delegate To Lambda
  • 2013.07.25 Struct VS Class in C#
  • 2013.04.22 IQueryable<T> vs IEnumerable<T> vs IList<T>
  • 2013.04.10 Overview of the .NET code-execution mechanism
  • 2012.12.10 Replace Nested Conditional with Guard Clauses
  • 2012.12.10 YODA Expression
  • 2012.12.04 What is GUID?

Termianl Tool - Eclipse + Plugin

PROGRAMING/Ruby On Rails 2013. 9. 3. 09:56

Mac 피씨에서는 여러개의 터미널을 Tab으로 띄어 사용할 수 있는 'Iterm2'란 프로그램이 있다.

루비로 개발하다보면 서버를 실행하며 유닛테스팅을 하고 콘솔 프로그램을 실행할 때 유용하다.

이클립스는 이 기능을 제공해준다. ^^

 

루비프로젝트를 위한 플러그인은 아래 사이트에 가서 Aptana Studio 3를 설치하고 참고하세요.

http://www.aptana.com/products/studio3

 

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

IDE - SubLIme

PROGRAMING/Ruby On Rails 2013. 9. 3. 09:30

에디터로는 Sublime2를 사용한다. 

Visual Studio에 익숙해져 버린 나에게는 아직 불편하지만 아주 좋은 Editor이다.

 

[사용법은 아래 사이트를 참고하세요]

사용기 : http://ohgyun.com/376

유용한 기능과 단축키 : http://windtale.net/blog/sublime-text-tip/

유투브 동영상 : http://www.youtube.com/watch?v=05x1Jk4rT1A

 

 

 

참고로 RubyMine (http://www.jetbrains.com/ruby/quickstart/index.html)과 이클립스로도 인텔리센스 기능이 지원되며 개발이 가능하다고 한다. 시도해 보세요.

 

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

프로그래머로 사는 법 - 디버깅

PROGRAMING 2013. 8. 28. 14:12

프로그래머로 사는 법 책을 읽다가 발견한 디버깅에 대한 내용

결론적으로는 TDD와 Refactoring을 프로젝트와 같이 진행하는 것으로 생각된다.







저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

From Delegate To Lambda

PROGRAMING/C# 2013. 8. 7. 09:09

출처 : http://www.imaso.co.kr/?doc=bbs/gnuboard.php&bo_table=article&wr_id=39153

 

 

 

람다 사용의 예(왜 람다를 사용해야하는가 ?)

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

Struct VS Class in C#

PROGRAMING/C# 2013. 7. 25. 11:30

클래스 및 구조체는 .NET Framework 공용 형식 시스템의 두 가지 기본 구문입니다. 클래스 및 구조체는 본질적으로 하나의 논리 단위에 속하는 일련의 데이터와 동작을 캡슐화하는 데이터 구조입니다. 데이터 및 동작은 클래스 또는 구조체의 멤버로 이 항목의 뒷부분에서 설명하는 메서드, 속성, 이벤트 등이 여기에 해당합니다.

 

클래스 또는 구조체 선언은 런타임에 인스턴스 또는 개체를 만드는 데 사용되는 청사진과 같습니다. Person이라는 클래스 또는 구조체를 정의하는 경우 Person은 해당 형식의 이름이 됩니다. Person 형식의 변수 p를 선언하고 초기화하는 경우 p를 Person의 개체 또는 인스턴스라고 합니다. 동일한 Person 형식의 인스턴스를 여러 개 만들 수 있으며 각 인스턴스의 속성 및 필드는 서로 다른 값을 가질 수 있습니다.

 

클래스는 참조 형식입니다. 클래스의 개체를 만드는 경우 개체가 할당된 변수에는 해당 메모리에 대한 참조만 포함됩니다. 개체 참조가 다른 변수에 할당되면 새 변수는 원래 개체를 참조합니다. 두 변수는 동일한 데이터를 참조하므로 한 변수를 통해 변경된 내용은 다른 변수에도 적용됩니다.

 

구조체는 값 형식입니다. 구조체를 만드는 경우 구조체가 할당된 변수에는 구조체의 실제 데이터가 포함됩니다. 구조체를 새 변수에 할당하면 해당 구조체가 복사되므로 새 변수와 원래 변수는 동일한 데이터의 별도 복사본을 보유하게 됩니다. 한 복사본이 변경되어도 다른 복사본은 영향을 받지 않습니다.

 

클래스는 클래스 개체를 생성한 후 수정하려고 하는 데이터나 더 복잡한 동작을 모델링하는 데 사용됩니다.

구조체는 구조체를 생성한 후 수정하지 않을 데이터를 주로 포함하는 작은 데이터 구조에 더 적합합니다.  

 

 

 

When to use structs

So you've seen how structs and classes differ. Here's when structs are better:

  • You want your type to look and feel like a primitive type.
  • You create a lot of instances, use them briefly, and then drop them. For e.g., within a loop.
  • The instances you create are not passed around a lot.
  • You don't want to derive from other types or let others derive from your type.
  • You want others to operate on a copy of your data (basically pass by value semantics).

Here's when not to use structs:

  • The size of the struct (the sum of the sizes of its members) gets large. The reason is that beyond a particular size, the overhead involved in passing it around gets prohibitive. Microsoft recommends that the size of a struct should ideally be below 16 bytes, but it really is up to you. In case your struct has reference types as members, make sure you don't include the size of instances of reference types, just the size of the references.
  • You create instances, put them in a collection, iterate and modify elements in the collection. This will result in a lot of boxing/unboxing as FCL Collections operate on System.Object. Every addition will involve a boxing operation, and every modification will involve an unboxing followed by a boxing operation.

Conclusion

Some of the inefficiencies of using value types will go away with generics in C# 2.0, particularly when using collections, so things can only get better. It's great that C# allows you to choose how you want to implement your type, as a value or a reference type. Judicious use of value types can greatly increase application performance. Hopefully, this article will help you do that.

 

 

참조 : http://www.codeproject.com/Articles/8612/Structs-in-C

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

IQueryable<T> vs IEnumerable<T> vs IList<T>

PROGRAMING/C# 2013. 4. 22. 13:46

 

IQueryable<T>   : DB 서버에서 실행되는 Query를 생성해서 값을 처리 

 

IEnumerable<T> : DB 서버에서 가져온 메모리에 올라온 값에서 처리

                              DB context 객체에서 바로 사용하게 되면 성능문제가 발생한다.

 

 

 

 

참조 : http://video.agaclip.com/w=8sdwdzpBTwa

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

Overview of the .NET code-execution mechanism

PROGRAMING/.NET 2013. 4. 10. 14:00

 

참조 : beginning_microsoft_visual_studio_lightswitch_development

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

Replace Nested Conditional with Guard Clauses

PROGRAMING/C# 2012. 12. 10. 10:34

 

namespace ReplaceNestedConditionalWithGuardClauses
{
    class Program
    {
        static void Main(string[] args)
        {
           
            Console.WriteLine(PersonIsfligible(16, true, true, true));
            Console.WriteLine(PersonIsfligible(18, true, true, true));
            Console.WriteLine(PersonIsfligible(16, true, true, false));
            Console.WriteLine(PersonIsfligible(16, true, false, true));
        }

        //Some sort of contest entry requirements!
        public static bool PersonIsfligible(int age, bool canadianCitizen, bool acceptedConditionOfEntry, bool IsfulltimeStudent)
        {
            //Gurad Cludeses : 아래 condion의 문장의 부정으로 조건 문을 만들고 return false
            if (age < 18) return false;
            if (!canadianCitizen) return false;
            if (!acceptedConditionOfEntry) return false;
            if (!IsfulltimeStudent) return false;

            return true;
            
            ////nested conditions
            //if (age > 18)
            //{
            //    if (canadianCitizen)
            //    {
            //        if (IsfulltimeStudent)
            //        {
            //            //if statement  can go on
            //            return true;
                       
            //        }
                   
            //    }
               
            //}

            //return false;
        }
    }


}

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

YODA Expression

PROGRAMING/C# 2012. 12. 10. 10:16

IF문에서 비교 대상 상수 혹은 boolean을  좌측에  먼저  쓴다.

=> 초보자들이 하는 실수  '==' 문 대신 '='를 사용하는 에러를 방지 할 수 있다.

 

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

What is GUID?

PROGRAMING/C# 2012. 12. 4. 16:12

What is a GUID?

For those of you who don't know, a GUID (pronounced goo'id - Globally unique identifier) is a 128-bit integer that can be used to uniquely identify something. You may store users or products in your database and you want somehow uniquely identify each row in the database. A common approach is to create a autoincrementing integer, another way would be to create a GUID for your products.


GUIDTest.zip




참고 : http://msdn.microsoft.com/ko-kr/library/system.guid(v=vs.90).aspx 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • »

카테고리

  • Inforamtion Technology (281)
    • DESIGN PATTERN (33)
      • 실용주의 디자인패턴 (29)
    • SOFTWARE ENGINEERING (21)
      • Art Of Readable Code (12)
      • Object Oriented Programming (6)
      • TDD (2)
    • FRAMEWORK (22)
      • Spring.net (2)
      • LightSwitch (20)
    • PROGRAMING (58)
      • C# (20)
      • .NET (6)
      • HTML5 (7)
      • ASP.NET (9)
      • SILVERLIGHT (7)
      • Ruby On Rails (6)
    • PROJECT MANAGEMENT (10)
      • SW Version Management (7)
      • Schedulring Management (1)
    • BOOKS (18)
    • MOBILE APP (1)
      • SENCHA TOUCH (1)
    • SECURITY (5)
    • MES (1)
    • B2B (14)
      • WEBMETHODS (4)
    • ERP (53)
      • SAP/R/3 (51)
    • ABOUT TOOLS (2)
    • FUNDAMENT CONCEPT (21)
    • SOA BPM (22)
    • PORTFOLIO (0)

태그목록

  • 병렬
  • 프로그래밍
  • 동시성

최근에 받은 트랙백

글 보관함

링크

파란실버라이트

블로그 이미지

To remember the time when I started learning Silver Light!

LATEST FROM OUR BLOG

RSS 구독하기

LATEST COMMENTS

BLOG VISITORS

  • Total :
  • Today :
  • Yesterday :

Copyright © 2015 Socialdev. All Rights Reserved.

티스토리툴바