Details
Joined devRant on 8/1/2019
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
-
Wanna code Mars ? ;p
https://en.wikipedia.org/wiki/...
(Aaaaannnnd I'm pretty sure one actually did it already) -
@priyanshu-kun I would say it should not be possible. It's a security risk for user.
-
Savings accounts or any financial investment that gives you +X% per year are bad: They are VERY taxed (up to 50%).
The best is the stock market. Look at the S&P 500!
Here it's not taxed as financial revenues; it's taxed as sales tax or something. -
@Demolishun Mind upper/lower case !
It might be racist now !
Also, "Prod" and "prod" are different branches in GIZT and linux. But nopt on windows !!! It's cosidered same name and all hell broke lose. Just FYI. On windows, you are walking on egg shgells when working with git. -
@PaperTrail I the history of thing which did not happen, this one didn't happen the most.
-
@Lensflare Oh and even now. So here is a question number 3. Which actually has a one line code solution. It can literally be resolved fast and "just with a bit" of overhead in 1 line of code .
ChatGPT weill produce something like 30+ lines of code and people will just copy paste it. This one I just retested. And it's still the case today.
Rotating numbers: Write a function which takes 2 integer parameters n and x. This function should return n numbers after x which are read the same after rotating them by 180 degrees. Examples:
101
609
1111111111
8
Additional information: digits: 2,3,4,5,7 cannot be “rotated”
Or small edit : The part when you "rotate" the number is a one liner. Still needs couple of lines of code :) -
@Lensflare So bare in mind. It was around 18 months ago. here is the FULL question defintion :
What is the output of the short program below? Explain your answer.
class Program
{
static String location;
static DateTime time;
static void Main()
{
Console.WriteLine(location == null ? "location is null" : location);
Console.WriteLine(time == null ? "time is null" : time.ToString());
}
}
And back in the day (Not true now), chatGPT was producing wrong response.
But out of 50ish people, 45 or more were wrong on this question. I strongly suspect copy/paste in chatGPT. Which really was not so great at the time -
@gitstashio Actually I'm limited by HDD speed for torrents. It's rarelly gores above 750 Mbits/s.
In my plex server I have 2 very old (more than 10 yars) HDDs a1TB each and 7200.
Also I found out the linux kernel or at least 10 Gbits driver has a memory leak.
If I let connexion run on 10 Gbits after couple of weeks I'm forced to reboot server Or maybe it's a card it self. I'm not saying I'm 100% certain it's linux, but if I switch port on router to 1 Gbit port, it does not happen.
So Most of the time i'm just running 1Gbits. To avoid rebooting server lol
But it's to know that if I want to host some app I can potentilly do it at home. -
That's because 95% of candidats can't answer a "hello world" type of question. So yeah, first screening line is to ask the dumb, easy question.
here is an example to you :
DateTime date;
Console.Writeln ( date == null ? "Null" : date.ToString())
Just ask what is the output ? 95% of 'people applying can't answer. -
** making a second roll of Indica in the past 2 hours : He get's it !
-
@gitstashio Still the case :)
-
@Ranchonyx YES. You are right.
My current stack, for the simpliest request ever (Which commes from cache, NOT ONE SQL querry) is a minimum of 30 ms.
This is overhead to make every thing generic, using reflexion a LOT etc.
But the average stats are around 300 ms per request. 9Some requests are VERY VERY slow and drive average, but these requests usually requires like 200 SQL requests).
And the server is perfectly capable to manage it in parallel mode.
So basiclly front end will do 10 to 20 querry at the same time. All 10 will get back in less than 300 ms. So total time to load all nedded data for dfron is 300 ms.
And with rest, sometimnes we needed to wait a retuern on a request to get somedata to do a second request REST.
Bref, just my experiance lol -
@Ranchonyx I agree. Same for me, finding time to learn a new techno is difficult.
But this one I do not regret investing time in !
My back end went from soemthing like 25 controller files REST and around 3K lines to only 1 controller, 1 entry point and like 700 lines of code total -
Ever heard of graphQL ? Seems like you are redoing the job already done
-
Maybe people without smartphones are not thier target audiance.
For erxample in one of my project we refuse all "free" emails like gmail, outlook etc. because people are not our target. Companies are. -
@atheist It was just an example lol
This morning I added a simple index in DB, some querries went from 20 seconds to 3 ms. That was worth spending a day looking into -
Well, while optimizing code is commendable, 99% of slowness often comes from external calls. For example:
If you have an array of 10,000 items to process, you aim to enumerate it only once, which takes 5ms. You might spend days optimizing this.
Meanwhile, a "YOLO" dev might not care about multiple enumerations, totaling 50ms in a few hours.
However, if retrieving that list from an external API takes 350ms, then:
Your optimized code: 355ms total (350ms API call + 5ms processing)
The YOLO dev's code: 400ms total (350ms API call + 50ms processing)
So, after days of optimization, you've gained only about 8%. My point is, while optimization is important, it should be balanced. In this case, spending a day to reduce the 50ms to 25ms would still be a win, but beyond that, the returns diminish.
Optimize wisely, but don't lose sight of the bigger picture! -
I just use WSL 2 to have linux bash
You can literally just install Ubuntu from windows Store lol now
For me, GUI for linux doesn't make any sens when you already have windows. But command line is pretty cool some times -
@Demolishun Well, I still rememver "Unreal mode" on x286 ;p
where I had 1 MB of ram, but could access only 640k
And turning "Protected mode" was an ass
So you did "unreal" mode lol
That was fun as fuck and useless ;p But fun ! Remember to have fun !
https://en.wikipedia.org/wiki/... -
Probably invest in crypto scam for the girl
-
Personally, I enjoy windows 11. You just need to tweak about 100 settings and prohibit it to acess your porn...hmm.. homework...hmm job folders.
My usual uptime on PC is around 3 months without any reboots, without anything breaking. (ofc, one good day visual studio just randomly says : You need to reboot, without explanation"
My server machine at home is a Linux for example. Why ? because It's easier to setup for my needs but it's a PAIN to fix when it breaks.
Updated wrong package ? Syetem down, no more SSH, no more terminal.
I can fix Windows, but for my linux server, when it breaks, it's just full reinstall.
So bascilly I don't update or upograde my linux server EVER. BecaUSE if it breaks, I have for half a day to reinstall everything -
@Berkmann18 yeah no.
60% of candidats are like "I was carptner until last month, I took a boot camp in nodejs and now I'm ready to lead full .net team"
Then you have : "Yeah I'm against using DI, it's way to complex"
Or : "Why would anyone uses interfaces, like ever ? lol"
or : "Performance scale can alsways be resolved by money spent on infra"
Or I have 1000 more examples.
Theses people, it's useless to send them technical test. You already know they are not a fit. -
@fullstackcircus the thing is, some of them are "too" testy
For example, let's say you have a method on a controller which will check acces rights / role and than call internal service
What you would expect in unit test : Check if service is called. That's all (Via mock)
What's hapening : The service is actuallty called and whole code executed, even if this method has another specific unit test. Basiclly it executes a bit too much. -
@fullstackcircus that's why in local it's so fat. 12 cores ;p In azure pipeline it only runs 2 tests at a time at most
-
What trackers lol ? Just install <Self censored> app and it will show you active 100% of the time.
I work remote 100%. Sometimnes I'll take a full day of doing nothing 9Except responding to emails / messages etc)
And some days i'll be motivated and work until 1 am.
Average on a week I do MORE than onsite.
Trackers are evil !!! Combat them ! -
Did you fixed it already ? gogogo ! Should be easy !
-
Uo ..Hic... Mate.. Hic... Can I .. hic... put a brouyd, no, ... hic ... the breakttyrfsadbmn, no... hic hic... the B R E A K P O I .. hic ... nt !
-
@donkulator Made me remember when I was around 13 and I decided to "clean up" MSDOS hard drive
So I moved all system files on the drive into a folder. PC didn't boot after that, I didn't know what to do back in a day ;p -
@Demolishun didn';t Intel has some bugs in early years ? Maybe early pentium or x286/386/486 with divisions ?
Like it went into a blackhole on some conditions -
@tosensei depends. I have some lose money (Small amount, less than 1000$) in crypto for fun. Amount i'm comfortable to lose 100%.
Just checked, my crupto account is +38% all time and +8% pas 12 months.
I guess when you go in mode fun it works well.