J2EE vs. NET, Java vs. C#:比较公正的评价

大厂面经:京东大数据面试题及参考答案(3万字长文) Kafka是一个开源的分布式流处理平台,由 LinkedIn 开发并在 2011 年贡献给 Apache 软件基金会。高吞吐量:能够处理大量的数据流,适合实时数据管道。持久性:数据存储在磁盘上,确保数据不丢失。容错性:通过数据复制提供高可用性。扩展性:支持水平扩展,易于增加更多节点。Kafka 的核心概念Topic:逻辑上的数据流,可以理解为主题。Producer:生产数据的应用程序。Consumer:消费数据的应用程序。Broker:Kafka 集群中的服务器节点。Partition。 阅读详情

J2EE vs. NET, Java vs. C#:

Since there's been plenty of discussion on these topics, I thought I'd write down my own views on these matters. For the record, just in case someone questions my experience in languages and libraries, I was one of the first adopters of Smalltalk, C++, and Java, taught all three professionally for several years, taught programming languages at UT Dallas, wrote an ORB in Smalltalk, wrote the first portable STL toolkit for C++, wrote the ObjectSpace Systems<ToolKit> cross-platform systems libraries, wrote the JGL generic collections library and the multi-protocol ObjectSpace Voyager Java ORB. And of course, I wrote a good deal of the TME Electric XML toolkit and GLUE web services platform for Java. Sorry for the long-winded introduction, but establishing a strong background in these areas helps to establish a basis for my opinions, and throws out any claims that I am some kind of Java-hater!

Historically, languages build on each other, borrowing the best ideas and then throwing in some new ones. Some languages evolve, some stagnate, and some die. C -> C++ -> C# is a good example of an evolution, and Smalltalk is an example of a language that I loved but is pretty much dead.

C# was designed by Anders Hejlsberg, a long-time hero of mine, the force behind Turbo Pascal and Delphi, and a guy with an obvious talent for language design and implemention. In C#, he's taken a lot of the best ideas from previous languages, integrated some new ones of his own, and come up with a natural evolution of where Java was heading. For example, the ability to associate attributes with any element supports declarative programming in an elegant and powerful way. C# makes iteration simpler and more natural for developers, and auto-boxing simplifies manipulating collections of primitives. There are many other nice features of C# that are covered in several articles I've read.

It's also significant to note that several new C# features have already been proposed and will be implemented soon, making C# one of the freshest and quickly evolving languages on the market.

The Java language, on the other hand, had a strong initial start and then essentially stagnated after Java 1.1. The only new thing in the last 6 years has been the assert keyword, which is not much to write home about. I'm definitely don't like languages that include an entire kitchen sink of features, but C# shows the kinds of features that could easily have been added to Java.

For a while, Sun was sitting in the cat bird's seat with a great lead in the languages and libraries space. Microsoft didn't want to adopt a strategic language that it could not improve upon, so it decided to create its own language that could be evolved at a reasonable pace. Now that C# has gone beyond Java, Sun has got to quickly evolve Java or watch it slowly fade away. I think that IBM realizes this, and I hope that it's working hard behind the scenes to rectify the situation.

It's frustrating but understandable that James Gosling holds disdain for C#. Gosling keeps going on about how C# is a clone of Java, but it's not - it borrows the best from Java and then adds improvements of its own, just like Java improved upon previous languages. That's the way it works, regardless of which company is involved!

Another thing about C# that seems misunderstood by much of the Java community is the concept of "unsafe" code. The idea behind "unsafe" code is that a programmer should be able to access low-level programming constructs without having to clumsily drop into a different language. In Java, you have to use JNI to link with libraries written in a language like C to get at low-level constructs. In C#, you can use the C# language to get at low-level constructs, and code which does this is marked specially so that the executing environment is aware of it and can prevent code flagged in this way from executing. This seems an elegant way of providing the full range of expressive power within a single language, less error prone, and easier to manage.

All that being said, I write my code in Java these days because of its portability.

Enough of Java and C#. What about J2EE and .NET?

The great thing about Java when it arrived was its simplicity and portability. Over time, the J2EE libraries have become pretty complex IMHO. For example, there have been many conversations on various news groups complaining about the learning curve and performance associated with EJB. .NET is definitely simpler than EJB for building server-side components, and so Java badly needs a new and simpler way to build portable and scalable server-side components. This of course is the reason that TME launched GLUE and has been working on its rapid evolution.

The main advantage that J2EE has over .NET is portability. Whether this advantage remains is primarily a business decision for Microsoft. There is no technical reason why the core .NET framework can't be made cross-platform, and several groups are already working on doing this. Heck, CLR was designed from the ground-up to support this! So J2EE is an uneasy situation in which a simple snap of Bill Gate's fingers results in its primarily advantage being neutralized.

The best defense for Java/J2EE is fairly straightforward:

- standarize Java and allow some of the language wizards at IBM and other companies to evolve the language at a similar pace to C#.

- come up with a far simpler server-side programming alternative to EJB

Time is running out......

Claude Code 任务编排 头脑风暴与 疯狂拷问:Superpowers vs Grill-me 硬核对比与工程落地 Superpowers和Grill-me是AI编程中的互补工具:Superpowers提供工程化开发流程(从需求梳理到代码审查),确保规范执行;Grill-me通过持续追问帮助厘清需求,避免方向偏差。两者结合形成"构思-拷问-执行"工作流,前者负责方案生成与落地,后者专注需求审查。根据场景选择:个人项目可用Grill-me快速澄清需求,企业项目推荐Superpowers全流程,复杂开发则建议组合使用。它们分别解决"如何落地"和"是否对齐"的问题,共 阅读详情

相关推荐

Unity中的坐标系及其转换方法

Unity中的坐标系及其转换方法 Unity中有四种坐标系: 1.全局坐标系 World Coordinate System 全局坐标系是用于描述场景内所有物体位置的方向的基准,也称为世界坐标系,Unity中创建的物体都是以全局坐标系中的坐标原点(0,0,0),来确定各自的位置的,可以使用transform.position来获取游戏对象的世界坐标。 2.局部坐标系 Local Coordinate System 局部坐标系也称为模型坐标系或物体坐标系,每个物体都有自身独立的物体坐标系。当物体移动或改变方向

Z_hongli的博客 8185

JAVA还是C#??J2EE还是.Net??

最近,我苦恼于研发中心编程语言的选择上,JAVA还是C#??J2EE还是.Net??其实网上有关这两个语言的选择的文章很多,可谓仁者见仁,智者见智。其实这两个语言或者说平台的 优缺点是显而易见的,关键是哪个更能适合自己的情况。JAVA跨操作系统,现在的金融、电信、大型企业又多半运行类UNIX系统。C#明显学习曲线好,开发周期短。我们呢??

Blackart的专栏 1206

别再只放按钮了!巧用微信小程序‘长按识别’功能,打造无缝加群体验

本文深入探讨了微信小程序'长按识别'功能在社群运营中的创新应用,通过简化加群流程至一步操作,显著提升用户转化率。文章详细解析了技术实现细节、UI/UX设计策略,并对比了与企业微信API的适用场景,为开发者提供打造无缝加群体验的完整解决方案。

weixin_42627853的博客 440

J2EE与.NET技术架构的比较

一、J2EE简介 J2EE体系结构图:                          1.组件-容器模型 J2EE是一个基于组件-容器模型的系统平台,其核心概念是容器。容器是指为特定组件提供服务的一个标准化的运行时环境,Java虚拟机就是一个典型的容器。组件是一个可以部署的程序单元,它以某种方式运行在容器中,容器封装了J2EE底层的API,为组件提供事务处理、数据访问、安全性、持久

康 2万+

手把手拆解固态电池成本:2030年真能比液态电池便宜30%吗?

本文深度解析固态电池成本结构,探讨2030年实现比液态电池便宜30%的可行性路径。通过拆解正极材料、负极材料和固态电解质的成本演变,分析关键技术对降本的影响,并预测产业链协同效应下的成本优化趋势。文章指出,在材料创新、设备国产化和政策支持等多重因素推动下,固态电池有望在2030年实现显著降本目标。

kite3的博客 421

Verilog除法器(32位无符号+带符号)

32位无符号除法器设计 恢复余数法: 恢复余数除法的基本思路是从“部分余数”中减去除数,如果结果为负(不够减),则恢复原来的部分余数,商0. 寄存器使用: reg_r 存放被除数a reg_b 存放除数b reg_r 存放余数(初始清零) 具体做法: 做减法时,减数是reg_b中的除数,被减数是reg_r中的余数左移一位,最低位由reg_q(被除数)的最高位补充。为了能够判断相减结果的正...

qq_38600065的博客 1万+

关于.Net与J2EE的比较,到底用微软平台还是Java平台的问题

今天看到了一个关于2个平台快餐型比较的博文,里面基本的观点就是.NET比Java EE要好很多。一些网友还认为这是一个广告贴,是枪手文,我的个人看法和一些网友的看法相同:不在于用哪个平台,而在于你做出好的系统。我国通讯业以前只有【中国电信】,后来分家了,然后又分家了,然后又合并了,为什么呢?一家独大的东西,必然遭到大家的反对,但如果出不来足以抗衡的第二家(会被第一家收购或者搞死

老紫竹的专栏 6033

BACnet/IP BBMD跨网段通信深度解析与最佳实践

本文介绍了在BACnet/IP网络中通过BBMD实现跨子网设备通信的关键配置方法。重点阐述了广播分发表(BDT)中掩码设置的重要性:使用子网掩码(255.255.255.0)会导致路由器拦截广播消息,而必须采用主机掩码(255.255.255.255)才能启用单播隧道机制,使BACnet广播消息封装为可路由的单播UDP包。文章详细说明了BDT条目的正确配置格式、BIP广播地址的作用,并提供了验证步骤,强调在跨网段场景中,正确设置掩码是确保设备发现和通信成功的关键因素。

零一架构师的专栏 1542

浅析J2EE与.NET平台优劣

毫无疑问,程序员,软件开发商,企业IT经理一直都在密切的关注着J2EE和.NET的发展,但是选择一个在性能,价格,时间上满足他们需求的平台却并不是一件简单的事情。本文试图在技术上做一个简单的比较,希望对于他们做选择时有所帮助。 一.技术概观 在表现形式上,J2EE是一组规范,而.NET更象是一组产品。但它们的目的都是为了企业应用提供分布式的,高可靠性的解决方案.它们在架构上有着很多的相似之处,下表

沉睡海洋的专栏 1562

PADS(1)——用PADS Logic手动创建原理图

1、 打开PADS Logic 2、选择文件——>库 3、下拉菜单——>选择一个你想要把元件创立在哪个库(一定确保你的库里面包含了common这个库),我这里选择niu这个库——>点击元件——>点击新建 注:一定要点击元件,否则你创立的库不是元件最后不能使用在原理图绘制中。 4、点击图标,进入编辑图形界面;期间会跳出一个是否创建NEW PART的界面,直接确认即可 5、点击完确认以后会出现以下界面 REF:是指元件序号 ,如R1、R2、C3、C4 那个点是元器件原点,一般我们

C~Tian 8665

J2EE vs. NET, Java vs. C#:比较公正的评价 (转)

J2EE vs. NET, Java vs. C#:比较公正的评价 (转)[@more@]J2EE vs..NET, Java vs. C#: Since there's been plenty of discussion o...

ciya3282的博客 116

【数据集】中国2003年至2022年全天空每日气温数据集

中国2003年至2022年全天空每日气温数据集

WW、forever的博客 606

Java vs C# —— 开发平台--- .Net? J2EE? 谁主沉浮

 对于 .NET 技术和 Sun J2EE (Java 2 Enterprise Edition, J2EE) 的对比,许多客户希望了解 Microsoft 对此的看法。事实上 .NET 和 J2EE 之间的比较很难进行,原因如下。1. .NET(正式名称为 Windows .NET 框架)是作为 Microsoft Windows 组成部分的多种技术的优异集合;而 J2EE 只是一种书面规范

饮马流花河 1609

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

Java vs. .NET程序员的困惑

Java vs. .NET程序员的困惑 <!-- alimama_pid="mm_10249644_1605763_4929893"; alimama_titlecolor="0000FF"; alimama_descolor ="000000"; alimama_bgcolor="FFFFFF"; alimama_bordercolor="E6E6E6"; a

7998

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

caffe solver参数:net,train_net,test_net

报错: Check failed: param_.test_iter_size() == num_test_nets (1 vs. 0) test_iter must be specified for each test network.解决: solver中参数设置可能存在问题,检查用的是不是 train_net: "~/train_val.prototxt 如果是的话那么报错就

yunyi4367的博客 2680

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

caffe 代码大揭秘

啊,起这么唬人的名字确实不符合做科研应该有的心态,但是作为一个菜鸟,让我“揭秘”一下吧,如果某一天我成了大牛,我一定会低调的。看caffe的源代码的时候,在网上看到了很多不错的资料,我觉得知乎上甘宇飞的回答对我帮助最大,但是有些地方对我来说还是太简洁了,希望把我的经验分享出来,也做个记录,代码肯定还是要自己看的,看得时候拿这个做一个参考还是可以的,废话不多说,把我看的流程展示如下: 就是按照cnn

sdhk111的博客 4223

关于solver文件中test_iter和test_interval设置问题

转自这里 solver.prototxt文件: net: "models/bvlc_reference_caffenet/train_val.prototxt" test_iter: 100 test_interval: 1000 base_lr: 0.01 lr_policy: "step" gamma: 0.1 stepsize: 100000 display: 20 max_iter:

小咸鱼_的博客 1万+

Java EE 进阶:11. SpringBoot 统一功能处理(第二弹):DispatcherServlet 源码分析+适配器模式

Java EE 进阶:11. SpringBoot 统一功能处理(第二弹):DispatcherServlet 源码分析+适配器模式

要努力去发光,而不是被照亮~ 337

二分查找:在有序数组中查找最接近 target 的元素索引

本文分析了二分查找中寻找最接近目标值元素的实现问题,指出原代码存在溢出风险、冗余计算及平局处理不清晰等缺陷。提出更优解法:通过二分收敛至相邻两位置,循环后仅比较两个候选值,使用long避免整型溢出,逻辑更简洁、安全。该方法在负数、重复值、平局等场景下表现更稳健,时间复杂度保持$\mathcal{O}(\log N)$,且代码可读性与维护性显著提升。

qq_38030465的博客 331

Spring Boot + LangChain4j 实战多模态:上传截图、流式输出、单 Jar 部署全流程

本文介绍一个纯Java实现的截图转文字Demo,基于JDK21 + Spring Boot 3.5.16 + LangChain4j 1.20.2 + Vue3,支持灵活传参、流式输出与Markdown自动折叠。无需Python或GPU,仅通过云端多模态接口即可完成图像理解与文本生成。重点解决接口变更、流式调用、图片压缩、并发限流等实战坑点,强调Java在多模态场景下的可行性与工程优势。源码已开源,一键运行即可体验。

sch7979的博客 668

《阿里巴巴 Java 开发手册》的 MySQL 核心规范

既然你平时经常自己练习表结构设计,那这份提炼自《阿里巴巴 Java 开发手册》的 MySQL 核心规范,绝对是你日常建表和写 SQL 时的“避坑宝典”。我帮你把最核心的【强制】级别规范,按和。

qq_26889291的博客 348

Java 面向对象基础(类、对象、封装)

System.out.println(name + "正在学习");System.out.println("年龄非法");• 类:模板、图纸,抽象的;对象:根据模板new出来的实例,具体的。• private 私有:只能在本类里面访问,外面不能直接点调用。if(a>0 && a<120){ // 加校验。• this.成员变量:区分成员变量和局部变量(同名的时候)• this(...):调用本类其他构造方法,必须写在第一行。// 成员变量(属性)// 成员方法(行为)// set 设置年龄。

2601_95661678的博客 191

字节流基础

IO(Input/Output)流用于实现程序与外部设备(文件、网络、控制台等)之间的数据传输,Java 中所有 IO 相关类都位于java.io包下。输入流:将外部设备的数据读取到程序中输出流:将程序中的数据写出到外部设备字节流:以字节为最小单位传输数据,可处理所有类型文件(文本、图片、音频、视频等)字符流:以字符为单位传输数据,专门用于处理纯文本文件。

Sarvartha的博客 211
上一篇: 没有救世主
下一篇: 大括弧之战
Nightmare
博客等级 码龄26年 70粉丝 118原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址