Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by List items
Domain-Driven Design Explained: A Real World Example
In our daily development work, we often hear about DDD. But what exactly is DDD? There have been many articles online before, but most of them are lengthy and hard to understand. This article aims to give you a clearer picture of what DDD is all about. What is DDD? DDD (Domain-Driven Design) is a software development methodology for building complex systems by focusing on the business domain. Its core idea is to tightly integrate the code structure with real business needs.
A Better Way to Handle Entity Identification in .NET with Strongly Typed IDs
Strongly Typed IDs are custom types that are used to represent entity identifiers (IDs) in your application instead of using primitive types like int, Guid, or string. Instead of using these primitive types directly to represent IDs, you create a specific class or struct that encapsulates the ID value. This approach helps to make the code more expressive, safer, and easier to maintain. On my website: antondevtips.com I share .NET and Architecture best practices.
Grouping the Same Products in Java
First, one must understand the relationship between Product and Item. A Product can have multiple Items. Simply put, a Product is the product information, and an Item is the option information.
并行化优化KD树算法:使用C#实现高效的最近邻搜索 - 程序设计实验室 - 博客园
本文信息 中文名:《并行化优化KD树算法:使用C#实现高效的最近邻搜索》 英文名:"Parallelized Optimization of KD-Tree Algorithm: Implementing Efficient Nearest Neighbor Search in C#" 本文介绍了如何使用并行计算技术优化 KD 树算法,并使用 C# 编程语言实现了高效的最近邻搜索。首先,我们简要介绍了 KD 树的原理和构建过程,然后详细讨论了如何利用并行计算库在多个 CPU 核心上并行构建 KD 树,从而加速搜索过程。通过实验验证,我们证明了并行化优化能够显著提高 KD 树的构建速度和搜索效率,为大规模数据集下的最近邻搜索问题提供了一种高效的解决方案。 This article presents a parallelized optimization approach for KD-tree algorithm and demonstrates efficient nearest neighbor search implementation in C#.
Megaparsec tutorial
Published on February 23, 2019, last updated October 30, 2021 This is the Megaparsec tutorial which originally was written as a chapter for the Intermediate Haskell book. Due to lack of progress with the book in the last year, other authors agreed to let me publish the text as a standalone tutorial so that people can benefit at least from this part of our work. Japanese translation, Chinese translation.
建议收藏,Java 命名规范(非常全)
在本文中,将从大到小,从外到内,总结Java编程中的命名规范。文中将会涉及到日常工作中常见的命名示例,如包命名,类命名,接口命名,方法命名,变量命名,常类命名,抽象类命名,异常类命名以及扩展类命名等。我将按照项目工程目录结构,从包,类(接口,抽象类,异常类),方法,变量和常量的顺序展开介绍。 本文是 Java 命名规范的介绍,建议收藏转发。 包(Package)的作用是将功能相似或相关的类或者接口进行分组管理,便于类的定位和查找,同时也可以使用包来避免类名的冲突和访问控制,使代码更容易维护。通常,包命使用小写英文字母进行命名,并使用“.”进行分割,每个被分割的单元只能包含一个名词。 一般地,包命名常采用顶级域名作为前缀,例如com,net,org,edu,gov,cn,io等,随后紧跟公司/组织/个人名称以及功能模块名称。下面是一些包命名示例: package org.springframework.boot.autoconfigure.cloud package org.springframework.boot.util package org.hibernate.action...
实例讲解程序中机器学习常见的推荐算法-51CTO.COM
推荐算法是机器学习和数据挖掘领域的重要组成部分,用于为用户提供个性化推荐内容。在.NET中,可以使用不同的算法来实现推荐系统。在本文中,我将介绍三种常见的推荐算法:协同过滤、内容过滤和深度学习推荐系统,并提供相应的.NET源代码示例。 协同过滤推荐算法 协同过滤算法基于用户行为数据,通过分析用户之间的相似性来为用户提供推荐内容。常见的协同过滤算法包括基于用户的协同过滤和基于物品的协同过滤。下面是一个基于用户的协同过滤的.NET示例: using System; using System.Collections.Generic; class CollaborativeFiltering { static void Main() { // 用户-物品评分矩阵 Dictionary<string, Dictionary<string, double>> userItemRatings = new Dictionary<string, Dictionary<string, double>> { { "User1", new Dictionary<string, double> { {...
Wonder8.promotion营销规则引擎,轻松搞掂千变万化的营销玩法 - Think - 博客园
超过10年没有更新过内容了,不知道现在园子的氛围这类文章还适不适合放首页 想着整点内容,也是支持园子! 旺德發.营销 引擎 为了广泛支持营销活动的复杂与灵活,Wonder8.promotion(旺德發.营销)引擎使用专门设计的表达式高度提炼信息,可以轻松表达营销活动与用户选取的商品组合之间匹配范围、要求、折扣方式,可以设定多条营销规则的逻辑联合、分组、优先级,并且支持多种为用户计算最优折扣的策略。 本引擎功能细节较多,建议用以下步骤来学习和应用: 先通过简单需求场景来熟悉API,此时只需要用到表达式(Rule),表达式解释器(Interpreter)和优惠计算策略(Strategy),大部分程序员掌握了表达式语法后,会嫌Builder麻烦而直接拼写表达式字符串,所以Builder都不一定要熟悉,比如: 定义规则:买两台512G的黑或白色iPhone15,折扣400元,三台折扣700元: [#kiPhone15-black-512g#kiPhone15-white-512g].count(2)->-40000...
基于Druid的HiveSQL血缘解析_sql血缘分析工具_fanstuck的博客-CSDN博客
目录 前言 Parser AST Visitor 之前开发的基于Python语言的sqlparse库开发的SQL语言通用解析工具目前已经开源至github,大家如果有需要可以去看:https://github.com/Fanstuck/SQLblood-relationship。我说过做Python的SQL解析算是一个对AST解析树的深入理解。没想到的是基于sqlparse的工具做出sql解析是可行的,这涉及到较多的递归和判断,但是我写的程序应对的SQL语句应该是不多的1,很多条SQL语句都没有测试完还是有一定的风险的。如果大家有想要解析的SQL可以私信发我,将免费提供SQL解析,如果程序功能和兼容性足够完善的话,将再出一篇文章把所有的解析过程详解。 本篇文章主要讲述的是直接利用Druid的功能直接实现血缘解析,就不再过多的去解析其底层AST树的解析了,大致的做法都是相同的。Druid用于解析sql的工具是本身自带,其主要是数据库连接池实现。 Druid 是阿里巴巴开源平台上一个数据库连接池实现,结合了 C3P0、DBCP 等 DB...
Immutability in C#
In software development, an immutable object is one that once created, can't change. Why would you want such an object? To answer that question, it may help to analyze the problems that result from mutating objects. Go back to the basics of what every application does: create, retrieve, update, and delete data (the CRUD operations). The core of any application manipulates objects.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with List
Contact List, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack