Perché Arc Non è Particolarmente Object-Oriented // Why Arc Isn't Especially Object-Oriented

EPISODE · Mar 12, 2024 · 3 MIN

Perché Arc Non è Particolarmente Object-Oriented // Why Arc Isn't Especially Object-Oriented

from Paul Graham: il pifferaio magico dei nerd · host Davide Bracaglia

Traduzione e lettura in italiano di Davide Bracaglia dall’essay originale di Paul Graham "Why Arc Isn't Especially Object-Oriented".In questo momento c'è una sorta di mania per la programmazione Object-Oriented, ma alcuni dei programmatori più intelligenti che conosco sono tra i meno entusiasti.La mia sensazione è che la programmazione Object-Oriented sia una tecnica utile in alcuni casi, ma non è qualcosa che deve pervadere ogni codice che si scrive. Dovreste essere in grado di definire nuovi tipologie, ma non dovreste esprimere ogni programma come la definizione di nuovi tipi.Credo che ci siano cinque ragioni per cui alla gente piace la programmazione orientata agli oggetti, e tre e mezzo di queste sono negative:* La programmazione orientata agli oggetti è entusiasmante se si dispone di un linguaggio a tipi statici senza chiusure lessicali o macro. In un certo senso, offre un modo per aggirare queste limitazioni. (Si veda la decima regola di Greenspun).* La programmazione orientata agli oggetti è popolare nelle grandi aziende, perché si adatta al modo in cui scrivono il software. Nelle grandi aziende, il software tende a essere scritto da grandi team (che cambiano spesso) di programmatori mediocri. La programmazione orientata agli oggetti impone a questi programmatori una disciplina che impedisce a ciascuno di loro di fare troppi danni. Il prezzo è che il codice risultante è gonfio di protocolli e pieno di duplicazioni. Questo non è un prezzo troppo alto per le grandi aziende, perché il loro software probabilmente sarà comunque gonfio e pieno di duplicazioni.* La programmazione orientata agli oggetti genera molto di quello che sembra lavoro. Ai tempi del fanfold, c'era un tipo di programmatore che metteva su una pagina solo cinque o dieci righe di codice, precedute da venti righe di commenti elaborati. La programmazione orientata agli oggetti è come il crack per queste persone: permette di incorporare tutta questa impalcatura direttamente nel codice sorgente. Qualcosa che un hacker Lisp potrebbe gestire spingendo un simbolo in un elenco diventa un intero file di classi e metodi. È quindi un ottimo strumento se si vuole convincere se stessi, o qualcun altro, che si sta facendo molto lavoro.* Se un linguaggio è esso stesso un programma orientato agli oggetti, può essere esteso dagli utenti. Beh, forse. O forse si può fare ancora meglio offrendo i sottoconcetti della programmazione orientata agli oggetti à la carte. L'overloading, per esempio, non è intrinsecamente legato alle classi. Vedremo.* Le astrazioni orientate agli oggetti si adattano perfettamente ai domini di alcuni tipi specifici di programmi, come le simulazioni e i sistemi CAD.Personalmente non ho mai avuto bisogno di astrazioni orientate agli oggetti. Common Lisp ha un sistema di oggetti enormemente potente e non l'ho mai usato. Ho fatto molte cose (per esempio tabelle di hash piene di chiusure) che avrebbero richiesto tecniche orientate agli oggetti per essere realizzate in linguaggi più stupidi, ma non ho mai dovuto usare CLOS.Forse sono solo stupido o ho lavorato su un sottoinsieme limitato di applicazioni. C'è un pericolo nel progettare un linguaggio basato sulla propria esperienza di programmazione. Ma sembra più pericoloso inserire cose di cui non si è mai avuto bisogno perché si pensa che sia una buona idea. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit paulgrahamita.substack.com

NOW PLAYING

Perché Arc Non è Particolarmente Object-Oriented // Why Arc Isn't Especially Object-Oriented

0:00 3:56

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

The Game Radio Popolare Soldi, lavoro, avidità, disoccupazioni: il grande gioco dell’economia smontato ogni giorno da Raffaele Liguori. Chicagoland Parenting Stories lisa99y Meet Lisa Zimmermann, a lactation consultant and pediatric nurse from Lombard IL. She is a home visitor, meeting families in their homes to help them feed their babies and adjust to their new role as parents. Lisa relies on many other professionals to help her clients achieve their goals for feeding, pain management and a return to equilibrium. As she has met many providers after a recent move, Lisa has wished their conversations dug a bit deeper, and she was getting to know the person she was meeting- not just the professional. She is also known for meeting new parents ”where they are”, meaning providing an opportunity for some laughter, education and positive feedback. This is why she created this podcast!She likes to joke with new parents they have been upgraded to the 2.0 operating system- if they like it or not! There are things we all miss about our lives before we were parents, but we also discover the rich complexities of being a parent as time goes on. We all have ups and dow Whatever the Weather - Another Arsenal Podcast Graham McDougall; James Seymour; Danny Sampson; Keith Maguire; Tom Draper Another Arsenal podcast…one you didn’t know you needed in your life, but one you absolutely do.Dan, Graham, James, Keith, and, Tom discuss by far the greatest team the world has ever seen! Women with Dyslexia Podcast: Living the Gospel with Power Hope B This podcast is designed for women with dyslexia who believe that God can do something new. The Apostle Paul says that we are transformed by renewing our minds to do what pleases the LORD, which is His will. When our minds are renewed (neuroscientists call this neuroplasticity), we are transformed. This podcast will contain short biblical messages designed to replace our old negative thinking with the truth found in God’s word. It is devoted to encouraging and inspiring adult women with dyslexia by listening to biblical truths that will uplift and challenge them to find a place for dyslexia in their lives and let Christ take center stage of their lives. To benefit from these short yet powerful messages, I recommend making these podcasts part of your morning and evening time with the Lord. Thank you for joining me.
URL copied to clipboard!