GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Punished Crab (rustycrab@sleepy.cafe)'s status on Wednesday, 21-Sep-2022 22:19:07 JSTPunished CrabPunished Crab
    in reply to
    • ICScaryThings
    • kroner
    • Fediverse Contractor
    • Nekobit [new here]
    • King Henry VIII
    • Hoss Delgado
    • Ian Cho
    @icscarythings @GoodPerson @Hoss @bot @iancho @kroner @neko ive been writing in both for a good while and I can tell you the effect you're seeing is an observation of imperative vs functional style. Lower level or helper functions should normally be written in a "stateless" manner as much as possible. That is, mostly static functions that take inputs an outputs, not implicitly changing globals or variables. Higher level logic is what should be explicitly keeping track of program state (which is what C++ is better at managing). You can still write the library parts in C++ but its best to avoid "business logic" state unless you're writing a framework with dependency injection.

    For what its worth, I have written production servers in C++, but I wouldn't do it again. They're just too sensitive to crashes.
    In conversation3 years ago from sleepy.cafepermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.

Embed this notice