亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Home Web Front-end CSS Tutorial Simple & Boring

Simple & Boring

Apr 22, 2025 am 10:21 AM

Simple & Boring

The term "simple" in web design and development is quite ironic. The goal of almost every project contains the word "concise", which has become a cliché. No one would say at a project launch conference: "Team members, design something complicated for me. Oh, and make sure the implementation process is just as complicated. Over-design, okay?"

Of course, everyone wants simplicity. A simple design means that customers can understand and like it. We also hope that the development process will be concise and clear. No one dreams of racking his brains at work every day to fix a bug.

However, there is much more to discuss about simplicity. It's hard to argue that over the years, web development has become easier. Therefore, this word has been lingering in the mouths of many web designers and developers lately. Let's talk about other people's views on simplicity.

Bridget Stewart recalls her frustrations in her battle against overengineering in her article “Simpler Web: I agree.” After she was hired as a UI implementation expert and was given the task of playing videos on click...

I looked inside the code, lost in all looping functions and variables, and couldn't figure out what the code should do. I can't find any cited HTML<video></video> Label. I can't see where the link or button is generated. I'm lost.

I asked him to explain what these functions do so I can help figure out why, because the browser can play videos without excessive intervention. But he didn't succeed in getting me to understand what he built, but argued with me whether this could be possible. At first I calmly tried to explain to him that I had done it many times at my previous company, so I was absolutely sure I could do it. Things get intense as he continues to reject my explanation. After I yelled at him (I know, this is not the most professional way of behaving), I went back to my workspace and started a repository branch to implement it. After 20 minutes, I finished the work.

The main problem here seems to be that this guy is a persevering guy and his complex approach actually hinders the completion of the job.

Simplicity on the web usually means letting the browser do things for us. How many times have you seen complex select menu redesigns?<select></select> Elements are easy to use or easy to access?

Jeremy Wagner wrote in Make It Boring:

When simplicity becomes the default, extremely easy-to-use designs and architectures are created. This is why simple HTML works so well. It perfectly solves the problem of presenting documents to the screen, and we haven't even considered the thought of carefully designed in user agent style sheets that provide its extremely tedious way of rendering. We can learn from this, especially in the age of increasing number of websites being used as web applications, making them more resilient by adhering to semantics and native web technologies. I guess the rise of static website generators—and websites that do as much server-side rendering as possible—is a symptom of the industry’s desire to get this resilience.

As they said, do less. Lyza Danger Gardner found a lot of this value in her own work:

…When we build the future web, we need to do as little as possible.

This is not an excuse for laziness or evasion of responsibility—these traits may not be common among successful web developers. Nor is this suggesting that we build bland, cookie-cutter websites and applications, sacrificing all nuances or highlights for greater compatibility.

Instead, it is a call for simplicity and elegance: prioritize commonality, handle differentiation carefully, and advocate consistency in the creation and application of web standards.

Christopher T. Miller wrote in "Simpler Web":

Should we find something simpler and easier to access?

I think we can. By simplifying our website, we can achieve greater coverage, better performance, and more reliably convey the core information of any website. I think we saw this in a heated discussion around user experience, but that can't be limited to the UX team. Developers need to be responsible for the complexity they add to the web.

Remember that the complexity we add to our website builds is optional. We usually do this for good reason, but we can also not do it. Garrett Dimon:

Today, you can build a robust, reliable and fully responsive web application using just front-end semantic HTML. No images are required. No CSS required. No JavaScript required. This is entirely possible. It will run in every modern browser. It is easy to maintain. As far as web experience goes, it may not meet the standard definition of beauty, but it will work. In many cases, it is easier to use and access than those built with modern front-end frameworks.

This is not to say that this is the best way to do it, but it is a reminder that the web works fine without all the layers we add. Things go wrong when we add these extra layers. Or, if we ignore good markings and CSS in the beginning, we start with something that has been damaged and then spend time trying to get it to work again.

We assume that complex problems always require complex solutions. We try to solve complexity by inventing tools and techniques to solve problems; but in this process we create another layer of complexity, which in turn leads to a series of problems of our own.

——Max B?ck, “On Conciseness”

The worst reason to choose a complex solution is that it’s new, and this “novelty” will make you feel that choosing it will let you master the technology and do your job well. Old and boring may be exactly what you need to do your job well.

Dan McKinley wrote:

"Bored" should not be confused with "bad". Some techniques are boring and terrible. You shouldn't use any of these techniques. However, there are many technical choices that are both boring and good, or at least good enough. MySQL is boring. Postgres are boring. PHP is boring. Python is boring. Memcached was boring. Squid is bored. Cron is bored.

The benefit of boredom (so constrained) is that the function of these things is well known. But more importantly, their failure modes are well known.

Rachel Andrew wrote that choosing mature technology for the CMS she built is obvious because it is what her clients have.

You will hear less and less news about old and boring technologies. If you are reading a lot of tech news, you probably won’t read a lot of blog posts about old tech and boring tech. This is really bad, I personally like it. But I understand that publications need fresh writing, and writers are not very interested in topics that have been repeatedly discussed for decades.

As David DeSandro said, "new technology will cause heated discussion." When there is nothing to say, you say nothing.

You won't hear about TextMate because TextMate is outdated. What tweets would I post? Still using TextMate. Still good.

While we hear more about new technologies, old technologies are more well known , including what it is not good at. It would be great if the need for an updated technology (probably more complex one) is because it solves known pain points, but if not…

You can absolutely stick to what works for you. The longer you use something, the clearer its pain points will be. When you are ready to solve these pain points, try new technologies. Don't be forced to change your workflow because of hot discussions. New technology will cause heated discussion, but that doesn't mean it's better.

Adam Silver said a boring developer was full of questions:

"Will debugging code be more difficult?", "Can performance be degraded?" and "Will compile time slow me down?"

Dan Kim is also proud of his boredom:

I want to confess-I am not a rock star programmer. I'm not a hacker either. I don't understand ninjutsu. No one ever called me a wizard.

Despite this, I am still proud that I am a good, reliable programmer.

Complexity is not the enemy. Complexity is valuable. If the content we work has no complexity, it will be much less valuable because nothing can slow down the competition. Our job is complexity. Or rather, our job is to manage the level of complexity so that it is both valuable and manageable.

Santi Metz has a great article that goes into various aspects of this, part of which is about considering how much complex code needs to be changed:

We hate complexity, but if the code never changes, it will not cause us any losses.

Your CMS can be extremely complicated behind the scenes, but if you've never touched it, who cares? But if your CMS limits what you can do and you spend a lot of time fighting it, then this complexity is very important.

Reading Sandi's analysis is satisfying because it can predict where the code breaks, and these points are defined by complexity. "Exception class" (the most error-prone part of the code base) can even be recognized without even looking at the code base:

I'm not familiar with the source code of these applications, but even if I don't see it, I'm very confident to make some predictions about exception classes. I suspect them:

  1. Larger than most other classes,
  2. Full of conditional statements, and
  3. Represents the core concepts in the domain

I feel like I'm seen.

Cap Watkins wrote in "Born Designer":

Boring designers are trustworthy and valued because people know they work for the product and users. Boring designers ask questions and rely on the experience and expertise of others, building more trust over time. They rarely assume that they know the answer.

A boring designer may be one of the best leaders a team can have.

So be excellent. Be bored.

Be bored!

The above is the detailed content of Simple & Boring. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1488
72
CSS tutorial for creating loading spinners and animations CSS tutorial for creating loading spinners and animations Jul 07, 2025 am 12:07 AM

There are three ways to create a CSS loading rotator: 1. Use the basic rotator of borders to achieve simple animation through HTML and CSS; 2. Use a custom rotator of multiple points to achieve the jump effect through different delay times; 3. Add a rotator in the button and switch classes through JavaScript to display the loading status. Each approach emphasizes the importance of design details such as color, size, accessibility and performance optimization to enhance the user experience.

Addressing CSS Browser Compatibility issues and prefixes Addressing CSS Browser Compatibility issues and prefixes Jul 07, 2025 am 01:44 AM

To deal with CSS browser compatibility and prefix issues, you need to understand the differences in browser support and use vendor prefixes reasonably. 1. Understand common problems such as Flexbox and Grid support, position:sticky invalid, and animation performance is different; 2. Check CanIuse confirmation feature support status; 3. Correctly use -webkit-, -moz-, -ms-, -o- and other manufacturer prefixes; 4. It is recommended to use Autoprefixer to automatically add prefixes; 5. Install PostCSS and configure browserslist to specify the target browser; 6. Automatically handle compatibility during construction; 7. Modernizr detection features can be used for old projects; 8. No need to pursue consistency of all browsers,

What is the difference between display: inline, display: block, and display: inline-block? What is the difference between display: inline, display: block, and display: inline-block? Jul 11, 2025 am 03:25 AM

Themaindifferencesbetweendisplay:inline,block,andinline-blockinHTML/CSSarelayoutbehavior,spaceusage,andstylingcontrol.1.Inlineelementsflowwithtext,don’tstartonnewlines,ignorewidth/height,andonlyapplyhorizontalpadding/margins—idealforinlinetextstyling

Creating custom shapes with css clip-path Creating custom shapes with css clip-path Jul 09, 2025 am 01:29 AM

Use the clip-path attribute of CSS to crop elements into custom shapes, such as triangles, circular notches, polygons, etc., without relying on pictures or SVGs. Its advantages include: 1. Supports a variety of basic shapes such as circle, ellipse, polygon, etc.; 2. Responsive adjustment and adaptable to mobile terminals; 3. Easy to animation, and can be combined with hover or JavaScript to achieve dynamic effects; 4. It does not affect the layout flow, and only crops the display area. Common usages are such as circular clip-path:circle (50pxatcenter) and triangle clip-path:polygon (50%0%, 100 0%, 0 0%). Notice

Styling visited links differently with CSS Styling visited links differently with CSS Jul 11, 2025 am 03:26 AM

Setting the style of links you have visited can improve the user experience, especially in content-intensive websites to help users navigate better. 1. Use CSS's: visited pseudo-class to define the style of the visited link, such as color changes; 2. Note that the browser only allows modification of some attributes due to privacy restrictions; 3. The color selection should be coordinated with the overall style to avoid abruptness; 4. The mobile terminal may not display this effect, and it is recommended to combine it with other visual prompts such as icon auxiliary logos.

How to create responsive images using CSS? How to create responsive images using CSS? Jul 15, 2025 am 01:10 AM

To create responsive images using CSS, it can be mainly achieved through the following methods: 1. Use max-width:100% and height:auto to allow the image to adapt to the container width while maintaining the proportion; 2. Use HTML's srcset and sizes attributes to intelligently load the image sources adapted to different screens; 3. Use object-fit and object-position to control image cropping and focus display. Together, these methods ensure that the images are presented clearly and beautifully on different devices.

Demystifying CSS Units: px, em, rem, vw, vh comparisons Demystifying CSS Units: px, em, rem, vw, vh comparisons Jul 08, 2025 am 02:16 AM

The choice of CSS units depends on design requirements and responsive requirements. 1.px is used for fixed size, suitable for precise control but lack of elasticity; 2.em is a relative unit, which is easily caused by the influence of the parent element, while rem is more stable based on the root element and is suitable for global scaling; 3.vw/vh is based on the viewport size, suitable for responsive design, but attention should be paid to the performance under extreme screens; 4. When choosing, it should be determined based on whether responsive adjustments, element hierarchy relationships and viewport dependence. Reasonable use can improve layout flexibility and maintenance.

What are common CSS browser inconsistencies? What are common CSS browser inconsistencies? Jul 26, 2025 am 07:04 AM

Different browsers have differences in CSS parsing, resulting in inconsistent display effects, mainly including the default style difference, box model calculation method, Flexbox and Grid layout support level, and inconsistent behavior of certain CSS attributes. 1. The default style processing is inconsistent. The solution is to use CSSReset or Normalize.css to unify the initial style; 2. The box model calculation method of the old version of IE is different. It is recommended to use box-sizing:border-box in a unified manner; 3. Flexbox and Grid perform differently in edge cases or in old versions. More tests and use Autoprefixer; 4. Some CSS attribute behaviors are inconsistent. CanIuse must be consulted and downgraded.

See all articles