HN user

stephen82

1 karma
Posts16
Comments209
View on HN

PS: If I would implemented it, I would deviate a bit from Lua and replace local with let. It's highly subjective but I think it would make code "prettier"(whatever that means)

The idea behind it is to have the lowest syntax barrier possible for Lua developers so they can migrate from Lua to Nelua without a sweat.

The problem with move semantics is that people don't understand its fallback mechanism, - (that is if it can't move an object and there is not restriction mechanism in a constructor) - it will be used as a copy constructor which is expensive.

I will advice you to read Nicolai Josuttis' " C++ Move Semantics - The Complete Guide" [1] which describes in great detail all the tips and tricks around move semantics.

P.S.: For any C++ developer out there, in my humble opinion anything written by Nicolai Josuttis is a must-read!

[1] http://www.cppmove.com/

GitHub Copilot 5 years ago

We expect that IP and AI will be an interesting policy discussion around the world in the coming years, and we're eager to participate!

Another question is this: let's hypothesize I work solo on a project; I have decided to enable Copilot and have reached a 50%-50% development with it after a period of time. One day the "hit by a bus" factor takes place; who owns the project after this incident?

I based my comment on Jens Gustedt's article [1] about adding a "defer" mechanism in standard C.

Clearly, the C committee works hard on improving the language and they are in the process to standardize important features, such as lambda functions, auto, typeof (like C++'s decltype more or less), and so forth.

In my humble opinion, "defer" can mild the buffer / memory overflow, but of course not permanently remedied it 100%; to me though it's better to have such mechanism than have nothing at all to protect you.

https://gustedt.wordpress.com/2020/12/14/a-defer-mechanism-f...

Would not be cheaper to fix those unsafe languages, such as C, and offer safe mechanisms that could be used upon need?

Why spend thousands, if not millions of dollars, on rewriting existing codebases when they could help fixing the existing toolset and make it safer?

I don't get it.

Personally I prefer SQLiteStudio [1] as it is closer to SQLite Expert Professional [2] that I used to use at work.

    [1] https://github.com/pawelsalawa/sqlitestudio
    [2] http://www.sqliteexpert.com/

To be personally Fabrice Bellard is the Leonardo da Vinci of technology with specialization in C.

This guy knows how to push the language's limits and he is the main reason I switched back to C for good.

Even though I'm not a front-end developer, I dealt with WordPress advanced custom development for a certain amount of time to realize web development - as we currently know it - is not worth it...like *at all*!

As an OCD person I cannot count the number of times I got panic attacks for realizing how many tests I needed to go through to test:

    * have I checked my PHP code, packages, and settings? Are they all good?
    * is Composer and my various packages updated?
    * what about npm and yarn packages? are they updated?
    * wait...do I need worry about CSS as well now, to look for extra security measurements? WHY?! Oh yeah, CSS injection [1] /facepalm
You cannot imagine how many times I jumped out of bed to run to my computer to double-check a security measurement on an infrastructure I thought I did not secure only to find out I already did an extra step that double-secured it...

It's not worth it anymore.

It's SO FREAKING STRESSFUL!

I decided to stop dealing with web development as a whole and I'm playing with C and C++ now, like the good ol' days.

I can't do multiple things at once.

I live and breathe the UNIX philosophy: Do one thing and do it well.

[1] https://www.netsparker.com/blog/web-security/private-data-st...

Resignation 5 years ago

Those who downvoted me think I support such behavior; I don't!

You know what they say: what goes around, comes around.

Those who go after anyone who has a different opinion than theirs, will face their own actions eventually, one way or another.

What I have stated is a realization: you are not allowed to make mistakes anymore, because you are immediately condemned; period!

This downvoting here proves my point 100%.

Welcome to the era of "Cancel everything because we say so".

Resignation 5 years ago

...so let me get this straight: you are not allowed to make mistakes in your life, because everything is digitally archived nowadays that can backfire at any time?!

What happened to

   * learn from your mistakes
   * trial and error
   * getting wiser as you grow up
   * growing up means talk less and think and act more
and all these kinds of questions?

Where are we going people?

I cannot imagine what young kids go through in this time and day when they do a mistake.

Are we forbidden from making something stupid and silly?

This is not normal everyone, not normal at all :/

It's not worth the effort anymore.

I've got exhausted trying to explain others that *I'm not the ordinary WP user* that goes to Envato and buys a premium theme with its plugin dependencies.

I can implement everything from scratch depending on my needs...but what do I know, right?

How dare I compete with them, let alone criticize their awful coding skills?

Countless uses of obsolete jQuery code in various themes and plugins that are used on the fly without getting enqeueued or used securely...no wonder why everyone complains their website got hacked!

How about hiring real professional agencies then that know how to do their work?

It's as simple as that!

That's why I stopped dealing with web development as a whole.

It's not worth the effort, the amount of things you have to know, the fast-pace non-stop changes of web standards, the countless front-end changes in CSS and JavaScript and their myriads of frameworks!

Enough is enough you know!

I'm back in good ol' traditional programming in C and C++ applying the UNIX philosophy: do one thing and do it well!

Monoliths are pretty good in most circumstances

This 1M %!

I have seen a company being approached by an agency to design and implement them an e-commerce website that consisted of multiple web services and when I was asked for feedback, I said "start small; go with WooCommerce and when you hit it big, give me a call."

They are making 500K euros selling goods while being hosted on a shared hosting with a WordPress / WooCommerce website and the server spikes at 25% the most when traffic hit the website lol!

I will paraphrase the well-known "optimization / evil" and say:

    Over-engineer your infrastructure before go live will definitely lead you to failure, let alone bankruptcy.
     Trump: Hey Tony, you know...they are kicking me out and I'm going broke; I need a favor from you.
   Anthony: what can I do for you mr. President?
     Trump: I will pardon you in one condition.
    Antony: what that would be?
     Trump: I will need some "financial assistance" from you.
    Antony: ...say no more!

I was looking for a mentor for years and eventually I settle down by mentoring my own self if that making any sense lol.

How I did it? Well, I built this mental model that goes like this:

    1. If a task is difficult, simplify it by splitting it to smaller tasks. Sort them in ascending order of ease.
    2. Start questioning the "how"s on your smaller tasks and do your research to find multiple solutions, suggestions for improvement, optimizations, potential rewrites before becoming a bottleneck that would demand a major refactoring.
    3. See whether you have answered your "how"s from #2 or not. If not, go to #1.
    4. Based on #2, find the best material possible other experts in that field suggest or highly recommend; try not to fall in commercial traps or biased reviews. There are lots of valuable resource on such topic, and trust me GitHub has incredible content in markdown format with ultra-advanced levels of explanations.
    5. Narrow down your expertise in a specific tool set, be it languages or IDEs / editors of your choice and learn them inside out as much as you can. E.g.: you want to master your craft around web development; fair enough. Learn JavaScript in depth and use the framework your current job demands you to know. Go to #1, then to #4, and then #3.
    6. Start writing a blog or an ebook. Guess what; after a certain amount of time, you have just become yourself the mentor you have always wanted.
At least that was my own experience so far ¯\_ (ツ)_/¯

It does not mean I'm a success though :D I'm a living failure, that's why I always push myself to become better at what I do.

I'm an eternal student!