Details
-
AboutWeb and Software Developer
-
Skillsjs, ts, php, rust, c#, aws services
-
Github
Joined devRant on 9/24/2016
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Go to guthib.com :D
-
A good example of Hoisting concept.
https://w3schools.com/js/... -
@Kernel At that point its just CSS with extra steps. :D
-
Vista was slow because of hardware and OEMs forcing "Vista compatible" on every possible hardware. It ruined the version completely. Windows 7 doesnt have as many changes as people think yet they praise it as the best :D
-
Use Polymorphism and Strategy Pattern. It will be so much easier than doing that. :D
-
OOP is good when used correctly, composition is good when used correctly. Problem is in Developers wanting a quick and general solution to their problem.
Combine that with us saying "everyone can code" and you get a generation of devs hating any paradigm because they dont understand it well enough, create subtle bugs and code themselves into a corner.
I am no exception, but every pradigm has pros and cons and neither is THE solution to all of your problems.
The world just doesn't work like that. -
You can but as people say, it might just be easier to git and store/restore your vim config there.
If you DO want do that though. You will need to prepare your full vim config, build a dockerfile which copies that over into a docker image, then upload the image somewhere like dockerhub.
When running the image you need to mount the location you want to edit as a volume. You can set that up once with docker-compose.
Docker runs as root so any new file which gets created by vim in your docker will have root as an owner. You can avoid this by specifying which user to run as, or just use Podman. -
Don't mess with Rust. You mess with the crab you get the stab. :D
-
Until the point where you actually remove the mask from ChatGPT and figure out the truth: It is not an AI at all. There is no intelligence. Its just statistics used to "predict" what the output of your prompt is. It does not understand the actual concepts, think or learn from the mistakes, it just makes predictions less likely to hallucinate.
-
Git pull does fetch and merge at the same time.
When you want some other person usually the maintainer to pull (with the above definition of pull) your code you submit a Pull Request for them to do it.
Git has existed before github, gitlab or bitbucket and has its own terminology which they integrated into their workflow and created things like pull request which is a workflow around git's branch compare functions with extra steps to discuss the changes. -
@lorentz I am using it and I never really had a problem with pricing and they are pretty transparent. You even have a calculator which you can pretty accurately figure out how much it will be per month or year based on what you pick. And every service has a pricing page. The only kind of opaque prices are network packets in/out of aws network since people do not know that is being charged too, which makes sense as it is a bandwidth.
The biggest problem is that most people want one simple monthly price and they do not want to fine tune it, which is why a lot of "left EC2 on" memes come from. Thats fine, but AWS is not for them.
My total monthly bill for a personal web site and about 5 domain DNS zones is about $6.95 a month. -
@lorentz What I am saying is that they do not have much incentive to make things better.
-
AWS expects the use via terraform / cloudformation. Interface is there just so that you can monitor and tinker with some things. It was never intended for you to set everything up via web interface.
Also core demographic is devops / dev people which prefer more info over pretty UI. -
Simple. PHP had years to know and do stuff properly. Every new language starts from scratch. But unfortunately for them, PHP just keeps getting better :)
-
Its destructuring assignment:
https://developer.mozilla.org/en-US...
Its not a typescript thing but its part of javascript. -
And that is an use case perfectly describing a need for flutter, react native, ionic, etc. :D
-
Since M1 specifically? Only Macbook Air. Performance is great and no active cooling = meaning no moving parts in the system and no dust and awesome battery. Great for programming anywhere IMO. Although for me specifically, I work with Windows laptop on work. I am kinda more used to that.
As for compatibility. There are people who have Macbook Pros 2016 still completely working and with new software on them so support is pretty ok as far as I know, I'm not an expert though. -
PDF is a combo of binary (compressed/uncompressed) and text data. Its relatively easy to parse, as long as you are ONLY parsing it and not doing any rendering. If you need to render, good luck. :D
-
@cmarshall10450 Both are learnable. It just takes some time and patience. People usually give up too soon because its "too hard", but it just means that your brain needs more time to settle into that mindset yet.
-
Haskell if you want to learn functional the pure way. Rust if you want speed, speed and speed. :D
-
Angular is just as good as Java is.
I wont say more than that :D -
Yeah this would just not be readable.
Either to use some function composition or to restructure like:
const runFilter = createResponseFilter(response, options);
return runFilter(interactions); -
That looks like a timeout issue with either mqtt or the network. We usually handle those by keeping short connections instead of a long one. Not too experienced with MQTT though, so I am just guessing.
-
And most of us, if not everyone on this post is way gone by that point. :)
-
Didn't Rust get its name from Rust fungus?
-
Are Visual Studio debugging tools not working with that?
-
In the catch clause there is learnFromMistakes(ex); missing :D
-
Its used in shared hosting. Easy way for you to edit your websites directly. Not everyone can use git. Its easy to integrate a project like that in VS Code.
Its used in as a "standard" protocol in tons of companies sending files between each other. They are usually behing a private network or using SFTP. Reason? When you deal with 200 clients which use FTP and do not want to switch, you dont really have a choice and changing to a different protocol does not give much ROI. The only way to move them is if there was a government mandate not to use FTP. -
@Demolishun You would solve it through trait. You can think of a trait as an interface in OOP.
You implement that trait for all of the objects you need and then at the place you usually call the interface function in OOP you call one of the function implementations for dispatch and pass the object. You can either implement a generic (template) type function (static dispatch done by a compiler) or implement a function using a dyn keyword of the trait you defined (dynamic dispatch done on runtime). -
The main usecases for inheritance are function signature enforcing, code reuse and polymorphism
In Rust:
Function signature enforcing - traits
Polymorphism - traits via dynamic / static dispatch
Code reuse - composition & generics
So we got all we need. Composition is better than inheritance IMO because people never learned (or never wanted to learn) how to structure object cleanly so that they ONLY have things they absolutely require and nothing just because "its convenient".
Composition forces you to do that properly and puts you in that mindset so you write better code.