(January 28, 2018 at 9:33 pm)bennyboy Wrote:(January 28, 2018 at 12:52 pm)LastPoet Wrote: I know C/C++ isn't used for webdesign, but perhaps such a tool should be developed. A tool that enabled you to do high level design, but also allowed to get to the micromanagement.
I hear people complaining about how hard pointers are, and segfaults are a thing, but direct access to memory by location alows for neat tricks. It adds much more customization.
You have to understand two things:
1) Webpages right now are html with java scripts and css. html describes how content is organized and sends content to the client, java scripts control how the client can interact with the data without posting back to the server, and css determines how the data is visually presented. That pretty much covers everything you could want to do.
2) ANY programming language can (fairly easily) generate html, javascript, and css files.
If you are the owner of a physical system connected to the internet, then so long as you are capable of receiving incoming page requests and sending out html files via TCP/IP, you are officially operating a server. You want to use C++ to generate your html files? Fine, you can do that. After about 50 years, you may end up creating something like the Apache server technology, which actually IS written in C.
The same thing goes for browsers. Internet Explorer was written in C++. In fact, I think you'd have a very hard time finding a PC browser that WASN'T developed in C or C++.
But that's not the web programmer's problem. You don't GET direct access to hardware memory or the hardware operating system, because nobody is stupid enough to give up that access. Nor would you want to-- do you want to have to deal with how Windows drivers access memory, or Linux, or Android, or iOS, or would you rather let THEM deal with that stuff, and just send them the data, the data handlers, and the visual presentation information?
Last thing: ASP.NET allows you to do some pretty robust programming using C# "codebehind" files. You can use the Microsoft or other .NET libraries for graphics processing, sound editing, and a lot of other things, add files to your homepage, and then. . . pump out those same ol' html files. I recommend it highly.
I explained myself poorly. No way I would be using C or C++ to do webdesign. What I meant was that there could be a tool that in webdesign gave you the range of using templated stuff, but allowed a lot of customization to advanced webdesign. It is not my thing as you might figure, but in native programming both C/C++ are very versatile.
Ofc I wouldn't allow direct memory acess either. You should pardon my lousy ability to express myself