bs

December 2015 ... Spaces or Tabs ?

TL;DR this post tries to explain why a compact solution based on a NON visually configurable predefined amount of spaces wins through facts and not personal style choices. If you'd like to argue please have the decency to read this post top to bottom before that. Thank you!



I've got 99 problems and "spaces VS tabs" actually is one of them!
I find it embarrassing for the entirety of the programming, developers, and designers worldwide industry and community to still have these kind of debates in year 2015!
We laugh about medieval people thoughts, modern bigotry, or how stupid is from time to time the rest of the world around us ... and yet we cannot stop whining about spaces or tabs.
Moreover, the untold story about this debate is that everyone is simply being selfish and every rationale behind is made of opinionated and volatile fluff that does not match current real-world scenarios (yeah, maybe me too, but before that, please keep reading 'till the end, thanks!).

Defining a Standard

There are few standards and protocols universally implemented in the programming world and JSON, as well as XML, are just a few and rare examples.
There is no "my XML is better than yours" or "my JSON looks nicer" discussion there, as soon as you write something not conforming with the standard you are causing troubles either to your own code and yourself or to whoever needs to consume your code!
There's not "but ..." or "because my style ..." here, there is only one way everyone understands which is the only compatible way and the best way to move forward.
Unfortunately, in the history of Computer Science (funny it's called Science in this case) there's still no agreement on the "spaces VS tabs" matter.

Fact 1: Nobody wants horizontal scroll

Not only books are read vertically since ever, "technological mouses" are not even created to simplify such task and on top of that: if you don't set yourself a limit to the amount of columns your code should actually warn you, usually 80 up to 120 chars, it doesn't actually matter what choice you made to your indentation because "'yo column is so wide I though you were a code cruncher instead of a human being".
We don't like to scroll horizontally and we would like to be able to put 2 or more different files beside each other to compare diffs and lines in a single screen ... right?
In other words, it's OK to have 80 to 120 chars column width limit because we all agree it's needed!
Then we have either developers that connect via SSH, those that use daily vi or vim, and people on Smart Phones that maybe are surfing online, studying some piece of code where they also have to scroll every single pre tag because by default each browser uses 4 or 8 spaces to represent a tab ... you say no?
This is something standard to show to you, it doesn't have any special parsing behind, it's just plain code.

// 2 spaces indentation random code
class View {
constructor(options) {
this.model = options.model;
this.template = options.template;
}

render() {
return _.template(
this.template, this.model.toObject()
);
}
}

// its tabs based equivalent
class View {
constructor(options) {
this.model = options.model;
this.template = options.template;
}

render() {
return _.template(
this.template, this.model.toObject()
);
}
}
Before asking ourselves which piece of code looks universally better, I just would like to show you a couple of cases different from your editor of choice scenario:

Full Article


bs

Spatial big data science: classification techniques for Earth observation imagery / Zhe Jiang, Shashi Shekhar

Online Resource




bs

Atlas Obscura / Joshua Foer, Dylan Thuras & Ella Morton

Hayden Library - G465.F64 2016




bs

Exploration of subsurface Antarctica: uncovering past changes and modern processes / edited by M.J. Siegert, S.S.R. Jamieson and D.A. White

Hayden Library - G860.E97 2018




bs

Scientific Satellite and Moon-Based Earth Observation for Global Change / by Huadong Guo, Wenxue Fu, Guang Liu

Online Resource




bs

Earth observations and geospatial science in service of sustainable development goals: 12th International Conference of the African Association of Remote Sensing and the Environment / Souleye Wade, editor

Online Resource




bs

Global Diversity Management: a Fusion of Ideas, Stories and Practice / Mustafa F. Özbilgin, Fiona Bartels-Ellis, Paul Gibbs, editors

Online Resource




bs

New Website Allows Deep Dives into Constitution

In celebration of Constitution Day, the Library of Congress is launching a new website – constitution.congress.gov – for the Constitution Annotated, the authoritative source for how the Supreme Court has interpreted the nation’s governing document over the years.

With advanced search tools and a modern user-friendly interface, the new website makes the 3,000 pages of the Constitution Annotated fully searchable and accessible for the first time to online audiences – including Congress, legal scholars, law students and anyone interested in U.S. constitutional law.

Click here for more information.




bs

The Hollywood war film : critical observations from World War I to Iraq / Daniel Binns

Binns, Daniel, author




bs

Communication, digital media and everyday life / Tony Chalkley, Mitchell Hobbs, Adam Brown, Toija Cinque, Brad Warren, Mark Finn

Chalkley, Tony, author




bs

Compatible finite element methods for geophysical flows: automation and implementation using Firedrake / Thomas H. Gibson, Andrew T.T. McRae, Colin J. Cotter, Lawrence Mitchell, David A. Ham

Online Resource




bs

Handbok of radar scattering statistics for terrain / Fawwaz T. Ulaby, M. Craig Dobson

Hayden Library - QC665.S3 U43 2019




bs

Discrete-time stochastic sliding mode control using functional observation Satnesh Singh, S. Janardhanan

Online Resource




bs

An introduction to compressible flows with applications: Quasi-One-Dimensional Approximation and General Formulation for Subsonic, Transonic and Supersonic Flows / José Pontes, Norberto Mangiavacchi, Gustavo R. Anjos

Online Resource




bs

Development of adaptive speed observers for induction machine system stabilization Ahmed A. Zaki Diab, Abo-Hashima M. Al-Sayed, Hossam Hefnawy Abbas Mohammed, Yehia Sayed Mohammed

Online Resource




bs

Bringing innovative robotic technologies from research labs to industrial end-users: the experience of the European robotics challenges / Fabrizio Caccavale, Christian Ott, Bernd Winkler, Zachary Taylor, editors

Online Resource




bs

Subscribe to the CT Women Newsletter

Know what's being discussed on CT Women, Christianity Today's special section for women. We report on news and give our opinion on topics such as church, family, sexuality, discipleship, pop culture, and more!




bs

[ASAP] New Chiral Hydrogen-Bonded Organic Framework Based on Substituted Diarylacetylene Dicarboxylic Acid

Crystal Growth & Design
DOI: 10.1021/acs.cgd.9b01713




bs

[ASAP] High-Quality ZnO Layers Grown by CVD on Sapphire Substrates with an AlN Nucleation Layer

Crystal Growth & Design
DOI: 10.1021/acs.cgd.0c00242




bs

Temporal trends of suspect- and target-per/polyfluoroalkyl substances (PFAS), extractable organic fluorine (EOF) and total fluorine (TF) in pooled serum from first-time mothers in Uppsala, Sweden, 1996–2017

Environ. Sci.: Processes Impacts, 2020, 22,1071-1083
DOI: 10.1039/C9EM00502A, Paper
Open Access
Luc T. Miaz, Merle M. Plassmann, Irina Gyllenhammar, Anders Bignert, Oskar Sandblom, Sanna Lignell, Anders Glynn, Jonathan P. Benskin
Temporal trends (1996–2017) of suspect- and target-per/polyfluoroalkyl substances (PFAS), extractable organic fluorine (EOF) and total fluorine (TF) were determined in first-time mothers from Uppsala, Sweden.
The content of this RSS Feed (c) The Royal Society of Chemistry




bs

Aging induced changes in ice nucleation activity of combustion aerosol as determined by near edge X-ray absorption fine structure (NEXAFS) spectroscopy

Environ. Sci.: Processes Impacts, 2020, 22,895-907
DOI: 10.1039/C9EM00525K, Paper
Open Access
Fabian Mahrt, Peter A. Alpert, Jing Dou, Philippe Grönquist, Pablo Corral Arroyo, Markus Ammann, Ulrike Lohmann, Zamin A. Kanji
Soot particles aged in acidic aqueous solutions reveal significantly enhanced ice nucleating activity.
The content of this RSS Feed (c) The Royal Society of Chemistry




bs

Interactions of ferrous iron with clay mineral surfaces during sorption and subsequent oxidation

Environ. Sci.: Processes Impacts, 2020, Advance Article
DOI: 10.1039/D0EM00063A, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Natacha Van Groeningen, Laurel K. ThomasArrigo, James M. Byrne, Andreas Kappler, Iso Christl, Ruben Kretzschmar
Under anoxic conditions, clay minerals sorb dissolved Fe(II) predominantly by forming surface precipitates, which transform into Fe(III)-phases upon aeration.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




bs

[ASAP] Tuning the Ambipolar Character of Copolymers with Substituents: A Density Functional Theory Study

The Journal of Physical Chemistry Letters
DOI: 10.1021/acs.jpclett.0c00678




bs

[ASAP] Direct <italic toggle="yes">Operando</italic> Observation of Double Layer Charging and Early Solid Electrolyte Interphase Formation in Li-Ion Battery Electrolytes

The Journal of Physical Chemistry Letters
DOI: 10.1021/acs.jpclett.0c01089




bs

[ASAP] Green Synthetic Approach for Photo-Cross-Linkable Methacryloyl Hyaluronic Acid with a Tailored Substitution Degree

Biomacromolecules
DOI: 10.1021/acs.biomac.0c00196




bs

Mein liebster Jesus ist verloren: Kantate zum 1. Sonntag nach Epiphanias für Soli (ATB), Chor (SATB), 2 Oboen d'amore, 2 Violinen, Viola, Basso continuo, Cembalo ad libitum = My blessed Jesus, gone forever: cantata for the 1st Sunday after Epipha

STACK SCORE Mu B122 ca154 pv a




bs

Streichquartett aus "Absences: String quartet from "Absences": (1990/1993) / Jörg Widmann

STACK SCORE Mu pts W6335 abs str




bs

Plebs angelica: for mixed double choir a cappella (SATB + SATB): from Pious anthems and voluntaries for the Chapel of Saint John's College, Cambridge (2016-18) / Michael Finnissy

STACK SCORE Mu F4975 pio ple




bs

Verbs, clauses and constructions: functional and typological approaches / edited by Pilar Guerrero Medina, Roberto Torre Alonso and Raquel Vea Escarza

Hayden Library - P270.V47 2018




bs

Substance-based grammar: the (ongoing) work of John Anderson / edited by Roger Böhm, Harry van der Hulst

Hayden Library - P85.A53 S83 2018




bs

Aarogya Setu absolutely robust app in terms of privacy protection, security of data: Ravi Shankar Prasad

Rejecting charges by the opposition that the Aarogya Setu application breaches privacy, Union IT Minister Ravi Shankar Prasad has asserted that the platform is "absolutely robust, safe and secure" in terms of privacy protection and data security.




bs

On the absence of triplet exciton loss pathways in non-fullerene acceptor based organic solar cells

Mater. Horiz., 2020, Advance Article
DOI: 10.1039/D0MH00286K, Communication
Maria S. Kotova, Giacomo Londi, Johannes Junker, Stefanie Dietz, Alberto Privitera, Kristofer Tvingstedt, David Beljonne, Andreas Sperlich, Vladimir Dyakonov
Recombination to donor and acceptor triplet states should be energetically favourable. However, this recombination channel is not observed in operational devices.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




bs

[ASAP] Characterization of Class IB Terpene Synthase: The First Crystal Structure Bound with a Substrate Surrogate

ACS Chemical Biology
DOI: 10.1021/acschembio.0c00145




bs

[ASAP] Substrate Recognition by the Class II Lanthipeptide Synthetase HalM2

ACS Chemical Biology
DOI: 10.1021/acschembio.0c00127




bs

Photoionization Modelling as a Density Diagnostic of Line Emitting/Absorbing Regions in Active Galactic Nuclei / Tek Prasad Adhikari

Online Resource




bs

Space science and the Arab world: astronauts, observatories and nationalism in the Middle East / Jörg Matthias Determann

Hayden Library - QB500.266.M628 D36 2018




bs

Time: from Earth rotation to atomic physics / Dennis D. McCarthy (United States Naval Observatory (retired)), P. Kenneth Seidelmann (University of Virginia)

Hayden Library - QB213.M385 2018




bs

Physics of magnetic stars: proceedings of a conference held at Special Astrophysical Observatory, Nizhny Arkhyz, Russia, 1-5 October 2018/ edited by I.I. Romanyuk, I.A. Yakunin, D.O. Kudryavtsev

Hayden Library - QB843.M3.P494 2019




bs

Unveiling galaxies: the role of images in astronomical discovery / Jean-René Roy, formerly Gemini Observatory, La Serena, Chile

Hayden Library - QB121.R697 2018




bs

The little book of black holes / Steven S. Gubser and Frans Pretorius

Hayden Library - QB843.B55 G83 2017




bs

The lighthouse and the observatory: Islam, science, and empire in late Ottoman Egypt / Daniel A. Stolz, Northwestern University

Dewey Library - QB20.S76 2018




bs

Dynamical characteristics of inertia-gravity waves in the Antarctic mesosphere: analyses combining high-resolution observations and modeling / Ryosuke Shibuya

Online Resource




bs

The impact of binary stars on stellar evolution / edited by Giacomo Beccari (European Southern Observatory, Garching), Henri M.J. Boffin (European Southern Observatory, Garching)

Hayden Library - QB806.I567 2019




bs

Luna cognita: a comprehensive observer's handbook of the known Moon / Robert A. Garfinkle

Online Resource




bs

Meteoroids: sources of meteors on Earth and beyond / edited by Galina O. Ryabova (Tomsk State University, Russian Federation), David J. Asher (Armagh Observatory and Planetarium), Margaret D. Campbell-Brown (University of Western Ontario)

Dewey Library - QB738.M485 2019




bs

Astronomical Data Analysis Software and Systems XXVII: proceedings of a conference held at Sheraton Santiago Convention Center, Santiago de Chile, Chile, 22-26 October 2017 / edited by Pascal Ballester, Jorge Ibsen, Mauricio Solar, Keith Shortridge

Dewey Library - QB51.3.E43 A88 2017




bs

Bullshit jobs / David Graeber

Dewey Library - HF5549.5.J63 G73 2018




bs

Skills and jobs in Brazil: an agenda for youth / Rita K. Almeida and Truman G. Packard

Online Resource




bs

Working through the crisis: jobs and policies in developing countries during the great recession / editors, Arup Banerji [and three others]

Online Resource




bs

Labor policy to promote good jobs in Tunisia: revisiting labor regulation, social security, and active labor market programs / Diego F. Angel-Urdinola, Antonio Nucifora, and David Robalino, editors

Online Resource