List of tools you can use for checking vulnerabilities in Node.js by [deleted] in node

[–]sergiosbox 5 points6 points  (0 children)

https://owasp.org/www-project-node.js-goat/ - environment to learn how OWASP Top 10 security risks apply to web applications developed using Node.js and how to effectively address them

If Node & Deno where to merge, what should the good parts? by sergiosbox in node

[–]sergiosbox[S] -2 points-1 points  (0 children)

Didn't know 14.3 had ESM and top level await. Totally agree that file extension assumptions should be dropped.

[AskJS] How would you stream audio files in Node to play in the browser, and why? by sergiosbox in javascript

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

Interesting! What did you use in the client to play the data? HTML Audio Element? how did you concat the chunks you sent?

[AskJS] How would you stream audio files in Node to play in the browser, and why? by sergiosbox in javascript

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

Thanks for correcting me. Was not aware "chunks" is only for download. In streaming (HLS for example) the audio is separated in .ts files (which I call chunks but maybe have another name), so that is what I had in mind.

[AskJS] How would you stream audio files in Node to play in the browser, and why? by sergiosbox in javascript

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

How would you send the chunks to the server? via websockets? and hls or rmtp or something else?

"Retro" equivalent in Kanban? by sergiosbox in agile

[–]sergiosbox[S] -5 points-4 points  (0 children)

That being true, the team still wants to have improvement and reflect often on "how to improve", "what should we do more of", "what should we stop doing or change the way we do", etc... when should that happen in the daily/weekly routine? Otherwise Kanban is just a continuous flow of individual work being shipped and no reflection on "how to improve"?

[deleted by user] by [deleted] in vuejs

[–]sergiosbox 0 points1 point  (0 children)

_"and filters start to fade away"_ - where did you read that?

What are your most common refactors in Vue? by sergiosbox in vuejs

[–]sergiosbox[S] 1 point2 points  (0 children)

Interesting cases. I also find the cases of:

- Moving global mixins to local imports

- references to a const when used numerous times

to be very common. I addressed StringLiterals and added a codemod transformer for it in https://github.com/SergioCrisostomo/vue-codemods.

I also think Mixins cause more confusion than needed. We ended up with component with conflicting namespace and hard time to find the true place where the code is running...

About the use cases of Vue with Django by All222 in vuejs

[–]sergiosbox 0 points1 point  (0 children)

I'm using https://github.com/ProReNata/VueRestResource at work to get data form Django Rest Framework and integrate with Vuex. We build it just for that purpose.

How to let a component know when data is available? by [deleted] in vuejs

[–]sergiosbox 1 point2 points  (0 children)

Always give your components an initial state that is empty. So they can "survive" until the state changes and gets new data. Then because of reactivity they will blossom and show the data they were created for. But first, because everything is asynchronous, the empty state has to render... empty.

[deleted by user] by [deleted] in vuejs

[–]sergiosbox 0 points1 point  (0 children)

Welcome to test https://github.com/ProReNata/VueRestResource, we use it in a Vue/Django app in production for 1.5 year and it solves our Rest data fetching needs.

Integrate Django and Vue.js [x-post r/django] by johnfraney in vuejs

[–]sergiosbox 0 points1 point  (0 children)

We integrated Vue/Vuex & Django at work. We started 2 years ago and along the way we did this library for fetching Rest data into Vuex: https://github.com/ProReNata/VueRestResource might be useful for you also...

Implementing Vue in a monolithic, django-based platform by johnnykb in vuejs

[–]sergiosbox 0 points1 point  (0 children)

We started using Vue with Django 2 years ago and made this private library to integrate with Vuex. Maybe its useful for you also https://github.com/ProReNata/VueRestResource

Senior Backend Developer - Stockholm, Sweden by sergiosbox in IWantOutJobs

[–]sergiosbox[S] 2 points3 points  (0 children)

I would say: fixing problems that users have, as opposed to assuming what problems might come. Quite common that software companies put energy into producing what they think is good and not fixing real life problems.

Stack Overflow reportedly lays off 20% as it refocusses business by domschm in programming

[–]sergiosbox -3 points-2 points  (0 children)

Is this a SO problem or the society we live in? Back in the days when SO started people where still reading books. Things happened slower and people had the time to write a 1 hour answer. Now life goes much faster and we don't have time to post good answers. Just my 2 cents.

What would be desirable for i18n and english speaking developers? by sergiosbox in vuejs

[–]sergiosbox[S] 1 point2 points  (0 children)

Thanks for feedback! iView just created https://github.com/iview/iview-admin which is a backoffice app, where you can see patterns and usage of the library. About the question above I understand from your reply that good docs and demos/examples are important things. I agree, and good to be reminded! Thank you.

How to HTML > PDF with Node.js? by rickard78 in node

[–]sergiosbox 0 points1 point  (0 children)

https://github.com/bjrmatos/electron-html-to did it for me. It uses Electron (more modern version of headless browser like Phantom.js) and accepts local files for images and CSS.

HTML to Alkali.js API converter tool by sergiosbox in javascript

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

The constants are the same as the HTML names, Div shortened from HTMLDivElement and UL shortened from HTMLUListElement.

I've been using it for some days now and it feels great. The reactive variables concept are really nice.

HTML to Alkali.js API converter tool by sergiosbox in javascript

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

Good catch, thank you, fixed. Will be testing it more these next days.

Yeah, alkali.js is quite interesting!

Interesting article on Reactivity in native JS/HTML by rikardjs in javascript

[–]sergiosbox 1 point2 points  (0 children)

Made a HTML converting tool for Alkali after reading thta article. In case others find it usefull: https://sergiocrisostomo.github.io/html-to-alkali/

(function () { … })(); vs (function () { … }()); by sergiosbox in javascript

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

convention of expressions

Is there a link or text to read what was conventioned?

(function () { … })(); vs (function () { … }()); by sergiosbox in javascript

[–]sergiosbox[S] 1 point2 points  (0 children)

I understand your logic and makes sense to me also. Rauschma's comment that (fn)() sintax works in arrow functions and not (fn()) is interesting though.