- Sep 2024
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
Sure, it is not needed, we can always write things in a different way. As a matter of fact, with such an argument, hardly any improvement should be accepted.
-
-
en.wikipedia.org en.wikipedia.org
-
In comparison, Perl/Python/Javascript, which also have the latter property, have other false-like values (0 and empty string), which make || differ from a null-coalescing operator in many more cases (numbers and strings being two of the most frequently used data types). This is what led Perl/Python/Javascript to add a separate operator while Ruby hasn't.
-
Examples by languages
-
- Aug 2024
-
www.youtube.com www.youtube.com
-
Apparently the mali chorus means: "Patience patience patience, is worth everything."
Tags
Annotators
URL
-
- May 2024
-
luhmann.surge.sh luhmann.surge.sh
-
Theoretically interested readers should therefore follow the advice of learning as many languages as possible in such a way that they have at least passive mastery of them and thus can read and understand them.
Interesting, Luhmann recommends to know many languages so as to prevent the pitfalls of translational errors in conveying meaning when it is to read translated books. So read books in their original language.
-
- Apr 2024
-
theconversation.com theconversation.com
-
During the first three years of their education, South African children receive schooling in one of the 11 written official languages. Generally, this means being taught in their home language.
Check how many official languages we have now, 11, 12 or 13?
-
-
www.newyorker.com www.newyorker.com
-
Muhanna, Elias. “A New History of Arabia, Written in Stone.” The New Yorker, May 23, 2018. https://www.newyorker.com/culture/culture-desk/a-new-history-of-arabia-written-in-stone.
-
- Mar 2024
-
haxe.org haxe.org
-
-
en.wikipedia.org en.wikipedia.org
-
en.wikipedia.org en.wikipedia.org
- Feb 2024
-
Local file Local file
-
Most of these enthusiasts were idealists who wanted to create auniversal language which would help international relations and unite theworld. This noble hope stood in contrast with – and probably in reaction to –the rise of nationalisms in the late nineteenth century. Over 150 newlanguages were created in this period, the best-known being Volapük (1879),Pasilingua (1885), Esperanto (originally called Lingvo Internacia) (1887),Spelin (1888), Spokil (1889), Mundolingue (1889), and Ido (1907).
-
Byington shared her uncle’s interest in and support for indigenousculture and language, serving as President of the Stockbridge branch of theIndian Rights Association, and on the Education Committee for the Women’sNational Indian Associatio
Support for
-
But it was her uncle, the RevdCyrus Byington, who had the greatest influence on her life and interests. Hehad been a missionary with the Brewer sisters’ father to the Choctaw NativeAmerican Communities at the old mission station in Stockbridge; he hadtranslated the Bible into Choctaw, and wrote a grammar and dictionary of thelanguage.
-
Tribes of the Extreme Northwest by the American naturalist WilliamDall was another important book on the indigenous peoples and languages ofAlaska, western Washington, and north-western Oregon
-
Over thetwenty-three years that Minor had sent in slips to the Scriptorium, he mainlyread travellers’ tales and medical texts from the sixteenth and seventeenthcenturies. It was the travellers’ tales that interested me because they broughtthousands of words from indigenous languages around the world into theEnglish language.
Tags
- Ido
- universal languages
- Lingvo Internacia
- indigenous cultures
- William Chester Minor
- Pasilingua
- Women's National Indian Association
- Esperanto
- XIX
- Indian Rights Association
- history
- neologisms
- William Dall
- travelogues
- Alice Byington
- Indigenous languages
- Choctaw
- loanwords
- Oxford English Dictionary
- Volapük
- Cyrus Byington
- Mundolingue
- nationalism
- bible translation
- Indigenous allies
- Spelin
- Spokil
Annotators
-
-
www.campion.ox.ac.uk www.campion.ox.ac.uk
-
Sarah is a Senior Research Fellow in the Faculty of Linguistics, Philology, and Phonetics, and Director of the Dictionary Lab at Oxford. She specializes in lexicography, endangered languages, language revitalization, the history of dictionaries, and the interface of technology with the Social Sciences and Humanities (digital humanities). Her research includes work on Australian Aboriginal and American Indian languages, especially relating to language documentation and revitalization. She is the Director of the new MSc in Digital Scholarship.
What a fascinating set of areas she's working in... I want to do this...
-
-
azorion.tripod.com azorion.tripod.com
-
https://azorion.tripod.com/whorf.htm<br /> The (Hopi) World According to Whorf -- a Brief Note<br /> by Gary A. David, 2004
-
- Jan 2024
-
www.youtube.com www.youtube.com
-
Some of Newton's notes come from a 1654 edition of: Gregory, Francis. Ονομαστικὸν βραχύ; sive, Nomenclatura brevis, Anglo-Latino-Græca, in usum Scholæ Westmonasteriensis. Per F. G. [i.e. Francis Gregory.] Editio vigesima secunda, etc. John Meredith, in trust for Royston and Elizabeth Meredith, 1710.
-
- Dec 2023
-
stackoverflow.com stackoverflow.com
-
One language that is currently being developed, Rascal, takes a hybrid approach allowing dynamic typing within functions but enforcing static typing for the function signature.
first sighting: Rascal
-
- Nov 2023
-
github.com github.com
-
Capybara.string(response.body)
const $html = Cypress.$(body)
-
-
laist.com laist.com
-
Nahuatl (the language of the Mexica, as the Aztecs are now more commonly called)
-
- Oct 2023
-
www.reddit.com www.reddit.com
-
Is there a list of every possibility a Latin verb can take on, and it's English meaning? .t3_17hvr75._2FCtq-QzlfuN-SwVMUZMM3 { --postTitle-VisitedLinkColor: #9b9b9b; --postTitleLink-VisitedLinkColor: #9b9b9b; --postBodyLink-VisitedLinkColor: #989898; }
I've not used Mango before, but if it's like other similar apps (Duolingo, Babel, etc.) which focus primarily on spoken language and general understanding over grammar (and you've never learned other languages or had a good grounding in grammar) you're likely going to be a tad lost. These apps usually focus on spoken fluency over reading/writing which is how most Latin grammar books and high school/college courses are traditionally laid out.
You've got options:
- ignore your question(s) and move on with what the app presents and you'll slowly/eventually catch on naturally, which is how many apps geared toward fluency are meant to be done. Trust that eventually your questions will be cleared up, or
- pick up a Latin grammar and begin working your way through the structured reading/writing approach, or
- do a little of both approaches depending on what your focus for reading, writing, and speaking Latin may be.
Your question will become much clearer to you when you've seen how verbs are parsed within a grammar textbook (using person, number, and tense) as they're very logically and rigidly structured outside of a handful of irregular verbs. (Most books present these as a grid of two columns (by number: singular/plural) and three rows (first, second, third person).) As a beginner, you'll be glad to know there hasn't been a huge jump in the state of the art in Latin for several hundred years, so even inexpensive, used copies of Wheelock, Allen & Greenough, or Jenny/Scudder/Baade or a trip to the library for one of them should help you along your way. Once you've seen some of the grammatical structure of verbs and how they work, you'll come to understand that a list like what you're looking for isn't really what you're looking for.
You could, likely, in a couple of days have a rote memorization of most of the forms of almost all verbs such that when you encounter them, but in practice this means that you have to pick each one apart like a formula as you encounter them. You may be better off practicing/drilling each of the ones you encounter to make it an elemental part of you. This way you'll be able to sight read or listen and respond much more quickly and much faster than anyone who learns from standard grammars.
Good luck!
-
-
en.wal.unesco.org en.wal.unesco.org
-
-
Revise, Nicolas. “Tech Breathes New Life into Endangered Native American Languages.” News. Phys.org, October 19, 2023. https://phys.org/news/2023-10-tech-life-endangered-native-american.html.
-
According to TLC, 143 out of 219 languages are in danger of extinction in the United States, while 75 of 94 are at similar risk in Canada.
-
The RWC was developed by The Language Conservancy (TLC), an NGO dedicated to protecting around 50 Indigenous languages around the world, in order to churn out such dictionaries at super-speed. TLC, which has a $3 million budget, regularly teams up linguists with Native American language teachers to work on these dictionaries.
-
International Conference on Indigenous Language Documentation, Education and Revitalization (ICILDER) last weekend at the University of Indiana.
-
-
claudemariottini.com claudemariottini.com
-
During the establishment of the covenant between Yahweh and Israel, the people were commanded to destroy the sacred stones of the Canaanites, “You must demolish them and break their sacred stones (masseboth) to pieces” (Exodus 23:24).
In neighboring cultures in which both have oral practices relating to massebah, one is not just destroying "sacred stones" to stamp out their religion, but it's also destroying their culture and cultural memory as well as likely their laws and other valuable memories for the function of their society.
View this in light also of the people of Israel keeping their own sacred stones (Hosea 10:1) as well as the destruction of pillars dedicated to Baal in 2 Kings 18:4 and 2 Kings 23:14.
(Link and) Compare this to the British fencing off the land in Australia and thereby destroying Songlines and access to them and the impact this had on Indigenous Australians.
It's also somewhat similar to the colonialization activity of stamping out of Indigenous Americans and First Nations' language in North America, though the decimation of their language wasn't viewed in as reciprocal way as it might be viewed now. (Did colonizers of the time know about the tremendous damage of language destruction, or was it just a power over function?)
-
-
en.wikipedia.org en.wikipedia.org
-
www.ted.com www.ted.com
-
Boroditsky, Lera. How Language Shapes the Way We Think. Streaming Video. TED | TEDWomen 2017, 2017. https://www.ted.com/talks/lera_boroditsky_how_language_shapes_the_way_we_think.
-
To have a second language is to have a second soul. —Charlemagne
Original source? Original language?
Tags
- languages as a tool for thought
- tools for thought
- second languages
- W.E.I.R.D. (Western Educated Industrialized Rich Democratic)
- Lera Boroditsky
- Dan Allosso Book Club 2023-07-29
- TED
- Charlemagne
- watch
- linguistics
- Kuuk Thaayorre
- indigenous ways of knowing
- soul
- language disappearance
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
When a language presumes to know more than its user, that's when there's trouble.
-
Just because a language has a feature that might be dangerous doesn't mean it's inherently a bad thing. When a language presumes to know more than its user, that's when there's trouble.
-
I'd argue that when you find a programming language devoid of danger, you've found one that's not very useful.
-
The reason eval is there is because when you need it, when you really need it, there are no substitutes. There's only so much you can do with creative method dispatching, after all, and at some point you need to execute arbitrary code.
-
- Sep 2023
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
I think "purely functional, not a single re-assigned variable" often introduces significant extra complexity, when Ruby is a language that embraces both functional and imperative programming.
-
One of my favorite aspects of Ruby is how easy it is to write in a functional programming style, and including the scan operation would expand the number of use cases covered by functional methods.
-
- Aug 2023
-
-
Behind these tariff walls the professors who hadmany of the great writers and much of the liberal arts intheir charge contentedly sat, oblivious of the fact that theywere depriving the rising generation of an important part oftheir cultural heritage and the training needed to understandit, and oblivious also of the fact that they were deprivingthemselves of the reason for their existence.
It can be easy to deprive a generation of important pieces of their cultural heritage by omitting any focus on it.
- shiboleth
- philology
- disinterest
- overwhelm
Compare the loss of classical education and cultural heritage by "internal decay" as described by Hutchins in the early 1900s and the forced loss of cultural heritage of Indigenous Americans by the U.S. Government in roughly the same period by re-education and stamping out Indigenous language.
Certainly one was loss through lack of exposure, but the other was outright erasure due to the natures of orality and literacy.
-
-
-
category theory + zettelkasten... hmmm... feels a bit like Leibniz chasing a universal language
what is a zettelkasten monad?
-
- Jun 2023
-
www.typescriptlang.org www.typescriptlang.org
-
TypeScript offers special syntax for turning a constructor parameter into a class property with the same name and value. These are called parameter properties
Doesn't this violate their own non-goal #6, "Provide additional runtime functionality", since it emits a
this.x = x
run-time side effect in the body that isn't explicitly written out in the source code?
-
- Mar 2023
-
stackoverflow.com stackoverflow.com
-
As an aside, I think I now prefer this technique to Python for at least one reason: passing arguments to the decorator method does not make the technique any more complex. Contrast this with Python: <artima.com/weblogs/viewpost.jsp?thread=240845>
-
def document(f): def wrap(x): print "I am going to square", x f(x) return wrap @document def square(x): print math.pow(x, 2) square(5)
-
- Feb 2023
-
www.youtube.com www.youtube.com
-
https://www.youtube.com/watch?v=47p2TfnEewc
academics: Joshua Fishman and Bernard Spolsky
-
- Jan 2023
-
refubium.fu-berlin.de refubium.fu-berlin.de
-
https://refubium.fu-berlin.de/handle/fub188/24570
Some interesting programming and structured data with relationship to the Gertrud Bauer Zettelkasten Online.
-
-
-
High Country News, Rebecca Nagle reported that for every dollar the U.S. government spent on eradicating Native languages in past centuries, it has spent less than 7 cents on revitalizing them in the 21st century.
!- United States indigenous language : ststistic - US Govt spent less than 7 cents for every dolloar spent eradicating indigenous language in the past - Citation : report by Rebecca Nagle in the High Country News: https://www.hcn.org/issues/51.21-22/indigenous-affairs-the-u-s-has-spent-more-money-erasing-native-languages-than-saving-them
-
Australian government won’t stop trying to infiltrate these communities with English. Disguised as “education,” the imposition of English is an attempt to reduce the already dismal number of 13 Indigenous languages spoken by children in Australia (from 300-700 languages before the U.K. colonized Australia, in 1788),
!- Australian language genocide - 300 to 700 indigenous Australian languages before colonization in 1788 - now there are 13
-
Learning a New Language Can Help Us Escape Climate Catastrophe
!- Title : Learning a New Language Can Help Us Escape Climate Catastrophe !- Author : Nylan Burton !- comment : summary - while I agree with the analysis, the futures-related question I ask is this: what does a desirable hybridized linguistic landscape look like that integrates English, evolved into a post-colonialist lingua franca and reconstituted indigenous languages with their rich bio-cultural heritage?
-
-
wiki.rel8.dev wiki.rel8.dev
-
https://wiki.rel8.dev/turbocharge_pattern_languages
-
- Dec 2022
-
stackoverflow.com stackoverflow.com
-
yield is a bit of laguage level magic that only works in the context of a method.
-
-
www.nytimes.com www.nytimes.com
- Nov 2022
-
github.com github.com
-
2 • 3 = 6
-
-
github.com github.com
-
Ideally we could use Unicode, 3 2 1 ~ 3 2 1 ≃
-
-
www.ruby-forum.com www.ruby-forum.com
-
I have been doing different things w/ Ruby for a couple of years now and the only bad thing I can say about it is that it makes programming in other languages feel awfully burdensome. = )
-
-
github.com github.com
-
Language/location related Mastodon Instances:
- https://ailbhean.co-shaoghal.net/
- This server is aimed at Gaelic speakers. Tha am frithealaiche seo ann do luchd na Gàidhlig.
- https://mastodon.scot
- A community primarily intended for (but not limited to) people in Scotland or who identify as Scottish.
- https://mastodon.ie/
- Irish Mastodon
- https://toot.wales
- Twt is the free and open community for Wales and the Welsh, at home and abroad.
- https://ailbhean.co-shaoghal.net/
-
- Oct 2022
-
en.wikipedia.org en.wikipedia.org
-
https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop
aliases: interactive toplevel, language shell
read-eval-print loop (REPL)
-
- Sep 2022
-
bitfieldconsulting.com bitfieldconsulting.com
-
For example, whereas C programmers have argued for years about where to put their brackets, and whether code should be indented with tabs or spaces, both Rust and Go eliminate such issues completely by using a standard formatting tool (gofmt for Go, rustfmt for Rust) which rewrites your code automatically using the canonical style. It’s not that this particular style is so wonderful in itself: it’s the standardisation which Rust and Go programmers appreciate.
-
If you like the functional style of programming, though, you’ll find a lot more facilities for it in Rust, because Rust has a lot more facilities than Go in general.
-
-
-
Ruby's keyword args work a little differently than similar implementations (selectors in Objective C, for instance). The value on the right-hand side of the colon is the default, not the local name.
-
-
stackoverflow.com stackoverflow.com
-
an equivalent of R's signif function in Ruby.
-
- Aug 2022
-
www.bbc.com www.bbc.com
-
"it's not the amount of speakers that will save us"
https://www.bbc.com/news/av/uk-wales-62483610
A powerful fuckin' poem here.
-
-
docdrop.org docdrop.org
-
I'm in Tiohtiá:ke, also known as Montreal, which is the traditional unseeded land of the Kanien’kehà:ka people, part of the Haudenosaunee
-
-
en.wikipedia.org en.wikipedia.org
- Jun 2022
-
www.nbcnews.com www.nbcnews.com
-
But the copyright on the materials still gives the organization control over how the information is used, which is what some tribal leaders find objectionable.
Oral cultures treat information dramatically different than literate cultures, and particularly Western literate cultures within capitalism-based economies.
-
-
preview.redd.it preview.redd.it
-
- May 2022
-
www.macquariedictionary.com.au www.macquariedictionary.com.au
-
The decision not to refer primary school children to online language resources such as AustLang and the Gambay map was appropriate as it would create difficulties for both those readers and their teachers. Those resources are usually used by Indigenous language speakers and experts with a sound training in linguistics.
-
-
github.com github.com
-
I think RSpec should provide around(:context)/around(:all). Not because of any particular use case, but simply for API consistency. It's much simpler to tell users "there are 3 kinds of hooks (before, after and around) and each can be used with any of 3 scopes (example, context and suite)". Having some kinds of hooks work with only some kinds of scopes makes the API inconsistent and forces us to add special case code to emit warnings and also write extra documentation for this fact.
-
I've been thinking of looking into implementing this in rspec-core, primarily to make the API more consistent (e.g. so that you can combine any scope -- example/context/suite -- with any hook type before/after/around).
-
-
kramdown.gettalong.org kramdown.gettalong.org
-
for parsing and converting a superset of Markdown
-
-
gitlab.com gitlab.com
-
We overload the meaning of "GFM" to mean "GitLab Flavored Markdown", which is a superset of GitHub's version. However it can cause confusion as they are not the same thing.
-
-
www.zimbu.org www.zimbu.org
Tags
Annotators
URL
-
- Feb 2022
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
"Context" manipulation is one of big topic and there are many related terminologies (academic, language/implementation specific, promotion terminologies). In fact, there is confusing. In few minutes I remember the following related words and it is good CS exam to describe each :p Thread (Ruby) Green thread (CS terminology) Native thread (CS terminology) Non-preemptive thread (CS terminology) Preemptive thread (CS terminology) Fiber (Ruby/using resume/yield) Fiber (Ruby/using transfer) Fiber (Win32API) Generator (Python/JavaScript) Generator (Ruby) Continuation (CS terminology/Ruby, Scheme, ...) Partial continuation (CS terminology/ functional lang.) Exception handling (many languages) Coroutine (CS terminology/ALGOL) Semi-coroutine (CS terminology) Process (Unix/Ruby) Process (Erlang/Elixir) setjmp/longjmp (C) makecontext/swapcontext (POSIX) Task (...)
-
- Jan 2022
-
github.com github.com
-
Instead of render props, we use Svelte's slot props: // React version <Listbox.Button> {({open, disabled} => /* Something using open and disabled */)} </Listbox.Button> <!--- Svelte version ---> <ListboxButton let:open let:disabled> <!--- Something using open and disabled ---> </ListboxButton>
-
-
www.youtube.com www.youtube.com
-
https://www.youtube.com/watch?v=vRnQ8lYcvFU
rewatched
One's native language is one of their most important tools for thought.
Tags
Annotators
URL
-
- Dec 2021
- Nov 2021
-
-
What Makes Ruby on Rails Perfect for Marketplace Development?AlinaE-Commerce & SaaS StrategistMarketplaceRuby/RailsHomeBlogEntrepreneurshipWhat Makes Ruby on Rails Perfect for Marketplace Development?PublishedJul 13, 2020UpdatedJul 13, 202012 min readThe last several years have been marked with the rise of different marketplaces. Airbnb, AliExpress, Etsy, Booking.com are on everyone’s lips. That's not surprising that the idea of launching a second Amazon or eBay seems so appealing. To win the e-commerce race, entrepreneurs focus on providing excellent customer experience and build fast-loading and scalable websites. Besides, business owners take various security measures to protect their customers’ sensitive information. This way, they can gain clients’ trust and boost sales. When building a custom marketplace, what technology stack is best to achieve all these goals? Our answer is simple: Ruby on Rails. In this article, we will fill you in on the Ruby on Rails marketplace development. At Codica, we are passionate fans of this framework and have built numerous e-commerce platforms with its help. Based on our experience, we will discuss the key reasons to choose RoR for building a successful marketplace.
The last several years have been marked with the rise of different marketplaces. Airbnb, AliExpress, Etsy, Booking.com are on everyone’s lips. That's not surprising that the idea of launching a second Amazon or eBay seems so appealing.
To win the e-commerce race, entrepreneurs focus on providing excellent customer experience and build fast-loading and scalable websites. Besides, business owners take various security measures to protect their customers’ sensitive information. This way, they can gain clients’ trust and boost sales.
When building a custom marketplace, what technology stack is best to achieve all these goals? Our answer is simple: Ruby on Rails.
In this article, we will fill you in on the Ruby on Rails marketplace development. At Codica, we are passionate fans of this framework and have built numerous e-commerce platforms with its help. Based on our experience, we will discuss the key reasons to choose RoR for building a successful marketplace.
Tags
- ecommerce website
- multi-vendor
- Ruby on Rails framework
- gems
- emarketplace
- RoR
- e-commerce
- RoR developers
- marketplace development
- online marketplace development
- startups
- Ruby
- ecommerce
- programming languages
- framework
- online marketplace
- Ruby on Rails marketplace
- coding
- building marketplace
- Ruby on Rails
- Ruby on Rails development company
- Ruby gems
- e-commerce platform
Annotators
URL
-
-
countryoftheblind.blogspot.com countryoftheblind.blogspot.com
-
http://countryoftheblind.blogspot.com/2012/01/mnemonics-for-pronouncing-chinese.html
The Marilyn method is a means of creating associated characters and places to sounds/tones in Chinese for memorizing kanji.
<small><cite class='h-cite via'>ᔥ <span class='p-author h-card'>Lynne Kelly</span> in Foreign Languages – a call for opinions – Lynne Kelly (<time class='dt-published'>11/22/2021 12:44:51</time>)</cite></small>
-
- Oct 2021
-
-
Another option is the use the functional library Ramda, while the syntax may be a bit different from the Ruby and Pure JS version, I find it to be more declarive: list = [null, "say", "kenglish", "co", null] R.reject(R.isNil, list) // return new array [ 'say', 'kenglish', 'co' ]
-
- Sep 2021
-
www.reddit.com www.reddit.com
-
At the same time, details about programming language semantics are quite precise and when articles like this get things sort of wrong, it just leads to more confusion.
-
-
knowablemagazine.org knowablemagazine.org
-
Whistlers of tonal languages thus face a dilemma: Should they whistle the tones, or the vowels and consonants? “In whistling, you can produce only one of the two. They have to choose,” says Meyer.
Non-tonal speech is easy to transfer into whistling language, but tonal languages have to choose between whistling the tones or the vowels and consonants as one can only produce one of the two with whistling.
What effect does this tell us about the information content and density of languages, particularly tonal languages and whistling?
-
- Aug 2021
-
www.martinfowler.com www.martinfowler.com
-
When people talk about internal DSLs I see two styles: internal minilanguages and language enhancements.
-
- Jun 2021
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
Same feature in TypeScript¶ It's worth mentioning that other languages have a shortcut for assignment var assignment directly from constructor parameters. So it seems especially painful that Ruby, despite being so beautifully elegant and succinct in other areas, still has no such shortcut for this. One of those other languages (CoffeeScript) is dead now, but TypeScript remains very much alive and allows you to write this (REPL): class Foo { constructor(public a:number, public b:number, private c:number) { } } instead of this boilerplate: class Foo { constructor(a, b, c) { this.a = a; this.b = b; this.c = c; } } (The public/private access modifiers actually disappear in the transpiled JavaScript code because it's only the TypeScript compiler that enforces those access modifiers, and it does so at compile time rather than at run time.) Further reading: https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties https://basarat.gitbook.io/typescript/future-javascript/classes#define-using-constructor https://kendaleiv.com/typescript-constructor-assignment-public-and-private-keywords/ I actually wouldn't mind being able to use public/private modifiers on instance var parameters in Ruby, too, but if we did, I would suggest making that be an additional optional shortcut (for defining accessor methods for those instance vars) that builds on top of the instance var assignment parameter syntax described here. (See more detailed proposal in #__.) Accessors are more of a secondary concern to me: we can already define accessors pretty succinctly with attr_accessor and friends. The bigger pain point that I'm much more interested in having a succinct shortcut for is instance var assignment in constructors. initialize(@a, @b, @c) syntax¶ jsc (Justin Collins) wrote in #note-12: jjyr (Jinyang Jiang) wrote: I am surprised this syntax has been repeatedly requested and rejected since 7 years ago. ... As someone who has been writing Ruby for over 10 years, this syntax is exactly that I would like. I grow really tired of writing def initialize(a, b, c) @a = a @b = b @c = c end This would be perfect: def initialize(@a, @b, @c) end I'm a little bit sad Matz is against this syntax, as it seems so natural to me. Me too!! I've been writing Ruby for over 15 years, and this syntax seems like the most obvious, simple, natural, clear, unsurprising, and Ruby-like. I believe it would be readily understood by any Rubyist without any explanation required. Even if you saw it for the first time, I can't think of any way you could miss or misinterpret its meaning: since @a is in the same position as a local variable a would normally be, it seems abundantly clear that instead of assigning to a local variable, we're just assigning to the variable @a instead and of course you can reference the @a variable in the constructor body, too, exactly the same as you could with a local variable a passed as an argument. A workaround pattern¶ In the meantime, I've taken to defining my constructor and list of public accessors (if any) like this: attr_reader \ :a, :b def new( a, b) @a, @b = a, b end ... which is still horrendously boilerplatey and ugly, and probably most of you will hate — but by lining up the duplicated symbols into a table of columns, I like that I can at least more easily see the ugly duplication and cross-check that I've spelled them all correctly and handled them all consistently. :shrug: Please??¶ Almost every time I write a new class in Ruby, I wish for this feature and wonder if we'll ever get it. Can we please?
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
-
Introduce behaviour that is likely to surprise users. Instead have due consideration for patterns adopted by other commonly-used languages.
-
-
stackoverflow.com stackoverflow.com
-
in languages (like JavaScript and Java) where external objects do have direct access to instance vars
-
-
basarat.gitbook.io basarat.gitbook.ioClasses1
-
Having a member in a class and initializing it like below:class Foo { x: number; constructor(x:number) { this.x = x; }}is such a common pattern that TypeScript provides a shorthand where you can prefix the member with an access modifier and it is automatically declared on the class and copied from the constructor. So the previous example can be re-written as (notice public x:number):class Foo { constructor(public x:number) { }}
-
-
disqus.com disqus.com
-
The answer is no, we use a pattern where we do this, and have a `static` method for manufacturing the constructor.e.g.static from({prop1, prop2}) => new this(public prop1, public prop2)
-
-
-
TypeScript includes a concise way to create and assign a class instance property from a constructor parameter.
-
-
betterprogramming.pub betterprogramming.pub
-
Then, people from programming communities (mainly front-end) realized that CoffeeScript is out of date and is starting to lag behind the ever-evolving Javascript environment. As of today, January 2020, CoffeeScript is completely dead on the market (though the GitHub repository is still kind of alive).
-
-
-
www.hebergementwebs.com www.hebergementwebs.com
-
stackoverflow.com stackoverflow.com
-
Programmers should be encouraged to understand what is correct, why it is correct, and then propagate.
new tag?:
- understand why it is correct
Tags
- programming languages: learning/understanding the subtleties
- having a deep understanding of something
- spreading/propagating good ideas
- combating widespread incorrectness/misconception by consistently doing it correctly
- quotable
- good advice
- annotation meta: may need new tag
- programming: understand the language, don't fear it
Annotators
URL
-
-
en.wikipedia.org en.wikipedia.org
-
ISO 639-3 extends the ISO 639-2 alpha-3 codes with an aim to cover all known natural languages.
-
-
japanese.stackexchange.com japanese.stackexchange.com
-
語 is the suffix which means 'language'. Unlike English which needs two different nouns for a country and its language, in Japanese, you can simply add 語 after the name of a country to mean the language spoken in that country. (e.g. ドイツ = Germany, ドイツ語 = German, フランス = France, フランス語 = French)
-
-
www.groovy-lang.org www.groovy-lang.org
-
-
loc.gov loc.gov
-
This doesn't seem entirely trust-worthy/useful.
The native name seems incorrect/missing for some languages, like German, Hebrew, compared to https://gist.github.com/piraveen/fafd0d984b2236e809d03a0e306c8a4d
-
-
stackoverflow.com stackoverflow.com
-
The US Library of Congress has been designated the official registration authority by the ISO and they publish the entire, official, up-to-date list as a trivial to parse text file for free.
-
-
gist.github.com gist.github.com
-
gist.github.com gist.github.com
-
en.wikipedia.org en.wikipedia.org
-
Similarities in dialects[edit]
-
-
developer.mozilla.org developer.mozilla.orgProxy1
-
get: function(target, prop, receiver) { return "world"; }
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
What is the equivalent of unbuffer program on Windows?
-
-
stackoverflow.com stackoverflow.com
-
It seems inelegant to me to split this into two different modules, one to include, the other to extend.
the key thing (one of them) to understand here is that: class methods are singleton methods
-
-
gist.github.com gist.github.com
-
Apparently when you create a subclass, that subclass's singleton class has # its superclass's singleton class as an ancestor.
This is a good thing. It allows class methods to be inherited by subclasses.
-
-
github.com github.com
-
Learn more about the Ruby's Object, Class & Module and the method receiver chain.
-
- Mar 2021
-
github.com github.com
-
ProMotion is a RubyMotion gem that makes iOS development more like Ruby and less like Objective-C.
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
If this is okay, then it might even be nice if #dig took a block as well as a fallback value: [].dig(1) { 'default' } #=> "default"
-
Would it be desirable to specify the new object in a block? That would make it somewhat symmetrical to how Hash.new takes a block as a default value.
-
-
en.wikipedia.org en.wikipedia.org
-
Title: "goal the use case is trying to satisfy"[23]:101 Main Success Scenario: numbered list of steps[23]:101 Step: "a simple statement of the interaction between the actor and a system"[23]:101 Extensions: separately numbered lists, one per Extension[23]:101 Extension: "a condition that results in different interactions from .. the main success scenario". An extension from main step 3 is numbered 3a, etc.
Not sure why I find this example so interesting.
Probably because it is a human-readable outline that uses machine-readable (programming language source code) constructs, namely loops/iteration.
The format in which this is written in, then, is itself a kind of (high-level, human-oriented) programming language.
Example:
- numbered list of steps [introduces/names the loop/iterator/enumeration being done]
- Step: "a simple statement of the interaction between the actor and a system" [defines the inner part of the loop that gets "executed" once per iteration]
- numbered list of steps [introduces/names the loop/iterator/enumeration being done]
-
-
www.sitepoint.com www.sitepoint.com
-
JavaScript needs to fly from its comfy nest, and learn to survive on its own, on equal terms with other languages and run-times. It’s time to grow up, kid.
-
If JavaScript were detached from the client and server platforms, the pressure of being a monoculture would be lifted — the next iteration of the JavaScript language or run-time would no longer have to please every developer in the world, but instead could focus on pleasing a much smaller audience of developers who love JavaScript and thrive with it, while enabling others to move to alternative languages or run-times.
Tags
- avoid giving partiality/advantage/bias to any specific option
- programming languages
- neutral/unbiased/agnostic
- JavaScript: as a process VM
- level playing field
- software freedom
- separation of concerns
- neutral ground
- runtime environment
- competition in open-source software
- programming languages: choosing the best language for the job
- good idea
Annotators
URL
-
-
en.wikipedia.org en.wikipedia.org
-
multi-paradigm: functional, imperative
-
- Feb 2021
-
en.wikipedia.org en.wikipedia.org
-
The forms of the final keyword vary:
-
-
github.com github.com
-
But now, you can do the same thing in functional style!
-
Brings functional programming to Python land
-
-
-
I'm not a fan of listing exceptions functions can throw, especially here in Python, where it's easier to ask forgiveness than permission.
-
-
dry-rb.org dry-rb.org
-
Another solution is using the Safe Navigation Operator &. introduced in Ruby 2.3 which is a bit better because this is a language feature rather than an opinionated runtime environment pollution
-
-
fsharp.org fsharp.org
Tags
Annotators
URL
-
-
developpaper.com developpaper.com
-
This is the most popular article “railway oriented programming” on one of the most popular websites of F #.
I may have seen it before but not really paid attention to it, but this just might be the first time I stopped to look it up.
Because I saw the code below, didn't recognize the language, and was intrigued.
-
-
-
{a: 1, b: 2, c: 3, d: 4} => {a:, b:, **rest} # a == 1, b == 2, rest == {:c=>3, :d=>4}
equivalent in javascript:
{a, b, ...rest} = {a: 1, b: 2, c: 3, d: 4}
Not a bad replacement for that! I still find javascript's syntax a little more easily readable and natural, but given that we can't use the same syntax (probably because it would be incompatible with existing syntax rules that we can't break for compatibility reasons, unfortunately), this is a pretty good compromise/solution that they've come up with.
-
-
github.com github.com
-
We think that, although Ruby is a great language for the backend, the view should be written in languages designed for that purpose, HTML and JavaScript.
-
- Dec 2020
-
en.wikipedia.org en.wikipedia.org
-
github.com github.com
-
Svelte is its own language, not plain HTML+CSS+JS
its own _
-
- Nov 2020
-
github.com github.com
-
github.com github.com
-
Supersedes (and first sighting at): https://github.com/wycats/javascript-decorators
-
-
imfeld.dev imfeld.dev
-
Converting Angular components into Svelte is largely a mechanical process. For the most part, each Angular template feature has a direct corollary in Svelte. Some things are simpler and some are more complex but overall it's pretty easy to do.
-
-
dart.dev dart.dev
Tags
Annotators
URL
-
-
www.technotification.com www.technotification.com
-
Thanks for posting this helpful, well written article. Learning programming, or any other thing one takes up, requires you to sit at one place have a plan of action for your study.
I was going through my Firefox bookmarks and I found article. I had read this article two years back and had commented that I found it to be useful. I read it back in May 2018. As of now, November 2020, my programming skills are still novice-level. I haven't implemented the ideas or followed suggestions given here.
It has been 2 years and 5 months since I found this article to be relevant and it baffles me that I haven't taken action by making use of the knowledge given in this article. Two long years flew by. I guess reviewing my bookmarks is something that I will do more often.
The article was posted on May 23, 2018 and I had stumbled on it the next day itself, i.e., May 24, 2018. This gets me thinking that we could finds solutions for problems(latest ones in this case) once we identify it, articulate it, hit the search button and just read stuff. I could presume that what happened next was that I misunderstood "finding a solution" to "realizing the solution", and perhaps became complacent or maybe there were more problems that didn't come to my awareness to identify and further find solutions. I'm not quite sure. Should I have identified my problems and googled more so that I could have learned C and C++ sooner?
I wonder what held me back from taking action to accomplish and master something that usually takes not more that 5-6 months maximum.
-
- Oct 2020
-
www.leslla.org www.leslla.org
-
Great resources
-
This collection of forty theme-based readers utilizes authentic photographs and stories to explore topics immediately relevant to adult newcomers
Adult ESL resources
Tags
Annotators
URL
-
-
humanwhocodes.com humanwhocodes.com
-
JavaScript is, of course, a dynamic language that allows you to add and remove objects and their members at any point in time. For many, this is precisely why they enjoy the language: there are very few constraints imposed by the language.
-
-
github.com github.com
-
The problem is that not all tooling supports adding new dependencies from a transform. The first step is figuring out how this can be done idiomatically in the current ecosystem.
-
-
github.com github.com
-
For event listeners we support the standard jsx naming convention onEventname (this is converted to on:eventname in svelte) as well.
-
-
github.com github.com
-
express one's model of Existence
-
create patterns & metaphor
-
-
-
it also allows for more divergence in how people write there code and where they put their logic, making different svelte codebases potentially even more different due to fewer constraints. This last point is actually something I really value, I read a lot of Svelte code by a lot of different people and broadly speaking things look the same and are in the same places.
Tags
- consistency
- strong conventions resulting in code from different code bases/developers looking very similar
- convention
- programming: multiple ways to do the same thing
- idiomatic pattern (in library/framework)
- uniformity
- idiomatic code style (programming languages)
- software development: code organization: where does this code belong?
Annotators
URL
-
-
svelte.dev svelte.dev
-
This is the Svelte version of this example: https://codesandbox.io/s/reactivity-react-responds-to-changing-props-forked-d2j44?file=/src/Label.js
-
-
github.com github.com
-
They even named the main file
react.js
so when converting/migrating components from React you could (at least some of the time, perhaps) simply leave some of the imports as-is:import {createHooks, useRef} from './react';
-
-
en.wikipedia.org en.wikipedia.org
-
some programming languages that provide lexical closures view encapsulation as a feature of the language orthogonal to object orientation.
-
-
-
The $: can also be used to trigger effects.
-
We can run effects when some data changes using watchEffect - it takes a function that runs whenever a reactive value used inside changes.
-
- Sep 2020
-
sapper.svelte.dev sapper.svelte.dev
-
page components can have an optional preload function that will load some data that the page depends on. This is similar to getInitialProps in Next.js or asyncData in Nuxt.js.
-
-
shipshape.io shipshape.io
-
www.codingwithjesse.com www.codingwithjesse.com
-
Svelte, on the other hand, is a compiler. In a way, Svelte is more like a programming language than a library.
-
-
Local file Local file
-
in constructing representations of how to supportlearning in particular cases
It reminds me of conjecture mapping. Are we going to make the similar thing?
-
-
-
Cymraeg Byw was promoted with the intention of facilitating thelearning of Welsh particularly among adults, and providing a stable ‘plat-form’ from which they could progress to fluency – and inevitably, as withLiterary Welsh, the loser once again was the native speech of ordinaryWelsh speakers, dismissed by implication as irrelevant. The counter argu-ment, now all the stronger for hindsight, must be that, as with all languages,the aim of the serious learner is competence in the living language; if thatmeans coping with dialect variation, then so be it – it has to be faced sooneror later, and it may as well be sooner.
-
Within the Celtic family, Welsh has as its closest relatives: Breton (Welshname Llydaweg), spoken in Brittany – estimates of number of speakersvary, but probably somewhat under half a million active users; and Cornish(Cernyweg), extinct since the late eighteenth century, though recently‘resurrected’ by enthusiasts. More distantly related are Irish (Gwyddeleg),Scots Gaelic (Gaeleg yr Alban) and the extinct Manx (Manaweg, whoselast native speaker died in 1974). Welsh, Breton and Cornish constitute theBrythonic group, while the others form the Goidelic group. There arestrong similarities within each group, and considerable differences betweenthe two. All six languages share certain basic characteristics which markthem out as Celtic languages – notably the mutation system (see §§3–12),and inflected prepositions (see §446).
Tags
Annotators
-
-
daveceddia.com daveceddia.com
-
-
React doesn’t provide something like ng-class, but there is a great library called classnames that does the same and more. Install it:
-
- Aug 2020
-
stackoverflow.blog stackoverflow.blog
-
“I came to Rust from Haskell, and I feel that Haskell is a very elegant and safe language. The biggest differentiator for me is that there is a greater difference between high-performance code and idiomatic ‘clean’ code in Haskell than in Rust. Most Rust code looks like most other Rust code, even when it performs well. Haskell can become unfamiliar real quick if someone is operating under different libraries and goals from what you are typically doing. Small differences in syntax can result in huge differences in behavior, and Rust has more uniformity on that axis.”
-
-
-
unix.meta.stackexchange.com unix.meta.stackexchange.com
-
Then when giving answers I'm even less certain. For example I see occasional how-to questions which (IMO) are ridiculously complex in bash, awk, sed, etc. but trivial in python, (<10 lines, no non-standard libraries). On such questions I wait and see if other answers are forthcoming. But if they get no answers, I'm not sure if I should give my 10 lines of python or not.
-
- Jul 2020
-
amp.dev amp.dev
-
The above errors can be resolved by simply adding the ⚡attribute to the <html> tag like so: <html ⚡ lang="en">
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
www.ruby-lang.org www.ruby-lang.org
-
A beginless range is experimentally introduced. It might not be as useful as an endless range, but would be good for DSL purposes.
-
-
en.wikipedia.org en.wikipedia.org
-
the overloaded operators ¬, =, ≠, and abs are defined
-
-
en.wikipedia.org en.wikipedia.org
-
Most of Algol's "special" characters (⊂, ≡, ␣, ×, ÷, ≤, ≥, ≠, ¬, ⊃, ≡, ∨, ∧, →, ↓, ↑, ⌊, ⌈, ⎩, ⎧, ⊥, ⏨, ¢, ○ and □) can be found on the IBM 2741 keyboard with the APL "golf-ball" print head inserted; these became available in the mid-1960s while ALGOL 68 was being drafted. These characters are also part of the Unicode standard and most of them are available in several popular fonts.
-
- Jun 2020
-
github.com github.com
Tags
Annotators
URL
-
-
grammarist.com grammarist.com
-
In a rare show of solidarity, both British English and American English spell advertise with an s in all forms.
-
- May 2020
-
en.wikipedia.org en.wikipedia.org
-
In natural languages, some apparent tautologies may have non-tautological meanings in practice. In English, "it is what it is" is used to mean 'there is no way of changing it'.[1] In Tamil, vantaalum varuvaan literally means 'if he comes, he will come', but really means 'he just may come'.[2]
-
- Apr 2020
-
en.wikipedia.org en.wikipedia.org
-
The programming language is augmented with natural language description details, where convenient, or with compact mathematical notation.
-
-
ell.stackexchange.com ell.stackexchange.com
-
Other languages, German for example, are notorious for very long compunds like this and this, that are made up and written as one word directly. Perhaps the way your native language deals with compounds explains your (or other authors') personal preference and sense of "right"?
-
-
github.com github.com
-
tony-lang.github.io tony-lang.github.io
-
kokociel.blogspot.com kokociel.blogspot.com
-
Just as with wine-tasting, having a bigger vocabulary for colours allows specific colours to be perceived more readily and remembered more easily, even if not done consciously.
-
- Mar 2020
-
rubyworks.github.io rubyworks.github.io
-
A NackClass is the same as NilClass except for any method it does not recognize, it return the instance of itself. nack.nack.nack.nack #=> nack Note I used to call this NullClass, but "nack" seems a little more fitting a term.
-
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
www.argotrans.com www.argotrans.com
-
Language doesn’t exist inside of a vacuum. Every language is strongly influenced by the culture the language was born from.
-
- Feb 2020
-
www.w3.org www.w3.org
- Jan 2020
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
I've often wished for some standard variable to use for blocks and such. Like some people here, I had considered
it
. Usually I use_
but I know that means "unused" to many/most programmers. I like the%
option that Clojure has.
-
- Dec 2019
-
frankensteinvariorum.github.io frankensteinvariorum.github.io
-
‘I have ten thousand florins a year without Greek, I eat heartily without Greek.’
This passage comes from Oliver Goldsmith's (1730-1774) novel The Vicar of Wakefield (1766), and seems to ask whether education ought to be directed squarely towards vocational training (as clear from Clerval's father's opinion), or whether learning the classical languages or literature (or "the Greeks") is valuable in itself.
-
- Nov 2019
-
reasonml.github.io reasonml.github.io
-
Reason is not a new language; it's a new syntax and toolchain powered by the battle-tested language, OCaml.
-
-
ocaml.org ocaml.org
-
-
rubykaigi.org rubykaigi.org
- Oct 2019
-
github.com github.com
-
www.hanselman.com www.hanselman.com
-
If you love Ruby, you'll enjoy CoffeeScript as it makes the JavaScript more like the Ruby.
-
- Aug 2019
-
github.com github.com
-
github.com github.com
-
Null Coalescing Operator
-
- Apr 2019
-
-
The very concept of a “programming language” originated with languages for scientists — now such languages aren’t even part of the discussion! Yet they remain the tools by which humanity understands the world and builds a better one.
A powerful recognition based on historical perspectives.
-
- Oct 2018
-
www.paulgraham.com www.paulgraham.com
-
Perhaps part of the confusion - and you say this in a different way in your little memo - is that the C/C++ folks see OO as a liberation from a world that has nothing resembling a first-class functions, while Lisp folks see OO as a prison since it limits their use of functions/objects to the style of (9.). In that case, the only way OO can be defended is in the same manner as any other game or discipline -- by arguing that by giving something up (e.g. the freedom to throw eggs at your neighbor's house) you gain something that you want (assurance that your neighbor won't put you in jail).
[9] "Sum-of-product-of-function pattern - objects are (in effect) restricted to be functions that take as first argument a distinguished method key argument that is drawn from a finite set of simple names."
-
Sum-of-product-of-function pattern - objects are (in effect) restricted to be functions that take as first argument a distinguished method key argument that is drawn from a finite set of simple names.
fwiu: the "finte set of simple names" are all the objects defined in the codebase e.g. in java there are no functions as such just methods attached to classes i.e. "their key argument"
-
All you can do is send a message (AYCDISAM) = Actors model - there is no direct manipulation of objects, only communication with (or invocation of) them. The presence of fields in Java violates this.
from what I understand in Java... there are some variables on classes (class instances) that are only acessible through methods and for those the "only send message" paradigm holds but there are also fields which are like attributes in python which you can change directly
-
Parametric polymorphism - functions and data structures that parameterize over arbitrary values (e.g. list of anything). ML and Lisp both have this. Java doesn't quite because of its non-Object types.
generics so you've got a "template" collection e.g. Collectoin<animal> and you parametrise it with the Animal type in this example how is that broken by "non-Object types" in java</animal>
-
Encapsulation - the ability to syntactically hide the implementation of a type. E.g. in C or Pascal you always know whether something is a struct or an array, but in CLU and Java you can hide the difference.
is this because:
- interfaces--contextually identical (because satisfy common set of behaviours)?
- or being wrapped in objects (thus blurring the difference)?
Tags
Annotators
URL
-
-
en.wikipedia.org en.wikipedia.org
-
Following Christopher Strachey,[2] parametric polymorphism may be contrasted with ad hoc polymorphism, in which a single polymorphic function can have a number of distinct and potentially heterogeneous implementations depending on the type of argument(s) to which it is applied. Thus, ad hoc polymorphism can generally only support a limited number of such distinct types, since a separate implementation has to be provided for each type.
kind of like clojure multimethods but those can dispatch on arbitary function hence arbitrary "property"
-
In programming languages and type theory, parametric polymorphism is a way to make a language more expressive, while still maintaining full static type-safety. Using parametric polymorphism, a function or a data type can be written generically so that it can handle values identically without depending on their type.[1] Such functions and data types are called generic functions and generic datatypes respectively and form the basis of generic programming.
so essentially this is just a way to escape the contrains of types--overspecifying the type of argument for e.g. append function
I guess the behaviour implement cannot really implement on the type of value
-
- Jan 2018
-
en.wikipedia.org en.wikipedia.org
-
Dynamic dispatch
a.k.a. Dynamic Method Dispatch
-