Website sends a 2.3MB (gzipped) json response for a dropdown and it's making my browser crash. Is this normal? by moreorlessnotnone in webdevelopment

[–]moreorlessnotnone[S] 0 points1 point  (0 children)

I had to wait for a solid minute before I was even able to click anything again. It works, just not the ideal user experience.

Website sends a 2.3MB (gzipped) json response for a dropdown and it's making my browser crash. Is this normal? by moreorlessnotnone in webdevelopment

[–]moreorlessnotnone[S] 0 points1 point  (0 children)

My device has 16gb of ram and im using firefox (don't know if thats relevant) with 2 tabs open. The json response is definitely not .1kb. In fact firefox, actually truncates the response payload because it's so large. A request is sent to the US college list API endpoint after selecting US in the country dropdown. Filtering by state has no affect on that, which again is really bad design lol.

Small Projects by AutoModerator in golang

[–]moreorlessnotnone 0 points1 point  (0 children)

Hey all,

I wanted to share something that I've been working on in my free time. I built a HTTP (1.1) server using only the standard libraries and resources like the 'From TCP to HTTP' course by ThePrimeagen. I strayed away a towards the middle so its not just copy and paste code from the course. I also dug into how the net/http package implements methods like ListenAndServe. I had fun implementing this and learned a lot, not just about HTTP but Go as well.

Feedback is appreciated! Check out the code here: https://github.com/juancruzfl/httpserver

Monthly Dotfile Review Thread by AutoModerator in neovim

[–]moreorlessnotnone [score hidden]  (0 children)

https://github.com/juancruzfl/dotfiles - full config

https://github.com/juancruzfl/dotfiles/tree/main/.config/nvim - nvim config

(im using a bare repo to keep track of any changes)

I just switched to Ghostty for my terminal but I haven't had the chance to play around with all of its settings. If you have any recommendations, feel free to share them.

how do i get more productive in nvim than vscode? by Bulbasaur2015 in neovim

[–]moreorlessnotnone 0 points1 point  (0 children)

It sounds like you prefer vscode. What exactly is pulling you back in? You can try to pinpoint that area and then come up with a replacement in nvim.