Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Making some progress writing a Gopher client

Дата публикации: 15-09-2021 00:00:00

Late last month, I had hit that point where the architecture of my Gopher client was really bugging me down. Implementing a search form modal, for sending queries to search servers like Veronica-2, turned out to be really painful. I had kind of shied away from looking at other browsers like Amfora because I didn’t want to make a straight up clone of an existing application.
Since this was my very first application with a somewhat complex terminal user interface, I caved and decided to dig into Amfora anyway. Turned out I was overcomplicating things, trying to do way too much with structs and struct methods where just regular functions sufficed.

Основное содержимое страницы с новостью.

15 September 2021

Late last month, I had hit that point where the architecture of my Gopher client was really bugging me down. Implementing a search form modal, for sending queries to search servers like Veronica-2, turned out to be really painful. I had kind of shied away from looking at other browsers like Amfora because I didn’t want to make a straight up clone of an existing application.

Since this was my very first application with a somewhat complex terminal user interface, I caved and decided to dig into Amfora anyway. Turned out I was overcomplicating things, trying to do way too much with structs and struct methods where just regular functions sufficed.

I spend the last three weeks taking cues from Amfora while refactoring large parts of the code. Last night, I had revived most of the existing functionality in a new, more flexible architecture. I was also able to throw away several code smells left and right. The new architecture reduced some aspects that needed re-implementing into one or two lines of code.

I’m quite happy overall since what I build isn’t Amfora. This experience affirms once more that learning from other people’s code does pay dividends.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1This was my year07.4728-12-2021
2Announcing Bougie, a terminal browser for the smolweb06.3802-08-2025
3AMALIA: How a Fully Open Language Model for Portuguese Was Technically Designed and Built04.4702-07-2026
4Elura: an authoritative realtime game server framework written in Rust07.6428-07-2026
5Claude CLI for Alfred10824-06-2026
6Blog: gRPC-Rust Client API Evolution (pt. 1/2)011.5429-05-2026
7[Show] swift-topomap: Silicon-aware TUI and eBPF metrics engine011.8727-07-2026
8Алгоритм был правильным. Ошибка была в контракте графа-17.5713-08-2026
9Go-juggler и протокол Juggler015.410-08-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 9. Тональность: 0. Информативность: 6.7. Источник: www.colada.be.