Home

Bill Gates

Recent Entries

You are viewing the most recent 20 entries

February 23rd, 2006

11:55 pm: Да программистов
Мудрый программист говорит о Дао и следует ему. Средний программист говорит о Дао и ищет его. Глупый программист говорит о Дао и смеется над ним. Если бы не было причины для смеха, то не было бы и Дао.
  Высокие звуки сложны для восприятия. Движение вперед - путь к отступлению.
  Великий талант проявляется в конце жизни. Даже совершенная программа попрежнему содержит ошибки.


http://www.wasm.ru/article.php?article=1014002

February 22nd, 2006

09:24 pm: via [info]singalen
Какие мы знаем репозитории design patterns. Ссылки идут in natural order, по-русски — в никаком порядке.

February 14th, 2006

09:17 pm: WinFX
http://www.microsoft.com/Rus/Msdn/Magazine/2006/01/WinFX.mspx

Статья о XAML  , бету уже успел попробовать в прошлом году:)
На контролы любые можно задавать к примеру угол поворота ... Из ближайших поделок до XAML было , MyXAML ....
В целом новая концепция при разработке GUI программного обеспечения...

February 6th, 2006

10:34 pm:

January 12th, 2006

03:31 pm: CPPUnit, NUnit, JUnit
Мысли вслух

http://sourceforge.net/projects/cppunit

Посмотрел на разные Unit Testing FrameWork .....

.NET NUnit построен на новшествах ,а именно на использовании атрибутов к объектам

кусок C# кода


во время исполнения атрибуты являются отправной точкой для выполнения тестов ...


[TestFixture]
public class MyUnitTest
{
     
 public MyUnitTest
 { 
        
 }
        [SetUp]
        public void SetUpMethod()
        {
        }
        [TearDown]
        public void MyTearDown()
        {
        }

        [Test]
        public void  InsertItem()
        {
        }
}
_Winnie C++ Colorizer


JUnit и CPPUnit Построены на принципе наследования ....


#include <cppunit/TestCase.h>
#include <cppunit/extensions/HelperMacros.h>

#include "DiskData.h"

class DiskDataTestCase : public CppUnit::TestCase
{
  CPPUNIT_TEST_SUITE(DiskDataTestCase);
      CPPUNIT_TEST(loadTest);
      CPPUNIT_TEST(storeTest);
  CPPUNIT_TEST_SUITE_END();

public:
    void setUp();
    void tearDown();

protected:
    void loadTest();
    void storeTest();

private:
    TestedClass *fixture;    
};
_Winnie C++ Colorizer


02:02 pm: Символическая жесткая файловая ссылка ln -s  /myfile/my.txt  /etc/passwd  только по
В Linux есть замечательная утилита  ln ,а  в Windows тоже есть подобная утилита fsutil правда  ключики немножко другие....


fsutil hardlink create "Путь к виртуальному файлу" "Путь к реальному файлу"


fsutil hardlink create "c:\Virtual.txtl" "d:\Real.txt"

Итог на диске C: появится файл Virtual.txt  который можно копировать редактировать и изменения будут вносится в оригинальный файл Real.txt

при удалении файла Virtual.txt удалиться только символическая ссылка...

Tags:

January 11th, 2006

08:59 pm: Rare OS
[info]maykie Поделился адресом на Windows 1.01  http://www.softodrom.ru/win/scr/rasdel.php?ras=10&subras=1


Как написано на сайте Windows 1.01 , Windows 1.03  , Windows/386 2.10  , . IBM OS/2 1.2 , e.t.c.

02:15 pm: Ляпы в  GUI
GUI ляпы ,что то да не так. ;-)

В  программных продуктах.

http://www.frankmahler.de/mshame/


Read more... )

Tags:
02:07 pm: How To Write Unmaintainable Code
http://mindprod.com/jgloss/unmain.html

Как писать плохой код полезные рекомендации ... Чтобы  нельзя было проводить рефакторинг  :-)

Tags:
01:57 pm: via [info]maykie
На http://toastytech.com/guis/index.html лежат скриншоты разных юзерский интерфейсов. Разные OS ;-)


Даже есть советы по проектированию http://toastytech.com/guis/uirant.html


Windows 1.0 Screenshoot

Read more... )

Tags:
01:43 pm: Обсуждение c++
A Brief Look at C++0x

http://www.artima.com/forums/flat.jsp?forum=226&thread=142909




 

January 10th, 2006

04:17 pm: Отличная книга
http://www.lib.ru/CTOTOR/BRUKS/mithsoftware.txt_with-big-pictures.html


Фредерик П.Брукс. Мифический человеко-месяц или как создается программные системы

Tags: ,

January 8th, 2006

04:54 pm: C# Singleton
http://www.dofactory.com/Patterns/PatternSingleton.aspx



// Singleton pattern -- Structural example 


using System;

namespace DoFactory.GangOfFour.Singleton.Structural
{
 
  // MainApp test application

  class MainApp
  {
   
    static void Main()
    {
      // Constructor is protected -- cannot use new
      Singleton s1 = Singleton.Instance();
      Singleton s2 = Singleton.Instance();

      if (s1 == s2)
      {
        Console.WriteLine("Objects are the same instance");
      }

      // Wait for user
      Console.Read();
    }
  }

  // "Singleton"

  class Singleton
  {
    private static Singleton instance;

    // Note: Constructor is 'protected'
    protected Singleton()
    {
    }

    public static Singleton Instance()
    {
      // Use 'Lazy initialization'
      if (instance == null)
      {
        instance = new Singleton();
      }

      return instance;
    }
  }
}

January 5th, 2006

08:23 am: C# Он посмотрел чтобы посмотреть не оглянулась ли она...............
Переделываю тут GUI под TabControl (состоит из TabPage).

Накатал эксперементальный  элемент TabPage с кнопочкой которая его закрывет :)

Обработчик Button4 напоминает слова из песни "Он посмотрел ,чтобы посмотреть не оглянулись она и ........................  )

using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TabApp
{
    class MyPage: TabPage
    {
        private Button button4;
        public MyPage()
        {
            button4=new Button();
            
            this.Name = "tabPage1";
            this.Size = new System.Drawing.Size(607, 373);
            this.TabIndex = 0;
            this.Text = "Page1";
            this.UseVisualStyleBackColor = true;

            this.Controls.Add(this.button4);
            button4.Location = new System.Drawing.Point(174, 45);
            button4.Name = "button4";
            button4.Size = new System.Drawing.Size(75, 23);
            button4.TabIndex = 0;
            button4.Text = "x";
            button4.UseVisualStyleBackColor = true;
            button4.Click += new EventHandler(button4_Click);
        }

        void button4_Click(object sender, EventArgs e)
        {
            (((sender as Control).Parent as TabPage).Parent as TabControl).TabPages.Remove(this);
        }
        
    }
}
_Winnie C++ Colorizer


January 1st, 2006

03:23 am:

C Новым Годом КОЛЛЕГИ!!



December 31st, 2005

07:32 am: Mock Objects
http://sourceforge.net/projects/dotnetmock

Fortunately, there's a testing pattern that can help: mock objects.
A mock object is simply a debug replacement for a realworld
object. There are a number of situations that come up
where mock objects can help us. Tim Mackinnon [MFC01]
offers the following list:
 The real object has nondeterministic behavior (it produces
unpredictable results, like a stock-market quote
feed.)
 The real object is difcult to set up.
 The real object has behavior that is hard to trigger (for
example, a network error).
 The real object is slow.
 The real object has (or is) a user interface.
 The test needs to ask the real object about how it was
used (for example, a test might need to conrm that a
callback function was actually called).
 The real object does not yet exist (a common problem
when interfacing with other teams or new hardware
systems).
Using mock objects, we can get around all of these problems.
The three key steps to using mock objects for testing are:
1. Use an interface to describe the object
2. Implement the interface for production code
3. Implement the interface in a mock object for testing

Tags:

December 27th, 2005

07:36 am: .NET Packing tool
Упаковщик исполняемых файлов .NET  источник http://rsdn.ru/Forum/Message.aspx?mid=1562470&only=1

Tags:

December 22nd, 2005

07:58 pm: Testing software
TestDriven.NET - Download
TestDriven.NET 2.0 Beta is the recommended for all versions of Visual Studio. This includes Visual Studio .NET 2002, 2003, Visual Studio 2005, C#, VB, C++ and J# Express. Please only use the download links below if you can't access Microsoft FolderShare (see bottom of page). TestDriven.NET 1.0 is only stable for Visual Studio .NET 2002/2003.


http://www.testdriven.net

December 19th, 2005

12:00 pm: NUNIT book 1
Pragmatic Unit Testing with CSHARP


http://netframework.narod.ru/files/Pragmatic_Unit_Testing_With_Csharp.zip

Tags:
Powered by LiveJournal.com

Advertisement