Hacker Newsnew | past | comments | ask | show | jobs | submit | petercrona's commentslogin

Thanks for the comment. I never got around to try PureScript, but on my to-do list. Not sure how active it is, but looks like it is alive still. What I like about TypeScript is that you are working so close to the target language, so you know what you will get, which makes it easier to try to minimize app/bundle size. But, TypeScript types can be quite tricky and the type system doesn't seem as "smart" or powerful as Haskell (and I presume PureScript).

Not sure if I fully get your idea about having a configuration file and templates. Would it be a convenient and concise way to create "simple" pages basically? Pages that are "generic", e.g. all just displaying some content? So you would only need to create more complex pages outside the config, e.g. those that are interactive?


Ah, nice, I'll need to get back on it. Basically this config context contains the relationship between (the equivalent of) Views, Models, and Controllers. The components are separate files, and are only referenced in the config along with additional settings. The framework would then do most of the heavy lifting to glue things together, while preserving rendering efficiency (no unnecessary re-renderings)

Part of the motivation is to optimize the developer experience for any given app, with the observation that all UI apps, at least within a specific context like the DOM/HTML/REST, can be fully abstracted away. Development would then become mostly about specifying the unique information for that stack and context, i.e. server endpoint url, response data structure, html structure, and event processing hooks. In other words, it's supplying only the minimum required amount of information to build arbitrarily complex applications. "Minimal" here is not necessarily simple, it could still be something complex, it would just be unique to that app.

I didn't get much working with PureScript, as I was still exploring some existing frameworks that might already achieve this, but as a quick example, it would be something like:

import models // contains pure functions for data mapping / normalization

import views // contains templates and styles

import controllers // contains event mappings

export {

   view: view1, 

  "component_name": { 

       model: model1,

       views: [ view2, view3 ],

       controllers: [ controller 1 ]

       options: { ... }

   },

}


Small Improvements | Full-Stack, Backend, Frontend | Berlin, Germany | Hybrid or Remote (living in Germany) | Full-time (4 days possible after 6 months) https://www.small-improvements.com/careers/senior-software-d...

We're looking for a senior full-stack developer/engineer. We're using mainly Java (with Spring) and TypeScript (with React). We're a small and self-funded company. The engineering team puts a lot of weight on continous learning and always challenging the status quo - that's the only way we can get better as individuals and as a team. All engineers get a lot of space and trust so they can always do their best.

As a company, we offer a performance management tool, which includes features like setting up and keeping track of objectives/goals, giving praise, 360 feedback and performance reviews.


Thanks for the comment and a very good point! Nice blog posts too!

I wrote a little about CO2 in https://www.babyfriendlyair.com/en/guides/air-pollution-prim... .

I often see very high CO2 levels in bedrooms, which was also observed in the mini study https://www.mdpi.com/2076-3417/9/17/3533 , and the simple act of leaving the bedroom door open might presumably therefore improve sleep quality (https://onlinelibrary.wiley.com/doi/abs/10.1111/ina.12435) according to these small studies. But of course, adequate ventilation could make sure this isn't a problem regardless if the door is open or not.

Just to add to your point about the importance of ventilation, there are also VOCs (eg. from furniture off gassing and cleaning products) that HEPA filters can't do much about, and at least in my experience (which is a bit skewed due to only measuring with "cheap" sensors), active carbon filters only help for a short while. Other technologies, like photocatalytic air purification, seem to also have limited effect, and do in turn produce CO2 as they break down pollutants (I'm not sure how much though), which again means adequate ventilation is important. So having "control" over where air gets in to the building is very helpful indeed, as you can't get around needing an adequate air exchange.

You seem to know quite a bit about this already, but in case you or anyone else is curious, a few more articles:

Effects of Classroom Ventilation Rate and Temperature on Students’ Test Scores https://journals.plos.org/plosone/article?id=10.1371/journal...

Stuffy classrooms may lower test scores (easier read that discusses the above but also some other studies) https://www.sciencenewsforstudents.org/article/stuffy-classr...

Poor air quality on the day of a test can have big impacts on how well a student performs (doesn't discuss CO2 specifically though) https://www.aeaweb.org/research/pollution-effects-highstakes...

Possible future impacts of elevated levels of atmospheric CO2 on human cognitive performance and on the design and operation of ventilation systems in buildings https://journals.sagepub.com/doi/full/10.1177/01436244187901...


Thanks for the comment!

I get the impression that people in Asia (well, I only have limited experience of Shanghai and various cities in south-west Japan) are quite aware. I saw a lot of air purifiers (for instance in hotels) in Japan. And in Shanghai they showed PM2.5 predictions as part of the weather forecast. And I noticed that a lot of people know about formaldehyde (a specific chemical / VOC that can be problematic in indoor air). Although, an old guy I met in Shanghai told me "I don't really like air purifiers, you have to clean them all the time, I rather just open the window" ;)

But in Germany where I live, or Sweden where I'm from, few people I know ever thought about this. I suppose the air is just too good for people to bother thinking about it. But as observed in https://sciencenordic.com/chemistry-denmark-environment/our-... it might still be worth spending a few thoughts about it:

“Our indoor UFP levels are close to those in Beijing apartments but the pollution sources are completely reversed,” says Bekö, explaining that 70 percent of all UFPs in Beijing are from outdoor sources while in Denmark it’s the other way around. (they looked at indoor pollution in Copenhagen, and UFP stands for ultrafine particles (here defined as "Ultrafine particles (UFPs) are particles with a diameter of less than 100 nanometres.", so kind of PM0.1))

I would be really happy if I could create low-cost air purifiers or DIY solutions (I have quite good success with a Pringles can made an air purifier to reduce PM2.5 ;) ). Not sure if that will happen, but, luckily others do it already: https://smartairfilters.com/

IKEA also have an air purifying curtain (https://www.ikea.com/us/en/rooms/living-room/how-to/purify-y...) at a decent price - but don't know how good it is and it won't work for particles, but just chemicals/gases. They recently also released an air purifier https://newsroom.inter.ikea.com/news/ikea-committed-to-make-... which is fairly cheap (49.99EUR/~60USD), especially the filter (HEPA H12) sticks out a bit to me just costing 4.99EUR (6USD) in Germany. Spontaneously, SmartAirFilters feels like a better choice for people that live where they sell it cheaply though.

You are still right of course, more money can give better stuff, and both IKEA and SmartAirFilters might still be way too expensive for many.


Thanks for the comment, and nice to hear you have your PM levels under control!

I'm not sure if your rice cooker example is entirely deceptive actually. I haven't read about or experimented much with particles from "boiling water" - so take my words with a big grain of salt. But, in https://chemistry.stackexchange.com/questions/105154/why-doe... it is pointed out that you might be seeing various things that were in the water (perhaps also from the rice). And I found https://blog.getawair.com/awair-investigates-how-your-humidi... quite interesting too, where they saw significant differences depending on what water they used. Seems they got similar results in https://www.scirp.org/html/7-6703158_71993.htm in which they write:

"Under the conditions of the tap water humidification and the cold boiled water humidification, the mass concentration of particulate matters increases dramatically. But under the condition of the purified water humidification, particulate matters of each particle size have no obvious changes, and the mass concentration is lower."

The linked studies are about humidifiers, so perhaps different, but feels like for instance a rice cooker is not that far off. My gut feeling is that the particulate matter generated through "boiling water" is generally less dangerous than what you get from high-temperature frying (perhaps can depend on the water though). For instance based on https://www.nature.com/articles/s41586-020-2902-8 :

"We find that secondary inorganic components, crustal material and secondary biogenic organic aerosols control the mass concentration of particulate matter. By contrast, oxidative potential concentration is associated mostly with anthropogenic sources, in particular with fine-mode secondary organic aerosols largely from residential biomass burning and coarse-mode metals from vehicular non-exhaust emissions."


In case anyone is curious about the tech:

I'm using Hakyll (https://jaspervdj.be/hakyll/index.html) to generate the static website and https://github.com/jaspervdj/hakyll-citeproc-example for reference handling (but adapted so that I have a ".bib" file per blog post).

The reference handling was really painful when I tried to do it manually at first, but hakyll-citeproc has made it really easy. A lot of websites let you download a "citation" (in bibtex format) so you can just copy & paste it in your ".bib" file. For others, I use https://www.bibme.org/bibtex to generate one.

For deploy, I use a simple deploy script (4 lines of code) that pushes it up to an amazon s3 bucket and clears the Cloudfront cache.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: