Yep, it also makes the site much more extensible. I don't know much about PHP, but in ASP, we have a kind of dual layering: css for appearance, and masterpages for site HTML. So we can switch CSS themes, but we can also swap in or out the entire logic framework, too.
Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: November 17, 2024, 10:55 pm
Thread Rating:
Help me with my new website!
|
(February 3, 2018 at 9:11 pm)bennyboy Wrote: Yep, it also makes the site much more extensible. I don't know much about PHP, but in ASP, we have a kind of dual layering: css for appearance, and masterpages for site HTML. So we can switch CSS themes, but we can also swap in or out the entire logic framework, too. There are various PHP template engines that do something similar. Templates can inherit from one another, so you'll generally have a master layout template, and then templates for various things (blog side bar, interactive map, repeating items, etc.). It's a lot like ASP.NET Web Form masterpages. If you're interesting in taking a look, I use Twig because it comes as a part of Symfony (a lot like how Razer is the default for ASP.NET MVC): https://twig.symfony.com/ Quote: Why would the webhost care if you split your code up?Well, if I make a separated JS file and a CSS file along with the HTML file, the browser will have to connect to the server three times to download all of them, and now it only has to connect once. Isn't that how it works? Quote: You should invest all the time it takes to redo things properly, preferably using only .css for formatting the UI.I mean, the primary reason I can't change the appearance of my app is that I was using loads of absolute positioning inside the CSS. Is there an alternative to it for such apps? Anyway, in the meantime, I've created another web-app to practice the design and code-structuring on. I suppose it's easier to start doing something from scratch than to try to correctly structure the 2000 lines of badly structured code, especially since I only have a very vague idea what a well-structured code is. This new app converts arithmetic expressions to assembly (unlike linguistics, that's something we both know about). Right now, it's 500 lines of code, almost all of it is the competitive-programming-style implemented algorithm (it does no input validation and is hard to extend) in JavaScript. http://flatassembler.000webhostapp.com/compiler.html So, do you have some ideas for it that are easy to program? And how should I program them?
I didn't read the whole topic TBH, but as an advice for you and for all web programmers, and web programmers' crowd:
Learn from early stages, how to target both mobile phones and desktop computers. This is not a scary advice. Use "bootstrap" -for example- to produce your site: http://www.getbootstrap.com Anyways; this is my advice to you: leave the static universe; and enter the responsive, mobile first world. You will: 1-Develop better sites 2-Learn tons of tricks 3-Open your design capabilities. (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 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 (February 11, 2018 at 5:07 am)AtlasS33 Wrote: I didn't read the whole topic TBH, but as an advice for you and for all web programmers, and web programmers' crowd: Fuck off.
It's amazing 'science' always seems to 'find' whatever it is funded for, and never the oppsite. Drich.
(February 3, 2018 at 9:27 pm)KevinM1 Wrote:(February 3, 2018 at 9:11 pm)bennyboy Wrote: Yep, it also makes the site much more extensible. I don't know much about PHP, but in ASP, we have a kind of dual layering: css for appearance, and masterpages for site HTML. So we can switch CSS themes, but we can also swap in or out the entire logic framework, too. Are you a lecturer in a computer-related course, by any chance? You write like an academic uni professor when explaining this stuff. RE: Help me with my new website!
February 11, 2018 at 9:11 am
(This post was last modified: February 11, 2018 at 9:13 am by WinterHold.)
(February 11, 2018 at 8:24 am)Succubus Wrote:(February 11, 2018 at 5:07 am)AtlasS33 Wrote: I didn't read the whole topic TBH, but as an advice for you and for all web programmers, and web programmers' crowd: Stick to the context of the topic; please. RE: Help me with my new website!
February 11, 2018 at 11:21 pm
(This post was last modified: February 11, 2018 at 11:28 pm by bennyboy.)
(February 10, 2018 at 3:54 pm)FlatAssembler Wrote:No, it isn't.Quote: Why would the webhost care if you split your code up?Well, if I make a separated JS file and a CSS file along with the HTML file, the browser will have to connect to the server three times to download all of them, and now it only has to connect once. Isn't that how it works? The javascript and .css files will be cached and reused by your browser, saving bandwidth overall. The cost of an individual connection for text files is so unimportant that it's 100% not worth considering at all; people have internet hardware capable of handling dozens of simultaneous connects pumping away at megabytes/second each. But either way, it really doesn't matter. There's no amount of text file that you are likely to send that will have much impact on any modern user. Consider this: I have the entire texts of some children's books in my database, like Alice in Wonderland and so on. The text for one book will download in maybe 0.1 seconds or less. Every .css file you have ever written, or will ever write, will not all together amount even to a tiny portion of that one interaction. Quote:Yes. You have .css files with class names defining how you want objects to be positioned. You do not have "loads" of css, because the entire point of css is to prevent you from having to define a lot of stuff in your markup.Quote: You should invest all the time it takes to redo things properly, preferably using only .css for formatting the UI.I mean, the primary reason I can't change the appearance of my app is that I was using loads of absolute positioning inside the CSS. Is there an alternative to it for such apps? I think when you say you have "loads" of css, what you mean is you are injecting css attributes into controls that you are creating using javascript. Don't do this. Even when making custom controls, you give them .css class names-- then whenever you change your styles, those 100 controls will be styled properly. The only time you do programmatic .css is when you want to change attributes client-side that cannot be rendered server side: for example, if you have a button to grow or shrink fonts as the user prefers and don't want to post back the whole page. Moderator Notice
Warning, Speed bump ahead. Please know that unnecessary insults do not advance any proper discussion and may result on a PD violation. Flame wars are not allowed on this forum. |
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread | Author | Replies | Views | Last Post | |
Please give me link voting english website | A-g-n-o-s-t-i-c | 4 | 1729 |
December 24, 2013 at 2:29 am Last Post: A-g-n-o-s-t-i-c |
|
Website shows bad automated translations: a hoot! | Anymouse | 3 | 2191 |
June 30, 2011 at 9:59 pm Last Post: Anymouse |
|
Answers in Genesis website hijacks web history! | Tiberius | 31 | 11853 |
December 13, 2010 at 3:32 am Last Post: Minimalist |
|
Porn Website Sued For Spying On Users | Tiberius | 15 | 8996 |
December 10, 2010 at 5:42 pm Last Post: Violet |
Users browsing this thread: 2 Guest(s)