Better HN
topnewbestaskshowjobs
Log inSign up

shortrounddev2

2,427 karma · joined Jun 15, 2023 (3y ago) · 1,641 submissions

Submissions

comment 2y ago · link · parent

Vanilla js is unstructured. It's very easy to write spaghetti code with vanilla js.

Sessions are a kind of global state. I mean temporary state, like when filling out a form and moving from one page to the other, but without submitting the results until the end.

comment 2y ago · link · parent

So then you need some kind of state management on the server?

comment 2y ago · link · parent

I didn't say all content

comment 2y ago · link · parent

Code reviews to me are about, in ascending order of abstraction:

1. Code cleanliness. Stylistic issues that should ideally be handled by a linter but may get missed. Did they name their variables according to the styleguide (camelCase vs snake_case), did they use type annotations where appropriate, did they indent their code correctly.

2. Code smell. Is the dev using a hack in the language or some other bad behavior (for example, casting typescript values to unknown or any, where it can be avoided? Are they passing void* inappropriately in C/C++?)

3. Potential bugs. Are they checking for null pointers before dereferencing? Are they checking the size of an array before accessing it by index?

4. Architecture. Are they writing code in a pattern that is common to the rest of the code base? If this project is trying to use functional programming, are they introducing global state or mutability? If this project is object oriented are they using constructors correctly or are they creating factory/builder classes when appropriate? This one depends on the philosophy of the team

5. Missing work. Should they add doc comments? Should they add unit tests? Integration tests? QA information? Did they follow all the procedures for releasing code? Is the work in their code reflective of well-written requirements in the ticket?

comment 2y ago · link · parent

The economics of youtube being what they are now, most content is already extremely low quality. The quality of YouTube content was much higher when it wasn't a viable platform for monetization

comment 2y ago · link · parent

I think most people choose SPAs because they also maintain the frontend state of a an application. If you're just serving templated html from a backend, you're probably also doing vanilla javascript which is it's own kind of hell. How do you manage the transition between one view and another on the same page? How do you pass state between two pages? I think webcomponents solve some of this but there's a lot of react developers out there who don't have the requisite software engineering skills to handle this

comment 2y ago · link · parent

You should try it out; microsoft makes good contributions to open source software, and C# is, in my view, the best (or maybe the only good) backend language put there

comment 2y ago · link · parent

How do you do dom manipulation in wasm code?

comment 2y ago · link · parent

I think most gamedevs will reamain in higher level languages. Gone are the days when game developers were wizards of esoteric programming knowledge and elite skill; most game developers I've met are creative types who came to programming as a tool for expressing themselves, and not programmers who use their obscure knowledge to make creative things. Artists, not engineers.

For people who want to use programming as a tool for expressing themselves, C#, python, and, above all, visual programming are going to remain the most popular choices. They don't care about memory management or type theory, they just want to easily describe the behavior of things in a language which more closely mimics human thought

comment 2y ago · link · parent

Smartphones should absolutely be banned from schools, and personally I would like to see the COPPA age raised to 16 or even 18. Children should not be on social media and probably shouldn't have smartphones at all until they're adults

comment 2y ago · link · parent

I think you invented facebook

comment 2y ago · link · parent

Having done quite a bit of hobbyist graphics, I wouldn't even say linear algebra is as important as basic linear operations. Knowing the properties of a matrix (non-commutative, the domain of a matrix when multiplying, etc.) and linear operations like the cross product and dot product will get you VERY far. I've never had to do honest to god algebra in graphics

comment 2y ago · link · parent

> I stopped taking on more work once I got my stuff done. I would do exactly what a Sprint called for. Nothing more, nothing less. If I finished early with my tasks, I would stretch out the time and just tell the scrum master I was close, but not done yet, but always finished on time.

A PM at my company told me a few weeks ago "if you finish your work early, we can always find other things for you to work on" and I told him "you understand that my incentive is not to do that, right? If working faster only gives me more work to do, then why would I work faster?" He told me that fast workers are repaid with bonuses, promotions, etc., but I don't think most people believe in that kind of upward mobility anymore. I certainly don't

comment 2y ago · link · parent

If AI ends coding as a profession, it will have probably ended all professions, in which case there's no amount of planning that can save you from the economic catastrophe that we willfully walked ourselves into

comment 2y ago · link · parent

The first question asks me synonyms for "large", which to me indicates a strong cultural bias in the test, not to mention a bias for non-cognitive skills

comment 2y ago · link · parent

Needs some examples in the readme

comment 2y ago · link · parent

Pico-8 is nice. It uses a friendly programming language (lua) and also limits the scope of what you can do (simple 2D pixel art) while providing basic tools for drawing shapes on the screen. It's very similar to how many people learned to program using BASIC back in the day

comment 2y ago · link · parent

I think it's a neat idea, but the point of a business card is to be easily stored in a wallet. On the internet, you only need to manage contact information in a regular SMS app or via google. Unfortunately there's no opportunity for personalizing how this information is displayed, it's just a name + number or email

comment 2y ago · link · parent

I think they mean functional

comment 2y ago · link · parent

Yes, as an efcore fan, I often wish that we had better ORM in my company's node projects. Sequelize seriously drives me insane

comment 2y ago · link · parent

I see glm more commonly

comment 2y ago · link · parent

I recently went back to community college for Calculus; partly because I'm sick of being a CRUD developer, and partly because it's cheaper than therapy. One main issue I have with math education is that it seems like professors go out of their way to come up with contrived examples in order to demonstrate a concept, but they don't apply similar effort into coming up with pragmatic examples of how to USE the concept. (I was the "when will I ever use this?" kid). I think math exists to solve real problems, so we should give examples of solving real problems

Math classes are often constrained for time because their curricula are mandated by an accreditation institution rather than designed by education experts. I feel that math could be taught less mechanically and with more historical context for the concepts. I've heard that people retain information better when it's paired with a story, so I feel strongly that history should be taught side-by-side with math

comment 2y ago · link · parent

Yes, I think that mobile screens will continue to be our present, but in the future! I think that touch screens are the preferred medium for computation for technology users who started using computers regularly for personal use after c. 2011. Personally, I hate the things but I can see that for people who are not technical users, the mobile phone is a natural way to compute. I know of many people who don't even own a laptop or desktop; they just use their phone for all computation

comment 2y ago · link · parent

I feel that mobile screens and AR are going to be the future

comment 2y ago · link · parent

I work fully remote and have "unlimited vacation", but I have yet to test the limits of it. Earlier in April I had asked a day off 3 weeks in a row (i.e, I asked off 3 thursdays in a row) and my boss admonished me not to "let the unlimited PTO get in the way of my work", despite having only taken off maybe 6 days the entire year. When I pushed him to explain what he meant, he started walking back what he said.

Anyways I'm gonna try to ask off for 2 weeks in December, so let's see how that goes!

comment 2y ago · link · parent

I don't bookmark things, I just try to remember the name of the thing I wanted and then I google it later

comment 2y ago · link · parent

I think it would be cooler if databases implemented a bytecode interface instead of just SQL. Then ORM platforms would be able to compile directly to that instead of having to use SQL as an intermediate stage. Could also provide support for bound parameters instead of trying to use text replacements to sanitize inputs. Then if you want to improve the syntax of the query langauge, you don't need buy-in from the database developers, you just need a different query compiler

comment 2y ago · link · parent

How about the AI firms just stop offering public access to these tools

comment 2y ago · link · parent

I wanted to get more involved in the community on that site but it seems there's a LOT of teenagers on it

comment 2y ago · link · parent

Yeah, there needs to be a DirectX 11-like API between Vulkan an OpenGL
1
222324
55