shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

266
active users

#ruby

4 posts4 participants0 posts today

Tratto da "Programmazione elementare in Ruby." scritto da @anzu

"Abbiamo telefoni intelligenti, tablet o notebook che portiamo ovunque andiamo. I nostri figli li hanno, mini e microcomputer perennemente connessi ad Internet, dove possono fruire più o meno liberamente dei contenuti più disparati.
Vietare non è la soluzione, impedirgli di usarli non è la soluzione ma solo un tampone temporaneo che presto imparerà a scavalcare.
Si dovrebbe insegnare ai nostri figli, nativi digitali, l’approccio consapevole ed
informato.
Gli approcci agli insegnamenti informatici vanno rivisti e va rivista l’età in cui iniziare. Le lezioni di avviamento al computer che venivano e vengono utilizzati oggi non sono più adatti per i nativi digitali.
Accendere un computer e lanciare una applicazione per i nostri figli è naturale come per noi accedere il televisore e cambiare canale.
Usare un gioco, che è un software, è naturale per loro. Passivamente naturale, il mito della interattività è solo un percorso preordinato tra tanti progettati a monte dell’utente e si è passivi nell’illusione di non esserlo.
Bisogna passare dalla semplice visione strumentale e alfabetizzazione informatica alla fase di acquisizione delle competenze digitali.
Per questo motivo, si dovrebbe insegnare la programmazione dei computer ai bambini in età scolare.
Non per creare una generazione di programmatori (come mi si è accusato), ovviamente, ma per rendere delle persone consapevoli ed attive di fronte al mezzo informatico.
Programmare un computer è affrontare e risolvere problemi, problem posing and solving, è imparare a ordinare i pensieri per poter realizzare le idee. L’approccio può essere multidisciplinare e il metodo applicabile in molti campi e non necessariamente informatici.
Lo studio della programmazione è quindi, oltre alla sua mera applicazione, una
formidabile palestra di logica che guida il ragazzo attraverso un percorso che passa per l’analisi, la scomposizione dei problemi, la verifica dei risultati e l’organizzazione del pensiero."

#programmazione #ruby #rubyprogramming #rubylang #didattica #informatica

https://minimalprocedure.pragmas.org/writings/programmazione_elementare_ruby/corso_elementare_ruby.html

minimalprocedure.pragmas.orgProgrammazione elementare in Ruby.Corso elementare di programmazione Ruby

RUBY PRO TIP:

Don’t have a keyboard with the 0 key? No worries: you can get the number zero using

(-Class.new.instance_methods.count).succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ

Tested on ruby 3.4.5 (2025-07-16 revision 20cda200d3).

I'm reproducing the behavior of `cp -a` and `cp -a -n` in plain Ruby code not because it is easy, but because I **thought** it would be easy.

I'm using rsync to validate my implementation of `cp` in Ruby via shelling out to `rsync ... --dry-run`. Not because it is easy ...

Okay, sports fans, I've restored 4.3.9 on my private server. Yay!

The problem was that I had updated ruby. That caused local extensions to not be found. The solution was to do this:

gem pristine --all

and enjoy a cup of coffee. The errors stopped, everything was happy again, & I restarted the servers.

I'll pin this one on both servers for a while to spread the solution for "Source locally installed gems is ignoring [whatever] because it is missing extensions."

Okay, sports fans, I've restored 4.3.9 on my private server. Yay!

The problem was that I had updated ruby. That caused local extensions to not be found. The solution was to do this:

gem pristine --all

and enjoy a cup of coffee. The errors stopped, everything was happy again, & I restarted the servers.

I'll pin this one on both servers for a while to spread the solution for "Source locally installed gems is ignoring [whatever] because it is missing extensions."

The next Rooftop Ruby podcast is going to be a good one. Since the last time we recorded I released a new gem and put up a website that's let me try out Kamal and other new Rails features for the first time. #Ruby