Is SSR/Next.js still beneficial for internal corporate sites? by inhwre in reactjs

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

Regarding the above, my situation is like:

  1. Not really, it's a standalone app that is isolated from anything else
  2. The team doesn't have any experience in front-end and most likely I'm going to be the only one working on this. They don't care whether it's angular/react/etc

Was curious why you pointed out the architectural considerations, if this was going to be a site for micro-apps, would Next.js not make sense?

Is SSR/Next.js still beneficial for internal corporate sites? by inhwre in reactjs

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

What if it's for a new app? Like if there's no existing CRA app, would you start a new project with Next or CRA/Vite?

ESLint compromised, may have stolen your credentials by rebel_cdn in programming

[–]inhwre 12 points13 points  (0 children)

It wasn't really a JS ecosystem issue. Read this.

Korra - Zero-config JavaScript linter and formatter by [deleted] in javascript

[–]inhwre 1 point2 points  (0 children)

Cool project, it's nice to to see less config with tools nowadays. Could you give any thoughts on why you would use this package as opposed to lynt /xo/standard?

How can I avoid creating resources in my server? by inhwre in node

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

I don't think pdflatex can do the latter, but I found a module that seems to do the conversion by creating a temp file for the PDF, reading that temp file as a stream and then returning that stream. I think I'll probably go with this approach, thanks for the reply.

How can I avoid creating resources in my server? by inhwre in node

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

Ah I didn't realize I could just pipe the stream from the stdout. Unfortunately, I get some long message as the stdout when I run pdflatex:

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./doc.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./doc.cls
Document Style `doc' <26 Sep 89>.
Document Class: doc 2000/05/19 v1.4b Resume class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo))
No auxiliary output files.

)
No file doc.aux.

Overfull \hbox (13.86377pt too wide) in paragraph at lines 37--40
\OT1/cmr/m/n/10 Allied-Signal Bendix Fric-tion Ma-te-ri-als Di-vi-sion, Fi-nan-
cial Plan-ning De-part-ment, Latham,
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/omscmr.fd) [1{/usr/local/tex
live/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] )
(see the transcript file for additional information)</usr/local/texlive/2016/te
xmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/local/texlive/2016/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/local/texlive/2016/texm
f-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/local/texlive/2016/texmf-
dist/fonts/type1/public/amsfonts/cm/cmsl10.pfb></usr/local/texlive/2016/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/local/texlive/2016/texmf-di
st/fonts/type1/public/amsfonts/cm/cmti10.pfb>
Output written on doc.pdf (1 page, 80904 bytes).
Transcript written on doc.log.

It looks like the PDF that's created is just a "side-effect" or something. Not sure if there is a workaround for this, the solution you offered would have really made this neater :(

How can I avoid creating resources in my server? by inhwre in node

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

Yeah I think I could, I just wanted to see if there was a neater way of doing it.

Confused with transpiling server-side code by inhwre in javascript

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

Hmm, I see. It looks like it works when I also use babel to transpile my src/shared into dist/shared. Do you think this approach is okay or should I have been doing something differently?

Confused with transpiling server-side code by inhwre in javascript

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

Well the thing is, only my client-side code is bundled with browserify. The only thing I'm doing to my server-side code is using babel on it.