News for hackers. Stuff that matters.

guggle

Re:Microsoft Deprecates VBScript on Tuesday October 10, 2023 @06:15PM (#37838392)
ON ERROR RESUME NEXT !
Re:I got robbed of my first kernel contribution on Wednesday September 27, 2023 @11:24AM (#37676027)
That's what I do too. At the end of the day, all I want is for my patch to be included so I don't have the problem anymore. I code for a living and I don't have to sell myself to recruiters in my field. But I fully understand why one would want to be credited, and that's just fair.
Re:Web Apps Are Better Than No Apps on Tuesday September 19, 2023 @09:45AM (#37569856)
> I guess with newer apis such as the File System one Electron is slowly becoming unnecessary

Last time I tried, it was still a pain point. For one, the API felt... alien. Also, the performance was not good. I'm not sure why, maybe it's my Javascript-FU that's bad, but all in all I'd still use another language for this if possible.

Re:Show HN: I built a Python web framework from scratch on Saturday September 09, 2023 @09:56PM (#37452199)
Stuck for a while in python 2.x world with its "always backward compatible" pledge... then it lost attention I guess. Also, questionable technical choices. Now py 3.5+ compatible, but no compelling reason to use it.
Re:Show HN: I built a Python web framework from scratch on Saturday September 09, 2023 @09:46PM (#37452129)
Bottle was decent before Flask. Couldn't we use that instead ?
Re:Htmx is part of the GitHub Accelerator on Wednesday August 16, 2023 @10:06AM (#37147228)
> my favorite after htmx

That's interesting. I discovered Unpoly after HTMX (which I like) and decided to stay with Unpoly for a few reasons. Do you think hypermedia libraries will converge or do you think there is space for different interpretations ?

Re:Htmx is part of the GitHub Accelerator on Wednesday August 16, 2023 @07:51AM (#37145654)
> “I need to update other content on the screen. How do I do this?”

This is a complete non-issue in unpoly as you can have multiple targets:

    <a href="/posts/5" up-target=".content, .unread-count">Read post</a>
https://unpoly.com/targeting-fragments

HTMX gets a lot of attention, but I think it's not the best option in its field.

Re:Backward Compatibility, Go 1.21, and Go 2 on Tuesday August 15, 2023 @11:02AM (#37134833)
> we're in an season of backend development that favors separation (vs bundling) of concerns

I work in a small team (5 developers), on multiple projects that span from 3 months to 1 year of work. While I like some of Go qualities (like speed, types, low memory, easy deployment,...) it would be hard for me to introduce Go to the team. The thing is that with Django (or Laravel, or Rails, or any "opiniated" framework) I can point the team to a nice single documentation website and associated framework that covers probably 90 to 95% of our needs and gets us right into the business logic real fast. There's real value in framework integration for teams like us (and for this very reason, we don't use Flask either, way to much fiddling). Also, the feature set in these solutions, while maybe "out of season", is fine for most of our projects.

At this point, should I want to push Go to the team, I would have integrate libraries myself and document... so basically starting my own version of a "framework". Like you said, it's a sprawling project. But hey... isn't it how Django started ? Maybe one day...

Meanwhile, I'll stick to using Go in my personal projects, until I have a very clear picture of the ecosystem.

Re:Backward Compatibility, Go 1.21, and Go 2 on Monday August 14, 2023 @04:47PM (#37126610)
There are plenty of Flask equivalent in Go IMO. Django... not so much.
Re:Orb is a free and open source web desktop on Wednesday August 09, 2023 @04:17PM (#37067798)
Where did I say it was you ?
Re:Orb is a free and open source web desktop on Monday August 07, 2023 @06:33PM (#37041866)
Funny how some people have this mindset only about jquery and not unecessary fonts, icons, image backgrounds, etc.
Re:Orb is a free and open source web desktop on Monday August 07, 2023 @04:14PM (#37040356)
I never undertood the fuss with bandwidth and jquery either... it's only 30k once behind mod_deflate. To put it in perspective, vue.global.js is 463k or 104k once gzipped.

There are many reason not to use Jquery for greenfield projects now, but bandwith is not one of them.

Re:Just Normal Web Things on Saturday August 05, 2023 @10:50PM (#37018522)
Re:I'm Betting on HTML on Friday August 04, 2023 @04:20AM (#36997021)
There’s plenty of literature (and debate !) about mvc/mvt (and its numerous variants and interpretations) in the context of web apps. It’s interesting that you challenge the consensus though.
Re:Unicorn – A full-stack web framework for Django on Friday August 04, 2023 @01:06AM (#36995697)
Also Gunicorn…
Re:I'm Betting on HTML on Friday August 04, 2023 @12:53AM (#36995625)
I actually like htmx (I find Unpoly superior so that’s what I use, but it’s the same general idea) and the example given makes sense, but one should not extend locality of behaviour to the point of sprinkling SQL in templates. I don’t think that’s what the htmx folks had in mind in this essay either, their canonical example being the html/css/js trio. But hey… there’s no better experience than first-hand experience, you will find soon enough if it works for you.
Re:I'm Betting on HTML on Thursday August 03, 2023 @02:47AM (#36982235)
I almost have ptsd from these dark days, I won’t go into details ;-) but there’s plenty of literature about separation of concerns. Having the templates doing the data access takes me back 20 years ago, but I can see why this idea comes back in a web component era.
Re:Transform Your Android Device into a Linux Desktop on Wednesday August 02, 2023 @08:31AM (#36969982)
Anyone tried to use a phone as a low power web server ?
Re:I'm Betting on HTML on Wednesday August 02, 2023 @03:38AM (#36968086)
I also like htmx. But one day someone pointed me to unpoly, which I find better. So I’ll spread the word here: https://unpoly.com/
Re:I'm Betting on HTML on Wednesday August 02, 2023 @03:35AM (#36968071)
This…

    <ul>
    {{range .Query `SELECT id,name FROM contacts`}}
        <li><a href="/contact/{{.id}}">{{.name}}</a></li>
    {{end}}
    </ul>
…reminds me of what we used to do in php3 days. That was convenient, performant and… unmaintainable. Am I missing something ?
Re:Writing Python Like Rust on Thursday June 29, 2023 @12:12AM (#36516215)
Convincing my colleagues to use type hints in Python has been very easy. The benefits are obvious and immediate. To the point where I wonder why there was even a time when it was acceptable not to have them.
Indeed, I only had "simple" cases in mind. But hey... shouldn't the complex config files paths be specified through env vars ? ;)
All the software I write is configured through env vars... why use anything else ?
Re:Growing from Engineer to Manager on Sunday June 11, 2023 @06:13AM (#36279896)
I was about to write the exact same comment. I wish engineering experience was more recognized, especially in software fields.
Re:Writing Python like it's Rust on Sunday May 21, 2023 @10:02AM (#36020960)
I'd like a Django in Go ! But so farI haven't found anything that productive. I guess the "traditional" web framework for multi-pages website is not trendy enough.
Yes, and the Führer rides a T-Rex !
Re:47% of all internet traffic came from bots in 2022 on Sunday May 14, 2023 @04:07PM (#35940961)
> We've blocked every major hosting and Cloud ASN

How did you do that ? Years ago there was a script to block AWS and I made substantial savings by running it.

> What sort of functional requirements would cause you to choose one over the other?

MySQL failed me big time in the past, so my functional requirement would be "don't f** with my data". And so far, PostgreSQL and SQLite never did. Don't have time to give second chance, don't need to.

Older »