上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页

2014年3月18日

ASP.NET MVC:some benefits of asp.net mvc

摘要: Full control over HTMLFull control over URLsBetter separation of concernsExtensibilityTestability 阅读全文

posted @ 2014-03-18 08:10 幸福框架 阅读(150) 评论(0) 推荐(0) 编辑

2014年3月17日

Python:Opening Python Classes

摘要: I won’t reply to that post much, because it’s mostly… well, not useful to respond to. But people often talk about the wonders of Open Classes in Ruby. For Python people who aren’t familiar with what that means, you cando:1 # Somehow acquire SomeClassThatAlreadyExists2 class SomeClassThatAlreadyExist 阅读全文

posted @ 2014-03-17 18:22 幸福框架 阅读(382) 评论(0) 推荐(0) 编辑

2014年3月16日

ASP.NET MVC:4 Ways To Prevent Duplicate Form Submission(转载)

摘要: 原文地址:http://technoesis.net/prevent-double-form-submission/。Double form submission in a multi-user web based application the most common and critical issue as well.There are many scenarios where we face duplicate submission problem like,Clicking submit button twice.Using Refresh button.Using browser 阅读全文

posted @ 2014-03-16 13:35 幸福框架 阅读(2352) 评论(0) 推荐(0) 编辑

2014年3月15日

架构:The Onion Architecture : part 3(洋葱架构:第三篇)(转载)

摘要: In my previous installments, I described what has become my approach to defining the architecture for an application. Based on feedback, I've modified my diagrams a bit to reduce ambiguity and emphasize key points. The goal of part 3 of this series is to compare and contrast the Onion Architectu 阅读全文

posted @ 2014-03-15 09:50 幸福框架 阅读(926) 评论(0) 推荐(0) 编辑

2014年3月14日

架构:The Onion Architecture : part 2(洋葱架构:第二篇)(转载)

摘要: 原位地址:http://jeffreypalermo.com/blog/the-onion-architecture-part-2/。Inpart 1, I introduced an architectural pattern that I have named "Onion Architecture". The object-oriented design concepts are not new, but I'm pulling together a lot of techniques and conventions into a single pattern 阅读全文

posted @ 2014-03-14 22:10 幸福框架 阅读(1076) 评论(0) 推荐(0) 编辑

2014年3月13日

架构:The Onion Architecture : part 1(洋葱架构:第一篇)(转载)

摘要: 原文地址:http://jeffreypalermo.com/blog/the-onion-architecture-part-1/。I've spoken several times about a specific type of architecture I call "Onion Architecture". I've found that it leads to more maintainable applications since it emphasizes separation of concerns throughout the syste 阅读全文

posted @ 2014-03-13 21:56 幸福框架 阅读(1290) 评论(0) 推荐(0) 编辑

2014年3月12日

架构:Screaming Architecture(转载)

摘要: Imagine that you are looking at the blueprints of a building. This document, prepared by an architect, tells you the plans for the building. What do these plans tell you?If the plans you are looking at are for a single family residence, then you’ll likely see a front entrance, a foyer leading to a l 阅读全文

posted @ 2014-03-12 20:15 幸福框架 阅读(492) 评论(0) 推荐(0) 编辑

2014年3月11日

架构:Hexagonal Architecture Guidelines for Rails(转载)

摘要: 原文地址:http://theaudaciouscodeexperiment.com/blog/2014/03/17/hexagonal-architecture-guidelines-for-rails/。TL;DRGood application design is hard and there’s no one “right” way to do it.I often get asked the how I design decoupled applications and while there’s no easy answer I’m going to lay down the ru 阅读全文

posted @ 2014-03-11 19:30 幸福框架 阅读(1109) 评论(0) 推荐(0) 编辑

2014年3月10日

架构:The Clean Architecture(整洁的架构)(转载)

摘要: 地址:http://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html。Over the last several years we’ve seen a whole range of ideas regarding the architecture of systems. These include:Hexagonal Architecture(a.k.a. Ports and Adapters) by Alistair Cockburn and adopted by Steve Freeman, and Nat 阅读全文

posted @ 2014-03-10 16:51 幸福框架 阅读(5646) 评论(0) 推荐(0) 编辑

2014年3月9日

设计原则:如何应对模型的复杂性 之 更细粒度的组织命名空间

摘要: 背景系统分析和设计的目的是找到一个合适的模型,以及如何应对模型的复杂性(大的关系网),好的模型更多的依赖:对问题的理解、看问题的角度、经验和模式等等,而如何应对复杂性呢?这更多的是技术性的问题,本文简单的聊聊,如何应对复杂性?我们做的只能是分解,如:架构层面横向分解(业务)子模块子模块聚合纵向分解(技术)流程层面迭代工作层面分工今天我想稍微重点说一下的是:更细粒度的组织命名空间。更细粒度的组织命名空间我们在大的层面一般都做了很好的分解(领导或架构师比较在意),而在实现层面,由于进度、历史等原因,我们的某些命名空间下有超过 50 个文件,我自己也造成过这样的结构,也深受其苦,这里不谈如何更细粒度 阅读全文

posted @ 2014-03-09 09:40 幸福框架 阅读(426) 评论(0) 推荐(0) 编辑

2014年3月8日

.NET:System.Security.Cryptography.CryptographicException 的解决办法

摘要: 详细内容参考此网址:http://social.msdn.microsoft.com/Forums/en-US/ec93922a-fd1e-4225-b5cf-1472ebb3acd1/systemsecuritycryptographycryptographicexception-the-system-cannot-find-the-file-specified?forum=netfxbcl。摘要:确定数字证书文件是否存在。如果宿主是 IIS,做如下配置:Open IIS7 --> ApplicationPools --> YourAppPool -->RighClikck 阅读全文

posted @ 2014-03-08 08:35 幸福框架 阅读(9752) 评论(0) 推荐(1) 编辑

2014年3月7日

.NET:如何并行的从集合中返还元素?

摘要: 实现代码 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Threading; 7 using System.Collections.Concurrent; 8 9 namespace CSharpStudy.ParallelStudy10 {11 class HowToReturnList12 {13 public static... 阅读全文

posted @ 2014-03-07 08:30 幸福框架 阅读(322) 评论(0) 推荐(0) 编辑

2014年3月6日

DDD:如何表达聚合之间的关系?

摘要: 大家都能达成的两个共识是:概念模型中,聚合之间充满着关系(双向)。对象模型中,根据有用性、性能和成本等因素考虑,保留某些必须的关系。备注:读写分离有利于更好的表达关系,因为某些关系在读取的时候需要,而且模型需要扁平化,某些关系在写入的时候需要,模型需要立体化。 阅读全文

posted @ 2014-03-06 08:07 幸福框架 阅读(1082) 评论(0) 推荐(0) 编辑

2014年3月5日

.NET:Assembly.CodeBase vs. Assembly.Location

摘要: The CodeBase is a URL to the place where the file was found, while the Location is the path from where it was actually loaded. For example, if the assembly was downloaded from the internet, its CodeBase may start with "http://", but its Location may start with "C:\". If the file 阅读全文

posted @ 2014-03-05 22:17 幸福框架 阅读(1582) 评论(0) 推荐(0) 编辑

2014年3月4日

ASP.NET MVC:@helper 不能调试

摘要: ASP.NET MVC 的 @helper 不能设置断点,当然我们可以将逻辑移动到扩展方法中,这里介绍另外一种方式,使用:System.Diagnostics.Debug.WriteLine,编程旅途以来,很少使用这个方法,这里记下来,希望下次遇到类似的场景,能立即想到她。 阅读全文

posted @ 2014-03-04 18:55 幸福框架 阅读(565) 评论(0) 推荐(0) 编辑

2014年3月3日

.NET:注意 Primitive 这个小坑

摘要: 背景有个需求,需要递归遍历类型的所有属性(属性的属性),然后对不同的类型做不同的处理,或者只是将类型分为三类:Primitive、Complex 和 Collection。因为 MS 的 Type 提供了 IsPrimitive 属性,这里重点说下我对 Primitive 的期望,原本以为肯定要包含:Decimal,有可能包含:String,可是并非如此。Type.IsPrimitive Property官方地址:http://msdn.microsoft.com/en-us/library/system.type.isprimitive(v=vs.110).aspx。The primitiv 阅读全文

posted @ 2014-03-03 18:48 幸福框架 阅读(726) 评论(1) 推荐(0) 编辑

2014年3月2日

ASP.NET MVC:Form Authentication 相关的学习资源

摘要: 看完此图就懂了看完下面文章必须精通Form authentication and authorization in ASP.NETExplained: Forms Authentication in ASP.NET 2.0How To Implement Forms-Based Authentication in Your ASP.NET Application by Using C#.NET 阅读全文

posted @ 2014-03-02 23:49 幸福框架 阅读(339) 评论(0) 推荐(0) 编辑

2014年3月1日

Quartz:不要重复造轮子,一款企业级任务调度框架。

摘要: 背景第一次遇到定时执行某些任务的需求时,很多朋友可能设计了一个小类库,这个类图提高了一个接口,然后由调度器调度所有注册的接口类型,我就是其中之一,随着接触的开源项目越来越多,我的某些开发习惯受到了影响,其中比较重要的一个是:先查看一下有没有现成的开源项目可以满足需要,如果有,就尽量使用。本文介绍一款任务调度框架:Quartz。Quartz最好的学习地址:http://www.quartz-scheduler.net/documentation/index.html。Hello World! 1 using System; 2 using System.Collections.Generic; 阅读全文

posted @ 2014-03-01 13:04 幸福框架 阅读(1125) 评论(0) 推荐(0) 编辑

2014年2月28日

VisualStudio:如何监控 ADO.NET?

摘要: 背景很多场景下我们都需要监控 ADO.NET,如:查看某些框架(ORM)生成的 SQL。如何在不能使用 SQL Profile 的情况下监控 SQL 呢?VS 为我们提供了一个工具,本文做一些介绍!监控SQL第一步:设置断点。此处省略。第二步:启动调试。此处省略。第三步:打开 IntelliTrace。监控结果 阅读全文

posted @ 2014-02-28 14:35 幸福框架 阅读(593) 评论(0) 推荐(1) 编辑

2014年2月27日

工具:使用过的 API 文档生成工具

摘要: 背景2012 年之前几乎没有为代码增加注释,当然,代码的命名也不见得合理(好的代码胜过面面俱到的注释),后来接触过一些开源框架,优秀的框架都有一个特点:文档和示例非常多,在后来的日子里,几乎会强制自己为代码写注释,可能是有点过犹不及了,不过凡事都会经过这个初级阶段,本文总结一下使用过的文档生成工具。Javascript 文档生成工具Javascript 这种动态语言更应该写注释。YUIDoc网址:http://yui.github.io/yuidoc/。JsDuck网址:https://github.com/senchalabs/jsduck/wiki。C# 文档生成工具SandCastle网 阅读全文

posted @ 2014-02-27 11:13 幸福框架 阅读(16858) 评论(1) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页

导航

我要啦免费统计