Law & Programming: More Similar Than You Think?

How code and legal reasoning share a common language—and why that matters for the future of law.

Category
Tax
Date
2.17.2025

Law & Programming: More Similar Than You Think?

At Castilho we are fascinated by the structured logic that underpins both law and programming. In our legal practice, we apply computational thinking to analyze complex issues, leveraging AI and automation to enhance efficiency.

Recently, our Partner Luís Castilho had the chance to participate in an article written by the brilliant Roger Graves (Chief Technology Officer, Cloverpop by Clearbox Decisions) and had the opportunity to discuss these ideas with him. It reinforces what we have observed firsthand—law and coding share a common foundation of logic, precision, and rule-based systems.If you’re interested in how structured thinking and technology are reshaping the legal profession, this is a great read (it will just take 2m of your time).

You car read it here.

Accolades from
"
I was very impressed by the vast amount of knowledge Luís possessed, both in terms of theoretical knowledge of the Portuguese Fiscal Law.
Leonardo Bertolini Zichy Thyssen
IE Business School
Luis is really great expert in taxes. He is fast, furious and totally client oriented. I highly recommend Luis for all who need to clarify tax strategy in Portugal.
Anton Voroniuk
SaaS Growth & GenAI Expert 
I am eternally grateful to Luis and look forward to working with Luis for many years to come.
Kathryn Murphy
Global Director of Partnerships at World Connect, Inc.
They say "Your network is your Net worth". Well, consider yourself a rich man if Luis is in any way part of your network.
Ella Grobler
Property Investor and Developer at Rouge Homes Ltd
Luis is knowledgeable, sharp and a pleasure to work with.
Chris Gourlay
Strategy & Innovation Consultant | Founder of Spacehive
He has been extraordinarily responsive and impeccably detailed while conveying the many laws and procedures in an easily understandable manner.
John Sumners
Journalist, Author
Luis Castilho is an extremely efficient, responsive, highly qualified, professional that I have had the pleasure to work with.
Melinda Given
Senior Medical Science Liaison
Luis provides a very professional service, his fees are appropriate and he goes out of his way to assist.
Peter Lunning
Independent consultant
Simples, Rápido e Bastante Profissional.
Hugo Espada
Nova Frigo S.r. l. Spain & Portugal Sales Manager
Luis is the best tax law professional that I have worked with.
Roger Graves
CTO at Cloverpop
Quick, smart, practical.
Maxim Sokiran
Legal and PR Expert
Luís is an outstanding Tax Lawyer, reliable and fully dedicated to his clients. I highly recommend Luís.
David Vicente
DVM, MVSc, PhD, MRCVS, Assistant Professor
He provides high level, timely and outstandingly customer centered tax advices.
Francesco Bax
Executive Leader
Luís Castihlo is hands down one of the best lawyers and tax experts I've ever worked with!
Florian Kaiser
CEO at Inbox Marketing
Working with Luis has been an exemplary experience in navigating Portuguese tax complexities.
Eliot Raymond
Product Lead @ A.Team | Marketing | Growth
Luis Castilho is an excellent tax lawyer. His speed of delivery, deep insights, and presentation skills are truly impressive.
Oleksandr Pysaruk
CEO at Raiffeisen Bank
Ultimately I was able to confidently make an informed tax decision. I have recommended Luis to several friends and co-workers and will definitely continue to do.
Daniel Lourenço
Sr. Director
Honest, highly qualified in Portuguese tax law, deadline maniac and a great guy. Pleasure to work with. Highly recommended.
Maxim Shkolnick
General Partner @ Focus Estate Fund
Integridade e foco em ajudar o cliente insuperável.
André Rodrigues Lopes
General Manager at Datahouse Portugal
I rarely write reviews, but I felt compelled to do this one. Luís Castilho is an excellent professional, very responsive, knowledgeable and thoughtful.
Indira Gomes
Legal Counsel at African Legal Support Facility
I am very happy that he is responsive and I would certainly recommend his services to others.
Steve Howard
Entertainment Promoter/Producer/Consultant
Prev
Next