Giter VIP home page Giter VIP logo

Comments (5)

lishid avatar lishid commented on July 22, 2024

I like tabs. If using tabs is questionable then there wouldn't be an option for anyway.

Most people just follow whatever standards a project already uses, and .editorconfig serves exactly that purpose so that tools like IDEs can automatically follow whatever the project uses.

github.com never display arrows for tabs:
image

from obsidian-sample-plugin.

huyz avatar huyz commented on July 22, 2024

You're right, it's not that github.com that added arrows. It's my https://github.com/refined-github/refined-github extension.

Fair enough about your preference. Just be aware that this is not a popular choice for JavaScript/TypeScript: https://ukupat.github.io/tabs-or-spaces/

from obsidian-sample-plugin.

lishid avatar lishid commented on July 22, 2024

Hey, 16.78% is a good enough size (plus that's a really low sample size). Either way, this isn't a popularity contest and in the vast majority of the cases this choice doesn't really matter.

from obsidian-sample-plugin.

huyz avatar huyz commented on July 22, 2024

Ok, if you want a larger sample size: https://hoffa.medium.com/400-000-github-repositories-1-billion-files-14-terabytes-of-code-spaces-or-tabs-7cfe0b5dd7fd#.o7n8zeezx

Yeah, it's not a popularity contest as much as it is a question of Developer Experience and whether you care about catering to most of your "customers" or just your personal preference. (Some in fact may call it a career/financial consideration lol. J/k)

Anyway, I know that I'm not telling you anything that you don't already know. I'm giving voice to those who may be just as annoyed as I am to see so much Obsidian plugin source code with tabs. Not a big population, I admit. But something had to be said lol

from obsidian-sample-plugin.

lishid avatar lishid commented on July 22, 2024

One could also argue that Tabs is best used in this kind of templates because it gives everyone a visual choice of whether to use 2 spaces for each tab or 4 spaces for each tab, without constantly converting the source code itself between the two.

Either way, this is likely one of the top unsolved problems in the computing world along with Windows vs Mac vs Linux.

(Some in fact may call it a career/financial consideration lol. J/k)

In that case, we should probably make plugins in Closure instead.

from obsidian-sample-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.