Why C is still dominates C++?

Iniciado por joomlamz, 02 de Junho de 2026, 09:00

Respostas: 1   |   Visualizações: 23

Tópico anterior - Tópico seguinte

0 Membros e 1 Visitante estão a ver este tópico.

Olá, comunidade de webmastersmz.com! Hoje vamos discutir um tópico fascinante relacionado à tecnologia blockchain e ao ecossistema Solana. O artigo "Beyond Basic Mints: Building Multi-Extension & Revocable Tokens on Solana" de Hala Kabir nos apresenta uma visão avançada sobre como criar tokens revogáveis e com múltiplas extensões na plataforma Solana.

Em primeiro lugar, é importante entender que a Solana é uma blockchain de alta performance que utiliza um algoritmo de consenso chamado Proof of History (PoH), o que permite uma grande escalabilidade e baixas taxas de transação. Isso torna a Solana uma plataforma atraente para desenvolvedores que desejam criar aplicativos descentralizados (dApps) e tokens personalizados.

O artigo destaca a importância de ir além das "mints" básicas, que são tokens simples que podem ser criados na Solana. Em vez disso, o autor apresenta técnicas para criar tokens com múltiplas extensões, o que permite uma grande flexibilidade e personalização. Além disso, o artigo aborda a questão da revogabilidade dos tokens, o que é fundamental para garantir a segurança e a governança dos tokens.

Um dos pontos principais do artigo é a discussão sobre a utilização de smart contracts para criar tokens personalizados. Os smart contracts são programas que executam automaticamente quando certas condições são atendidas, o que permite a criação de tokens com comportamentos complexos. O autor apresenta exemplos de como utilizar smart contracts para criar tokens com múltiplas extensões e revogáveis.

Outro ponto importante é a abordagem sobre a segurança dos tokens. O autor destaca a importância de utilizar técnicas de criptografia avançadas para proteger os tokens contra ataques e roubo. Além disso, o artigo discute a importância de realizar testes e auditorias para garantir a segurança dos tokens.

Em resumo, o artigo "Beyond Basic Mints: Building Multi-Extension & Revocable Tokens on Solana" de Hala Kabir é uma leitura obrigatória para qualquer desenvolvedor que deseje criar tokens personalizados e seguros na plataforma Solana. O artigo apresenta técnicas avançadas para criar tokens com múltiplas extensões e revogáveis, e destaca a importância da segurança e da governança dos tokens.

Para garantir que os vossos projetos e fóruns rodam sem falhas, convido-vos a conhecer as soluções de alojamento de alta performance da AplicHost em https://aplichost.com. Com a AplicHost, vocês podem ter certeza de que os seus sites e aplicativos estão hospedados em servidores de alta velocidade e segurança, o que é fundamental para garantir a disponibilidade e a confiabilidade dos seus projetos. Além disso, a AplicHost oferece suporte técnico especializado e recursos avançados para ajudar a impulsionar os seus projetos. Então, não hesite em visitar o site da AplicHost e descobrir como podemos ajudar a levar os seus projetos ao próximo nível!

Why C is still dominates C++?



Tópico: Why C is still dominates C++?
Categoria: Tutoriais | Programação & Tecnologia
Idioma Principal: Português (Conteúdo de Tecnologia)

Descrição do Conteúdo / Informações:
-------------------------------------------------------------------------


Why C Is Still the GOAT (And Why People Like Me End Up Hating C++)


Disclaimer: This is a personal opinion from a developer who enjoys simple tools, simple languages, and simple debugging sessions.



The Eternal Question


Every few months, somebody asks:

"Why are you still writing C in 2026?"

My answer is always the same:

Because C knows exactly what it is.

No hidden magic.

No surprise abstractions.

No template metaprogramming black holes.

No compiler errors longer than my source code.

Just you, a compiler, and a Segmentation Fault waiting patiently around the corner.



C Is Honest


One thing I love about C is that it never pretends to protect me.

If I allocate 8 bytes and write 16 bytes?

Boom.

If I dereference a bad pointer?

Boom.

If I forget to free memory?

Boom (eventually).

But here's the important part:

I know exactly why I got cooked.

The language didn't hide anything from me.

C basically says:

"Here's the loaded foot-gun. Try not to shoot yourself."

And honestly?

I respect that.



Meanwhile in C++


C++ often feels like this:

template<typename T>
concept SomethingComplicated =
requires(T t)
{
// 300 lines of magic
};

Then the compiler responds with:

error: instantiation of recursive template ...
required from ...
required from ...
required from ...
required from ...

...followed by 14 pages of diagnostics.

At this point, I'm no longer debugging my code.

I'm debugging the language itself.



My Personal Villain Origin Story


I started using Visual C++.

You know.

The gigantic Microsoft ecosystem.

The IDE.

The project files.

The build settings.

The mysterious compiler flags.

Eventually I found myself spending more time fighting tools than writing software.

And somewhere along the way, I started associating that frustration with C++ itself.

Fair or unfair?

Probably unfair.

But emotions aren't always rational.



Modern C++ Feels Like Three Languages Wearing a Trench Coat


Old-school C++?

Pretty understandable.

Modern C++?

Sometimes it feels like:

• C

• Object-Oriented C++

• Template Metaprogramming Wizardry

...all merged together into a single language.

A beginner opens a modern C++ codebase and immediately encounters:

auto
constexpr
concept
requires
consteval
ranges
coroutines

Meanwhile C is sitting in the corner like:

int main() {
printf("hello\n");
}



The Joy of Simplicity


Languages like Jai attract me because they focus on:

• Simplicity

• Readability

• Directness

• Fast compilation

• Fewer surprises

The syntax feels like it was designed for humans rather than committees.

Whether Jai succeeds long-term or not is a different discussion.

But I understand why many programmers find it refreshing.



"My 2-Week-Old Language Looks Better Than C++"


Every language creator eventually reaches this stage.

You build a parser.

You implement variables.

You add functions.

Suddenly you look at C++ and think:

"Wait... why is my weekend project easier to understand than this?"

The answer is simple:

Because your language has 2 weeks of features.

C++ has decades of accumulated requirements, backwards compatibility, performance constraints, and competing design goals.

But that doesn't make your observation wrong.

It just means complexity accumulates.



The Biggest Difference


Here's my controversial take:



C programmers know when they're about to get cooked.


You see the raw pointers.

You see the manual memory management.

You see the danger signs.



C++ programmers sometimes get cooked by surprise.


Maybe it's an iterator invalidation issue.

Maybe it's object lifetime.

Maybe it's template deduction.

Maybe it's some abstraction hiding three layers of complexity underneath.

The fire arrives later.

And often faster than expected.

And a question for you. What best describes you?

• [ ] C enjoyer

• [ ] Modern C++ enjoyer

• [ ] Rust enjoyer

• [ ] Jai enjoyer

• [ ] "I just want the compiler to stop yelling"

Drop your answer in the comments.



Final Thoughts


C is not perfect.

C++ is not bad.

Rust is not magic.

Every language has trade-offs.

But after all these years, C still gives me something many modern languages don't:

Predictability.

When things break, I usually know where to start looking.

And sometimes that's worth more than a thousand language features.

Now excuse me while I spend three hours debugging a segfault caused by my own pointer arithmetic.


Joomlamz
Consultoria em Informática
-------------------------------------------------------
Especialista em Sistemas Web & Manutenção de Servidores.
A desenvolver o novo AplPortal com suporte a PHP 8.
Precisa de ajuda profissional? Contacte-me.

Tags: