Live data from Hacker News

You can serve static data over HTTP

ignore.pl

121–127 of 127 posts

Re: You can serve static data over HTTP

#121
post #2

Thanks, I think I can actually apply this idea actually. I'm writing a chat app for fun and one of the (admittedly small) issues I'm dealing with is cleanly storing the local state of the chat so that it appears correctly on refresh. There's some complexity involved with how messages are served, received, etc. with notifications, dings, animations, whatever -- but maybe saving that information to a file (as an altern…

Database reads all the time for your use-case.

Re: You can serve static data over HTTP

#122
post #39

Earlier quoted context omitted.

At some point, the plane flew so high above the clouds, and it hasn't seen the ground for so long, the passengers might think the clouds is the ground.

When "Hello World" is a cloud instance spun up and billed on your tuition. That won't really happen, right? No Computer Science (CS) professor would designate special cloud Interactive Development Environments (IDEs) to students. On the other hand, it would really resolve a lot of "doesn't work on my machine" issues.

Azure and AWS both have academic/educational resource buckets and discounts.

GitHub has said one of the largest growing areas for Codespaces (cloud IDE) usage is Education.

It's already happening. It does resolve a lot of "doesn't work on my machine" issues; it does leave some questions about how much students see of the "ground" below the Clouds.

Re: You can serve static data over HTTP

#123

Earlier quoted context omitted.

When "Hello World" is a cloud instance spun up and billed on your tuition. That won't really happen, right? No Computer Science (CS) professor would designate special cloud Interactive Development Environments (IDEs) to students. On the other hand, it would really resolve a lot of "doesn't work on my machine" issues.

It's been a while, but when I was in school I think things had to work on the campus ultrasparc systems.

Good way to catch unaligned access errors. I seem to recall a similar "you can develop on whatever you want, but to turn it in it needs to work on the Dept systems" back in my college days. Intro to CS was in pascal, and a bunch of us started with Turbo Pascal on our PCs, and figured out pretty quick the Pascal on the AT&T SVR3 boxen was a very different beast.

Re: You can serve static data over HTTP

#125
post #56

Earlier quoted context omitted.

You'd be surprised talking to the younger crowd.

Some time ago, a website was posted here (forgot the topic) which consisted of .md files, and a JavaScript library which would then, on the client, render the markdown on the fly. Why on earth the markdown was not pushed through a renderer so that then the server could serve static HTML is probably a question that only occurs to old timers like us.

https://caddyserver.com/docs/caddyfile/directives/templates

https://github.com/caddyserver/website/blob/master/src/docs/...

Re: You can serve static data over HTTP

#126

Earlier quoted context omitted.

> without using code completion or looking things up on SO/Github/etc. Does this arbitrary bar extend to language and library documentation as well?

Of course not, and the bar isn't arbitrary. That you ask this tells me that I was insufficiently clear as to my stance. My stance is that programmers should understand how to write programs, not just copy/paste them together.

Thanks for the clarification.

I certainly have way too much in my head to remember every nuance of several languages. As such, I lean heavily on multiple sources of external documentation to help me recall the specifics. That being said, this would in no way replace actual software development expertise, so I agree with your clarified stance.

I find using a good IDE with code completion and navigation is essential to efficient use of my time. I _also_ use vi constantly and perform most every other operation from the command line. I know I can get the same from properly setting up vi with the right plugins, but I find the ergonomics less appealing for my habits.

Re: You can serve static data over HTTP

#127

Not from a modern developer. You need to jump down the rabbit hole of the history of solid and proven solutions. Indeed. I've noticed an increasing number of people who call themselves "developers" and appear to create software, but all they can do is follow step-by-step tutorials to glue together some massively bloated thing that they have absolutely no understanding of, much less the skills to debug it when somethi…

> but all they can do is follow step-by-step tutorials

Lego's dream has come true.

Post reply on HN