How many spaces is a tab in Java, Rust, C++, Python, C#, Powershell, Golang, Javascript

A tab is not made out of spaces. It is a tab, whether in Java, Python, Rust, or generic text file editing. It is represented by a single Unicode character, U+0009.

It does not generally mean “insert this many spaces here” either. It means “put the cursor at the next closest tab stop in the line”. What that means exactly depends on the context. On an old typewriter I had, a tab key would advance the roller to the next column that was a multiple of 10

That is pretty much the same function as the tab character does.

Just for reference, modern text editors have their tab stops set to either every 4 or every 8 characters. That doesn’t mean that 1 tab = 4/8 spaces, that means that putting in a tab will align the cursor with the next multiple of 4/8 columns

In mainstream IDEs you can set the tab key to insert a desired number of spaces instead of a tab character. The concept of tab independent of space is rarely used these days. In any case, what the character represents is decoupled from what the key does is decoupled from what the screen shows. In many IDEs, the tab character inserts the required number of spaces to advance to the next tab line. This is often a default. I imagine it’s a compromise between tab loving extremists and space advocates. The ideal whitespace character is a subject of intense debate among programmers.

  • Mobil Yazılım Dünyası Nisan’24 Gelişmelerine Hızlı Bakış
    by Emine İNAN (Programming on Medium) on May 2, 2024 at 1:50 pm

    Bültenimizin Nisan sayısı ile mobil yazılım dünyasında öne çıkan güncellemelere hep birlikte göz atalım!Continue reading on Huawei Developers - Türkiye »

  • Visisth Rupee Loan Customer Care Helpline Number✓√ 9693985022/- /9693985022call 9693985022now · Vi
    by Xjgxkdbyhhc (Programming on Medium) on May 2, 2024 at 1:47 pm

    Continue reading on Medium »

  • Beyond Written Content: Why I Started a YouTube Channel
    by Tomas Svojanovsky (Programming on Medium) on May 2, 2024 at 1:47 pm

    Starting a YouTube Channel in English: Overcoming Challenges and Embracing GrowthContinue reading on Medium »

  • Visisth Rupee Loan Customer Care Helpline Number✓√ 9693985022/- /9693985022call 9693985022now · Vi
    by Xjgxkdbyhhc (Programming on Medium) on May 2, 2024 at 1:47 pm

    Continue reading on Medium »

  • Photo by Lianhao Qu on Unsplash
    by Xjgxkdbyhhc (Programming on Medium) on May 2, 2024 at 1:46 pm

    Continue reading on Medium »

  • Visisth Rupee Loan Customer Care Helpline Number✓√ 9693985022/- /9693985022call 9693985022now · Vi
    by Xjgxkdbyhhc (Programming on Medium) on May 2, 2024 at 1:46 pm

    Continue reading on Medium »

  • Visisth Rupee Loan Customer Care Helpline Number✓√ 9693985022/- /9693985022call 9693985022now · Vi
    by Xjgxkdbyhhc (Programming on Medium) on May 2, 2024 at 1:43 pm

    Continue reading on Medium »

  • Visisth Rupee Loan Customer Care Helpline Number✓√ 9693985022/- /9693985022call 9693985022now · Vi
    by Xjgxkdbyhhc (Programming on Medium) on May 2, 2024 at 1:43 pm

    Continue reading on Medium »

  • Visisth Rupee Loan Customer Care Helpline Number✓√ 9693985022/- /9693985022call 9693985022now · Vi
    by Xjgxkdbyhhc (Programming on Medium) on May 2, 2024 at 1:42 pm

    Continue reading on Medium »

  • On Modern Error Handling (Not Just in Java): Monads, Effects and Project Amber
    by /u/CrowSufficient (programming) on May 2, 2024 at 1:40 pm

    submitted by /u/CrowSufficient [link] [comments]

  • My Leetcode Journey. Starting From Binary Search. (1)(Golang)
    by obafgkm (Programming on Medium) on May 2, 2024 at 1:33 pm

    I started with Binary Search and separated them into groups based on Huahua’s list on his website.Continue reading on Medium »

  • CSS Show Scrollbar Complete Guide - Makemychance
    by /u/Latter-Dust8587 (programming) on May 2, 2024 at 1:29 pm

    submitted by /u/Latter-Dust8587 [link] [comments]

  • Choosing the Right Audit Trail Approach in Ruby
    by /u/More_Champion_7731 (programming) on May 2, 2024 at 12:55 pm

    submitted by /u/More_Champion_7731 [link] [comments]

  • The Schedule for POSETTE: An Event for PostgreSQL 2024 has dropped!
    by /u/aamederen (programming) on May 2, 2024 at 12:43 pm

    submitted by /u/aamederen [link] [comments]

  • Exploring LLM Weirdness: How We Built It & What I Learned
    by /u/jvwatzman (programming) on May 2, 2024 at 12:18 pm

    submitted by /u/jvwatzman [link] [comments]

  • A 21,565X performance improvement in linting GraphQL
    by /u/yoav-lavi (programming) on May 2, 2024 at 11:47 am

    submitted by /u/yoav-lavi [link] [comments]

  • One key to rule them all: Recovering the master key from RAM to break Android's file-based encryption
    by /u/throwaway16830261 (programming) on May 2, 2024 at 10:20 am

    submitted by /u/throwaway16830261 [link] [comments]

  • Boost your API mocking workflow with Ollama and Microcks
    by /u/bitter-cognac (programming) on May 2, 2024 at 9:48 am

    submitted by /u/bitter-cognac [link] [comments]

  • How to create a carousel with Tailwind CSS and Alpinejs
    by /u/Michael_andreuzza (programming) on May 2, 2024 at 9:34 am

    submitted by /u/Michael_andreuzza [link] [comments]

  • Distributed consistency made as simple as a few extra lines in a property file and some new modules in a pom.xml
    by /u/andras_gerlits (programming) on May 2, 2024 at 9:04 am

    submitted by /u/andras_gerlits [link] [comments]

  • Which editor library, Library, Quill, TipTap or Lexical?
    by /u/totally_random_man (programming) on May 2, 2024 at 8:35 am

    submitted by /u/totally_random_man [link] [comments]

  • Distracting software engineers is way more harmful than managers think
    by /u/zaidesanton (programming) on May 2, 2024 at 7:02 am

    submitted by /u/zaidesanton [link] [comments]

  • Java Records vs. Lombok: A Comprehensive Comparison for Java Developers
    by /u/erdsingh24 (programming) on May 2, 2024 at 6:26 am

    submitted by /u/erdsingh24 [link] [comments]

  • Building A Startup - A Primer For The Individual Contributor [pdf]
    by /u/dcspazz (programming) on May 2, 2024 at 3:47 am

    Author here, wanted to share this for free with the community. For more about the book and the writing process check out this blog post https://www.onoffswitch.net/p/building-a-startup-published About the book: Building A Startup - A Primer For The Individual Contributor is a practical, general guide for engineers and leaders on how to set yourself up for success, right from the start of your venture rooted in the experiences of the author, who has been a principal or staff engineer at startups both large and small like Chime, Stripe and others. Unlike some computer science books, this is not a prescriptive manual of exactly how to write code, or bootstrap a startup, but instead is a broad-strokes guide to the kinds of mindsets, strategies, and tooling you need to put in place at the beginning of your company's development to ensure that you can move fast and confidently later down the road. Building A Startup covers topics ranging from how to select a language choice, repo structure, logging and analytics strategies, to scaling teams, how to conduct interviews, and growing from the solo developer to a multi team organization. Everything you need to go from zero to series A and beyond. submitted by /u/dcspazz [link] [comments]

  • How to optimize for the common case.
    by /u/eyal0 (programming) on May 2, 2024 at 3:31 am

    I wrote this once. I'm not entirely sure that it is even a good idea... submitted by /u/eyal0 [link] [comments]

  • What Is the Hierarchy of Design Needs in Software Development?
    by /u/john83672 (programming) on May 1, 2024 at 9:23 pm

    submitted by /u/john83672 [link] [comments]

  • What you get when you think of Postgres storage as a transaction journal
    by /u/carlotasoto (programming) on May 1, 2024 at 7:25 pm

    submitted by /u/carlotasoto [link] [comments]

  • APL programming Offline with the ngn/apl PWA on PC & mobile
    by /u/sohang-3112 (programming) on May 1, 2024 at 6:57 pm

    submitted by /u/sohang-3112 [link] [comments]

  • C++23: Understand internals of std::expected
    by /u/joebaf (programming) on May 1, 2024 at 5:39 pm

    submitted by /u/joebaf [link] [comments]

  • The State of the Subreddit (May 2024)
    by /u/ketralnis (programming) on May 1, 2024 at 5:37 pm

    Hello fellow programs! tl;dr some revisions to the rules to reduce low quality blogspam. The most notable are: banning listicles ("7 cool things I copy-pasted from somebody else!"), extreme beginner articles ("how to use a for loop"), and some limitations on career posts (they must be related to programming careers). Lastly, I want feedback on these changes and the subreddit in general and invite you to vote and use the report button when you see posts that violate the rules because they'll help us get to it faster. r/programming's mission is to be the place with the highest quality programming content, where I can go to read something interesting and learn something new every day. Last time we spoke I introduced the rules that we've been moderating by to accomplish that. Subjectively, quality on the subreddit while not perfect is much improved since then. Since it's still mainly just me moderating it's hard to tell what's objectively bad vs what just annoys me personally, and to do that I've been keeping an eye on a few forms of content to see how they perform (using mostly votes and comment quantity & health). Based on that the notable changes are: 🚫 Listicles. "7 cool python functions", "14 ways to get promoted". These are usually spammy content farms. If you found 15 amazing open source projects that will blow my mind, post those projects instead. 🚫 Extreme beginner content ("how to write a for loop"). This is difficult to identify objectively (how can you tell it from good articles like "how does kafka work?" or "getting started with linear algebra for ML"?) so there will be some back and forth on calibrating, but there has been a swath of very low quality "tutorials" if you can even call them that, that I very much doubt anybody is actually learning anything from and they sit at 0 points. Since "what is a variable?" is probably not useful to anybody already reading r/programming this is a quick painless way to boost the average quality on the subreddit. ⚠️ Career posts must be related to software engineering careers. To be honest I'm personally not a fan of career posts on r/programming at all (but shout out to cscareerquestions!) but during the last rules revision they were doing pretty well so I know there is an audience for it that I don't want to get in the way of. Since then there has been growth in this category all across the quality spectrum (with an accompanying rise in product management methodology like "agile vs waterfall", also across the quality spectrum). Going forward these posts must be distinctly related to software engineering careers rather than just generic working. This isn't a huge problem yet but I predict that it will be as the percentage of career content is growing. In all of these cases the category is more of a tell that the quality is probably low, so exceptions will be made where that's not the case. These are difficult categories to moderate by so I'll probably make some mistakes on the boundaries and that's okay, let me know and we'll figure it out. Some other categories that I'm keeping an eye on but not ruling on today are: Corporate blogs simply describing their product in the guise of "what is an authorisation framework?" (I'm looking at you Auth0 and others like it). Pretty much anything with a rocket ship emoji in it. Companies use their blogs as marketing, branding, and recruiting tools and that's okay when it's "writing a good article will make people think of us" but it doesn't go here if it's just a literal advert. Usually they are titled in a way that I don't spot them until somebody reports it or mentions it in the comments. Generic AI content that isn't technical in content. "Does Devin mean that programming is over?", "Will AI put farmers out of work?", "Is AI art?". For a few weeks these were the titles of about 20 articles per day, some scoring high and some low. Fashions like this come and go but I'm keeping an eye on it. Newsletters: There are a few people that post every edition of their newsletter to reddit, where that newsletter is really just aggregating content from elsewhere. It's clear that they are trying to grow a monetised audience using reddit, but that's okay if it's providing valuable curation or if the content is good and people like it. So we'll see. Career posts. Personally I'd like r/programming to be a deeply technical place but as mentioned there's clearly an audience for career advice. That said, the posts that are scoring the highest in this category are mostly people upvoting to agree with a statement in the title, not something that anybody is learning from. ("Don't make your engineers context-switch." "Everybody should get private offices." "Micromanaging sucks.") The ones that one could actually learn from with an instructive lean mostly don't do well; people seem to not really be interested in how to have the best 1:1s with their managers or how you went from Junior to Senior in 18 hours (though sometimes they are). That tells me that there's some subtlety to why these posts are scoring well and I'm keeping an eye on the category. What I don't want is for "vote up if you want free snacks" to push out the good stuff or to be a farm for the other 90% of content that's really just personal brand builders. I'm sure you're as annoyed as I am about these but they're fuzzy lines and difficult to come up with objective criteria around. As always I'm looking for feedback on these and if I'm missing any and any other points regarding the subreddit and moderation so let me know what you think. The rules! With all of that, here is the current set of the rules with the above changes included so I can link to them all in one place. ✅ means that it's currently allowed, 🚫 means that it's not currently allowed, ⚠️ means that we leave it up if it is already popular but if we catch it young in its life we do try to remove it early. ✅ Actual programming content. They probably have actual code in them. Language or library writeups, papers, technology descriptions. How an allocator works. How my new fancy allocator I just wrote works. How our startup built our Frobnicator. For many years this was the only category of allowed content. ✅ Academic CS or programming papers ✅ Programming news. ChatGPT can write code. A big new CVE just dropped. Curl 8.01 released now with Coffee over IP support. ✅ Programmer career content. How to become a Staff engineer in 30 days. Habits of the best engineering managers. These must be related or specific to programming/software engineering careers in some way ✅ Articles/news interesting to programmers but not about programming. Work from home is bullshit. Return to office is bullshit. There's a Steam sale on programming games. Terry Davis has died. How to SCRUMM. App Store commissions are going up. How to hire a more diverse development team. Interviewing programmers is broken. ⚠️ General technology news. Google buys its last competitor. A self driving car hit a pedestrian. Twitter is collapsing. Oculus accidentally showed your grandmother a penis. Github sued when Copilot produces the complete works of Harry Potter in a code comment. Meta cancels work from home. Gnome dropped a feature I like. How to run Stable Diffusion to generate pictures of, uh, cats, yeah it's definitely just for cats. A bitcoin VR metaversed my AI and now my app store is mobile social local. 🚫 Politics. The Pirate Party is winning in Sweden. Please vote for net neutrality. Big Tech is being sued in Europe for gestures broadly. Grace Hopper Conference is now 60% male. 🚫 Gossip. Richard Stallman switches to Windows. Elon Musk farted. Linus Torvalds was a poopy-head on a mailing list. The People's Rust Foundation is arguing with the Rust Foundation For The People. Terraform has been forked into Terra and Form. Stack Overflow sucks now. Stack Overflow is good actually. ✅ Demos with code. I wrote a game, here it is on GitHub 🚫 Demos without code. I wrote a game, come buy it! Please give me feedback on my startup (totally not an ad nosirree). I stayed up all night writing a commercial text editor, here's the pricing page. I made a DALL-E image generator. I made the fifteenth animation of A* this week, here's a GIF. 🚫 AskReddit type forum questions. What's your favourite programming language? Tabs or spaces? Does anyone else hate it when. 🚫 Support questions. How do I write a web crawler? How do I get into programming? Where's my missing semicolon? Please do this obvious homework problem for me. Personally I feel very strongly about not allowing these because they'd quickly drown out all of the actual content I come to see, and there are already much more effective places to get them answered anyway. In real life the quality of the ones that we see is also universally very low. 🚫 Surveys and 🚫 Job postings and anything else that is looking to extract value from a place a lot of programmers hang out without contributing anything itself. 🚫 Meta posts. DAE think r/programming sucks? Why did you remove my post? Why did you ban this user that is totes not me I swear I'm just asking questions. Except this meta post. This one is okay because I'm a tyrant that the rules don't apply to (I assume you are saying about me to yourself right now). 🚫 Images, memes, anything low-effort or low-content. Thankfully we very rarely see any of this so there's not much to remove but like support questions once you have a few of these they tend to totally take over because it's easier to make a meme than to write a paper and also easier to vote on a meme than to read a paper. ⚠️ Posts that we'd normally allow but that are obviously, unquestioningly super low quality like blogspam copy-pasted onto a site with a bazillion ads. It has to be pretty bad before we remove it and even then sometimes these are the first post to get traction about a news event so we leave them up if they're the best discussion going on about the news event. There's a lot of grey area here with CVE announcements in particular: there are a lot of spammy security "blogs" that syndicate stories like this. Pretty much all listicles are disallowed under this rule. 7 cool python functions. 14 ways to get promoted. If you found 15 amazing open source projects that will blow my mind, post those projects instead. ⚠️ Extreme beginner content. What is a variable. What is a for loop. Making an HTPT request using curl. Like listicles this is disallowed because of the quality typical to them, but high quality tutorials are still allowed and actively encouraged. ⚠️ Posts that are duplicates of other posts or the same news event. We leave up either the first one or the healthiest discussion. ⚠️ Posts where the title editorialises too heavily or especially is a lie or conspiracy theory. Comments are only very loosely moderated and it's mostly 🚫 Bots of any kind (Beep boop you misspelled misspelled!) and 🚫 Incivility (You idiot, everybody knows that my favourite toy is better than your favourite toy.) However the number of obvious GPT comment bots is rising and will quickly become untenable for the number of active moderators we have. submitted by /u/ketralnis [link] [comments]

  • How do you Address and Prevent Flaky tests?
    by /u/basecase_ (programming) on May 1, 2024 at 5:20 pm

    submitted by /u/basecase_ [link] [comments]

  • System Design: Databases and DBMS - All about Databases
    by /u/nandank93 (programming) on May 1, 2024 at 2:55 pm

    submitted by /u/nandank93 [link] [comments]

  • What matters most is Cognitive Load
    by /u/RobinCrusoe25 (programming) on May 1, 2024 at 1:59 pm

    submitted by /u/RobinCrusoe25 [link] [comments]

  • Proving Immediate Mode GUIs are Performant
    by /u/NX18 (programming) on May 1, 2024 at 1:29 pm

    submitted by /u/NX18 [link] [comments]

  • Google layoffs: Sundar Pichai-led Alphabet's arm fires entire Python team, says report
    by /u/tonefart (programming) on May 1, 2024 at 6:03 am

    submitted by /u/tonefart [link] [comments]

  • What Happens on GitLab When You do git push?
    by /u/fagnerbrack (programming) on May 1, 2024 at 3:05 am

    submitted by /u/fagnerbrack [link] [comments]

Etienne Noumen

Sports Lover, Linux guru, Engineer, Entrepreneur & Family Man.

Recent Posts

A Daily Chronicle of AI Innovations in May 2024

AI Innovations in May 2024

23 hours ago

Tips for Ensuring Success Throughout Your Career

For most people, a satisfactory career is essential for leading a happy life. However, ensuring…

5 days ago

Different Career Paths in the Pipeline Industry

The pipeline industry is more than pipework and construction, and we explore those details in…

5 days ago

SQL Interview Questions and Answers

SQL Interview Questions and Answers In the world of data-driven decision-making, SQL (Structured Query Language)…

2 weeks ago

Things To Consider When Switching Internet Providers

Before you make the decision to switch your home’s interest service provider, take the time…

4 weeks ago

A Daily Chronicle of AI Innovations in April 2024

AI Innovations in April 2024. Welcome to the April 2024 edition of the Daily Chronicle,…

1 month ago