No More Win32 Shit Please
novakon2016/06/14软件综合 IP:广东

We live in an era that so much people in this world code so well, with so many options out there for them, that they don't necessarily all work for Microsoft.

Historically Microsoft is both pioneering and succesful (and they still are, commercially). However Win32 APIs, short for What to call from C or VisualBasic to make the world better, isn't that good of a choice for those who want to Actually make some useful applications, as of 2016.

[修改于 8年6个月前 - 2016/06/14 02:39:00]

来自:计算机科学 / 软件综合
3
已屏蔽 原因:{{ notice.reason }}已屏蔽
{{notice.noticeContent}}
~~空空如也
novakon 作者
8年6个月前 IP:广东
821450

Applications are made to solve problems, just like programming languages are made to describe problems.

Over the recent months @acmilan have posted heavily on topics like Encoding, Charset, and API compatibility when dealing with anything non-ASCII.

And I did read some of those articles.

To be fair, those articles did address the problem of How to process strings in VisualSomething without fear in every possible case, but did not generally help (and will never) with the problem of How to process strings with least effort and maximum efficiency.

引用
评论
加载评论中,请稍候...
200字以内,仅用于支线交流,主线讨论请采用回复功能。
折叠评论
novakon作者
8年6个月前 修改于 8年6个月前 IP:广东
821451

In order to run anything on Windows, one will certainly need to generate some system calls, that involves Win32 API. But string operations should really be separated from API calls themselves.

In the old days where UTF-8 was not famillar, having code pages are great... Just not that great today. Today we have tons of third party solutions that can handle strings of all forms properly, so it simply makes no sense to discuss heavily around that. After all, this forum is about developing applications on Windows, not avoiding traps set by the Evil Microsoft / turn the framework over to get the job done, am I right?

引用
评论
加载评论中,请稍候...
200字以内,仅用于支线交流,主线讨论请采用回复功能。
折叠评论
acmilan
8年6个月前 修改于 8年6个月前 IP:四川
821458

You are right. Maybe I am overthinking about effects on VC++ not supporting UTF-8 and broken Win32 Console NLS. The former problem might not be M$'s fault, but the English-only library's author's. Also, not so many libraries have been ported to Windows correctly, in fact, if had been, M$ would not have made the LXSS. So it does not really matter. The latter one is M$'s, but some other UIs (eg. TextBox in WinForms) or IPCs (eg. files, pipes, sockets) can replace it. As a conclusion, avoid using fxxking VC++, English-only libraries and Win32 Console ourselves, and program happier.

引用
评论
加载评论中,请稍候...
200字以内,仅用于支线交流,主线讨论请采用回复功能。
折叠评论

想参与大家的讨论?现在就 登录 或者 注册

所属专业
上级专业
同级专业
novakon
学者 机友 笔友
文章
1256
回复
8386
学术分
16
2008/03/29注册,2年10个月前活动

已走,勿送

主体类型:个人
所属领域:无
认证方式:手机号
IP归属地:未同步
文件下载
加载中...
{{errorInfo}}
{{downloadWarning}}
你在 {{downloadTime}} 下载过当前文件。
文件名称:{{resource.defaultFile.name}}
下载次数:{{resource.hits}}
上传用户:{{uploader.username}}
所需积分:{{costScores}},{{holdScores}}下载当前附件免费{{description}}
积分不足,去充值
文件已丢失

当前账号的附件下载数量限制如下:
时段 个数
{{f.startingTime}}点 - {{f.endTime}}点 {{f.fileCount}}
视频暂不能访问,请登录试试
仅供内部学术交流或培训使用,请先保存到本地。本内容不代表科创观点,未经原作者同意,请勿转载。
音频暂不能访问,请登录试试
支持的图片格式:jpg, jpeg, png
插入公式
评论控制
加载中...
文号:{{pid}}
投诉或举报
加载中...
{{tip}}
请选择违规类型:
{{reason.type}}

空空如也

加载中...
详情
详情
推送到专栏从专栏移除
设为匿名取消匿名
查看作者
回复
只看作者
加入收藏取消收藏
收藏
取消收藏
折叠回复
置顶取消置顶
评学术分
鼓励
设为精选取消精选
管理提醒
编辑
通过审核
评论控制
退修或删除
历史版本
违规记录
投诉或举报
加入黑名单移除黑名单
查看IP
{{format('YYYY/MM/DD HH:mm:ss', toc)}}