Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > pl.comp.programming > #34008

Re: Embedded HTTP Server

Newsgroups pl.comp.programming
Date 2020-06-10 12:13 -0700
References (5 earlier) <rbm3nv$jf$1@dont-email.me> <8aa9011f-5e8a-4ed1-8fbb-47a260945fb8o@googlegroups.com> <rbmdn3$43s$1@dont-email.me> <9bd79264-2d24-4022-8313-db838dd902ceo@googlegroups.com> <rbou6c$ikv$1@dont-email.me>
Message-ID <2e42d25c-e070-4bd5-b50e-3e1db8787139o@googlegroups.com> (permalink)
Subject Re: Embedded HTTP Server
From Maciej Sobczak <see.my.homepage@gmail.com>

Show all headers | View raw


> > Weź sobie funkcję std::sort.

> Teraz weź dowolny nagłówek z Qt

Nie używam.

> Niezłe 
> głupki, nie?

Nie. To ich wybór. Ja wybrałem tak jak autorzy std::sort.

> No ale to kiepskie towarzystwo. Co by o std:: nie mówić, jakościowo to 
> jest takie sobie,

Tak, teraz musisz się koniecznie wytrollować z tej retorycznej dziury, do której się sam wtrollowałeś.

> że nie wspomnę już że ma co najmniej kilka implementacji.

Podobnie jak standard POSIX. Też ma kilka implementacji.

Skoro jest wiele implementacji biblioteki standardowej i wszystkie mają podobne zdanie na ten sam temat (pomimo naturalnej konkurencji pomiędzy nimi), to można to zdanie nazwać jakimś konsensusem w danym temacie.
W przypadku jednej biblioteki (np. Qt) można to nazwać opinią.

> Asercje to rodzaj dokumentacji dla klienta. 

Nie. Dla klienta jest header. Jak się autor postara, to dokumentacja też tam jest. Ale przede wszystkim dla klienta jest header.

Asercje jako kontrakt są do bani właśnie przez to, że nie ma ich w headerze.

> Przydają się w debugu. Nic nie kosztują w runtime. Gdzie są wady które 
> powodują że nie warto?

Nie rozwiązują problemu, jakim jest niewłaściwa użyta funkcja i dają fałszywe poczucie bezpieczeństwa. O, fajnie, asserty przeszły, jest OK. A tu klops.

Uwaga: asserty są fajne *na końcu* funkcji - jako sanity-check, czy funkcja zrobiła to co miała zrobić.
Własnie dlatego, że są w implementacji, a nie w headerze.

> Trudno nazwać std:: poważną bibliteką pod kątem jakości.

Rozumiem.

> > Ja sprawdziłem w bibliotekach standardowych z trzech różnych kompilatorów.
> 
> To sprawdź jeszcze resztę świata.

A co będzie, jak znowu trafię na bibliotekę, która nie sprawdza?

> Zacznij od Qt.

Zacząłem od trzech różnych implementacji std.

-- 
Maciej Sobczak * http://www.inspirel.com

Back to pl.comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-05 13:57 -0700
  Re: Embedded HTTP Server Wojciech Muła <wojtek.mula@gmail.com> - 2020-06-06 03:44 -0700
    Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-06 11:34 -0700
      Re: Embedded HTTP Server Wojciech Muła <wojtek.mula@gmail.com> - 2020-06-08 02:39 -0700
        Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-08 11:33 -0700
  Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-06 14:34 +0200
    Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-06 11:42 -0700
      Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-06 22:22 +0200
        Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-06 15:02 -0700
          Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-07 00:36 +0200
            Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-07 12:46 -0700
              Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-07 23:21 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-08 00:49 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-08 11:52 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-08 13:43 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-08 23:24 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-08 14:52 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-09 00:08 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-09 13:23 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-09 22:47 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-09 14:14 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-09 23:32 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-10 11:57 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-10 22:52 +0200
                Re: Embedded HTTP Server Tomasz Kaczanowski <kaczus@poczta.onet.pl> - 2020-06-10 07:50 +0200
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-10 08:09 +0200
                Re: Embedded HTTP Server Mateusz Viste <mateusz@xyz.invalid> - 2020-06-08 10:32 +0200
  Re: Embedded HTTP Server Wojciech Muła <wojtek.mula@gmail.com> - 2020-06-06 10:10 -0700
    Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-06 12:00 -0700
      Re: Embedded HTTP Server Wojciech Muła <wojtek.mula@gmail.com> - 2020-06-08 03:25 -0700
        Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-08 12:20 -0700
          Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-08 21:32 +0200
            Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-08 14:44 -0700
              Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-09 00:22 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-09 13:43 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-09 23:15 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-10 12:13 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-10 22:54 +0200
                Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-10 13:35 -0700
                Re: Embedded HTTP Server heby <heby@poczta.onet.pl> - 2020-06-10 22:55 +0200
          Re: Embedded HTTP Server Wojciech Muła <wojtek.mula@gmail.com> - 2020-06-23 00:33 -0700
            Re: Embedded HTTP Server Maciej Sobczak <see.my.homepage@gmail.com> - 2020-06-23 14:13 -0700

csiph-web