My brother asked me when and how I though I could teach my baby niece so that she could make "a lot of money as a developper".
My answer was "when she asks for it".
There are many things a kid should learn, and among them, a huge number are more important than programming (plus sometimes a pre-requisite for it):
- reading
- writing
- basic maths
- critical analysis
- building your own idea
- defending yourself verbally, mentally and physically
- expressing yourself
- chosing ingredients and preparing food
- proper life hygiene
- understanding the current society, the medias, the political system, etc
- learning a second language
I recall that when I was a freshman, some kids were still not be able to read out loud correctly.
Programming can come later. Way, way later.
In fact, she may even not enjoy programming at all, or even consider it.
I think the best bet is like with music. If it's something you want to share: demo a lot of it in regular life, associate it with joy, and the kid may just show an interest in it.
I think programming should enter a kids learning environment around the same time and priority as a second language.
How would someone know whether to consider it, if not exposed to it at all?
Most people in the English-speaking western world won't make a vast amount of use of that second language. Some will though, and the rest of us will appreciate that the training we did get helps us see things from a different perspective and maybe lets us interact a little easier on vacation. Most won't use their Chemistry or Physics education in day to day life, but it will help them understand the world better.
As our world becomes dominated by software, training in it becomes similar - even those who aren't going to go all in and follow a career in it, can conceivably benefit from some training.
Languages can start very young though. Locally I'm familiar with a lot of families of mixed-nationality. In my own case my partner's native language is Finnish and mine English; our child grew up hearing/understanding both, and now speaks both of them to the appropriate parent.
(It's quite fascinating to see that play out, we were walking in the street recently and somebody stopped to ask me a question. He butted in and said "Daddy speaks English", in Finnish, to the stranger.)
> I think programming should enter a kids learning environment around the same time and priority as a second language.
For a lot of people, than means learning programming before learning english.
Which is incredibly counter productive. It's like learning maths without pen and paper. Sure you can do it, but I wouldn't want to.
Besides, there are only a limited number of hours in the day. Energy and motivation are also in short supply. You can't do everything at once, and even if you manage a bit of parallelism, you'll end up doing a lot supperficially.
Better be sequencial. And prioritize.
> How would someone know whether to consider it, if not exposed to it at all?
Like I said, just like with music, you put it everywhere, and you associate it with joy.
Play with robots, make beautiful programmable lights shows in the kid room, use games like turing tumble, program openly and talk proudly about the result, create bots to annoy the kid in social media, make your own "alexa" system that the whole family can abuse, lay around bare raspi you can fiddle with, etc.
The idea is that you feel like the house in "honey I shrunk the kids". It calls for experimenting.
> Most people in the English-speaking western world won't make a vast amount of use of that second language.
First, that's not most of the world. Second, of course they would. It opens an entire different culture that make you think differently, grow differently. Sure, you can put a number on it, but it's huge, and it must happen soon, or it will unlikely happen at all.
It's hard to learn a language by yourself unless you travel abroad, while learning programming alone is easy.
In fact, if you have the money, sending your kid abroad in hight school or college is fantastic.
> Most won't use their Chemistry or Physics education in day to day life, but it will help them understand the world better.
And because you had to learn all that at the same time, most people don't understand basic physics, chemistry or maths. They don't speak a second language either. They lost everything, trying to do all the things.
> As our world becomes dominated by software, training in it becomes similar - even those who aren't going to go all in and follow a career in it, can conceivably benefit from some training.
Software is just regular life, automated and faster.
This appears to run counter to all educational programs, everywhere.
I'll listen to your theories on why programming is unimportant after the world has accepted your theories on only learning one thing at a time, I guess.
> Like I said ...
That's introductory teaching right there. You're simply quibbling about methods.
> It's hard to learn a language by yourself unless you travel abroad, while learning programming alone is easy.
Not really, not if nobody ever introduced you to the fact that programming exists, and held your hand as you dipped your toes in.
Maybe it was easy for you, as a self-motivated hacker type, that doesn't mean everyone is like that (even those who end up in the industry, doing perfectly well).
> Software is just regular life, automated and faster.
my nephews asked for it. it was Minecraft that got them into it. unfortunately that also meant that they wanted to learn Java, so they will probably be put off for life.
Yep, same with my son. Minecraft just might be the most singularly influential phenomenon in an entire generation of budding software engineers.
My son, who is not yet 6, will watch YouTube videos about creating something in Minecraft and then build it almost exactly to spec later, not while watching the video. This includes some redstone contraptions. It’s pretty mind-blowing to watch him.
You can bridge scripting from any programming language into minecraft through the use of plugins.
The educational versions of minecraft (e.g. the raspi version) integrate python scripting directly.
Microsoft forked a "bedrock" version of minecraft that I'm not as familiar with and that has a different plugin ecosystem. The Java-based version still has all the same plugin capabilities it always has.
But if the equivalent exist as a Firefox add on, I use that instead, because it bypasses many restrictions.
In this article, the video BM can be replaced with the excellent "Enhancer for Youtube", at least on Youtube: https://addons.mozilla.org/fr/firefox/addon/enhancer-for-you.... Just being able to change the speed of the video using the mouse wheel is a god send.
Same for archive.li or the way back machine.
But I'll steal the space scroll one, this red bar is nifty.
Someone should make a bundle installer with this, bat, fdfind and ripgrep. I do enjoy those alternative to GNU, and install as many as I can: they are easier to use, usually faster, and just make more sense to my brain.
I do not have an issue with this command, regex field separator and negative index alone makes it a good alternative over cut. And I use ripgrep too. I'm bothered by the description.
I would even suggest the command to add ability to invert the ranges, byte selection (if -c is character and not byte selection), add examples for character splitting in README, etc.
There are literally thousands of Unix tool replacements released on GitHub, and more every year.
Just off the top of my head, fex and miller are alternative cut-likes with field extraction.
Unless a new unix-tool-alike is significantly better and backwards-compatible, HN and most greybeard nixers tend toward conservatism. The old tools are usually good for 95% of use-cases anyway. There's just way too much to keep track of if you're eager to switch to any old shiny new thing.
Tools like rg offer additional features and/or save you from tediously specifying many options. This one gives you -f for free, that’s about it. Detailed comparison: https://news.ycombinator.com/edit?id=23445931
- it supports regex separators. That's a great feature to me.
- the default separator is "\s", like python's split(). Just for that I will adopt it: not having to care about tabs/spaces/mixes is a much better experience.
- it has negative indexes, again like python. Getting the last field, or the last nth field, is something common enought. I don't want to rewrite the thing with a twisted double "rev" with proper index. And I don't want to have to google it.
- plus the syntax is just must easier to remember to me. When I use cut, I always try: "echo 'foo bar baz' | cut 2", just to realize that I need to pass '-f', then I do "cut -f 2", and get stump, and google it, to then remember I need to pass the delimiter explicitly even if it's a space.
> I can't understand why you are mentioning awk. Cut or choose cannot be compared to awk, awk is a programming language.
Because 99% of awk IRL use is just as a fancier cut.
It's very rare someone even sets a variable using awk. If you do it, you are a statistical rarity.
> Also I don't think that it's so much easier to use than cut. On the other hand every *nix system has cut so if you make scripts with it they are portable.
I, for one, never remember the syntax for cut. If "choose" gets a deb, I'll use it: Python slicing is something familiar to me.
I don't care if cut is on every unix system: if I have the possibility to install things on the machine, then I'll just install what I need. I have a script for that. If I don't, I'll google/man/--help GNU commands as usual.
And as for writing shell scripts, I use Python anyway.
> Because 99% of awk IRL use is just a as fancier cut.
You say "fancier", I say "working": since cut can't work on general whitespace without a pre-processing phase (e.g. tr), it simply doesn't work for the vast majority of the things I try to shove into it, and I pretty much always end up using awk instead.
Choose means my awk use will fall down by 99% or so.
Everything except the awk part is something that I use all the time and is easy to type & remember.
To be honest I'd use `choose` if it was available everywhere, but for string manipulation I can't justify using nonstandard tools since they aren't always available.
Every now and then there are some new ones I actually start to use. For example `ripgrep` mostly replaced `grep -R` for me some time ago, a lot of it has to do with the fact that if `rg` is not found I can fallback to normal grep and get the same result, just a bit slower.
I guess my point is that while I do appreciate innovation & making better tooling, the hard part always is getting the tool where it's most needed.
My answer was "when she asks for it".
There are many things a kid should learn, and among them, a huge number are more important than programming (plus sometimes a pre-requisite for it):
- reading
- writing
- basic maths
- critical analysis
- building your own idea
- defending yourself verbally, mentally and physically
- expressing yourself
- chosing ingredients and preparing food
- proper life hygiene
- understanding the current society, the medias, the political system, etc
- learning a second language
I recall that when I was a freshman, some kids were still not be able to read out loud correctly.
Programming can come later. Way, way later.
In fact, she may even not enjoy programming at all, or even consider it.
I think the best bet is like with music. If it's something you want to share: demo a lot of it in regular life, associate it with joy, and the kid may just show an interest in it.
Then foster than.
Then setup lessons, discipline, etc.
But don't make it a requirement.