₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,968 members, 8,448,014 topics. Date: Sunday, 19 July 2026 at 02:23 PM

Toggle theme

Cixak95211's Posts

Nairaland ForumCixak95211's ProfileCixak95211's Posts

1 2 3 4 5 6 7 8 9 10 (of 13 pages)

ProgrammingRe: Life Of An SWE by cixak95211(op): 10:16pm On Jan 28, 2021
Karlebolu:
If that is 30 hours I'm seeing then you need to slow down. Burn out is real!
30days . . Have had my fair share of burnouts, even acute CVS .
I'm "glassified" as we speak
ProgrammingRe: Life Of An SWE by cixak95211(op): 6:01pm On Jan 28, 2021
parkervero:
And your are productive?
grin grin For sure . .
ProgrammingLife Of An SWE by cixak95211(op): 5:18pm On Jan 28, 2021
No sleep, no hibernate

ProgrammingRe: Anyone With Experience With YAML. by cixak95211: 10:30pm On Jan 24, 2021
You wanna buy him a shot of Tequila?
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 8:50pm On Jan 23, 2021
@naijasensei:

Nailed it!!!! However
case amount === 0:
case amount === undefined:

can be better rewritten as case !amount since ! will evaluate the same for falsey, null, zero and undefined

same goes for amount === 0 || amount === undefined.
ProgrammingRe: How are mobile apps made to run on different OS? by cixak95211: 8:24pm On Jan 23, 2021
End of story !!!
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 7:21pm On Jan 23, 2021
Karleb:
I've not run the code but from what I see.

Case 0 returns nothing. The switch statement will get stucked there.

Solution, let case 0 return something.

case amount > 5000 && amount <= 50000:

I doubt if that is a valid case statement. Javascript will get confused at this stage. The logic should be wrapped around a parenthesis since it involves comparison.
Case 0 returns 0. If you look well, you'll see the cases are stacked which is a valid switch expression
Parenthesis are redundant. A smart code editor, once again, will remove the parentheses if you add it.
Prettier will also remove it.
Try again.
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 6:34pm On Jan 23, 2021
Ques 3:
What is the problem with this block of code?
What is the fix?

const calculateFee= (amount) => {
switch (amount)) {
case 0:
case undefined:
return 0;

case (amount > 0 && amount <= 5000):
return 10;

case amount > 5000 && amount <= 50000:
return 25;

default:
return 50;
}
};
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 6:00pm On Jan 23, 2021
naijasensei:
Question 1 only:
1. Kotlin
2. Kotlin (continued)
3. Javascript
* push
line 23 is not necessary
as you can return the increased length on line 22.

* unshift
line 42 is not necessary
as you can directly assign this.stack to [value, ...this.stack]

depending on some school of thought, it's best to outline each line seperately,
but you'd be wasting memory declaring variables that are really not necessary
a smart code editor e.g. any of the JetBrains family, would have also warned you about it.

Its amazing we have smart minds here, so why did y'all allow this place to be overran
by some "website for 20k" minds?
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 12:18am On Jan 23, 2021
Jummate:
Sorry for quoting you twice bro, I wish I knew how I could upload images stacked on each other here.


Here is the second image:
1 2 3 4 images

ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 10:38am On Jan 22, 2021
Jummate:
For number 1
Very nice.
The push method will always return the new length . . so there is no need put it inside in a branch
thus causing you to have multiple return statements which do exactly the same thing. You could do your conditionals
and then return the increased length at the end of the ops.

Plus it's perfectly okay to have [undefined, 3, undefined] in an array, exactly as Karleb as pointed out. Doesn't make the array house 1 item as you might have thought but rather 3.

I would use your codes anyday anytime. It's clean.
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 12:19am On Jan 22, 2021
Karleb:
For question 1, are slice and splice functions allowed?
Nope
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 5:00pm On Jan 21, 2021
Question:

1. Design an algorithm(s) for the following array operations: "push, pop, shift, unshift" using object oriented programming practices.
2. Design an algorithm that will find the longest common subsequence between two arrays, plus the time complexity for your solution.
ProgrammingRe: Thread For Nairaland Algorithm Questions by cixak95211: 7:09pm On Jan 20, 2021
You could do a traditional for loop [reverse] which should run in O(n)

const reverse = (a) => {
let val = String(a), result = '';

for (let i = val.length - 1; i >= 0; i--) {
result += val[i];
}

return +result;
}
ProgrammingRe: Why Are Backend Developers Paid More Than Frontend Developers? by cixak95211: 9:14am On Jan 20, 2021
chingle5:
An b me post am o na one yeye way don over do theory post am .... And if I ask am make e com do simply layout structuring for code editor he go run away....
How sure are you about the bolded? grin grin grin
ProgrammingRe: Why Are Backend Developers Paid More Than Frontend Developers? by cixak95211: 1:50pm On Jan 19, 2021
KaluwisxPRO:
Backend has nothing to do with codes, but interactions. It handles the request. In your ATM scenario case, backend developers are the bridge between your card issuer, and your bank e.g, backend job is to read the data on the card, translate it to what has been requested, and provide the funds. It also handles pin verification, as well as match the info on card to account owner. Those are some of the Jobs being handled by backend, not some written codes as done in frontend.
Obviously, you are still stuck in the Sagem myx-5 era and have not
written a line of code in your life.
Please SCRAM!!! angry angry angry
ProgrammingRe: Why Are Backend Developers Paid More Than Frontend Developers? by cixak95211: 1:48pm On Jan 19, 2021
JohnCloud:
It is not flawed.

It depends on the project you are working on. You are seeing frontend as just a rendering platform.
Your project determines that.

Example, what if based on your project you want to just use a 3rd-party to save/retrieve data and use a backend-service as a proxy?

You need to work on variety of projects to understand that one does not outweigh the other, but most times the backend has to do more because more projects want to take off the heavy lifting from the frontend.

Also, I understand you are going deep to DDD. This is high level logic and the context is not design, but rather comparison between frontend and backend.
I have never said backend was harder than frontend, only a newbie will say that. I am only trying to clear the assumptions of "backend is easier"
Also, no matter your project, even if the frontend will just show random pictures of cats uploaded by a guest, zero logins, you shouldnt put that logic there. Worst case scenario, spin up a cloud function in seconds and allow the function do the upload and retrieval of cat pictures.
The frontend should be used for what is is strictly, user interface and experience. Game over!
ProgrammingRe: Why Are Backend Developers Paid More Than Frontend Developers? by cixak95211: 1:43pm On Jan 19, 2021
CSTRR:
A customer will tell the front-dev that they don't like the background-color of a website or the arrangement .

He would have to modify and modify hundreds of codes.

in the meantime, a back-end dev has done his Job and gone to sleep.
Have you done anything relating to f r a u d detection ?
if yes, then you'll know backend engineers rarely sleep well especially those in fintech.
ProgrammingRe: Why Are Backend Developers Paid More Than Frontend Developers? by cixak95211: 1:39pm On Jan 19, 2021
JohnCloud:
I think it is very wrong to claim that one is much more difficult than the other.
The difficulty of each depends on the project. There are some projects that embed majority of the business logic on the frontend, and there are also some projects that embed most of the business logic in the backend.

Also, don’t forget that there are some project that the backend has to service not just the frontend, but also the mobile APPs and maintain the APIs.

However, the pay depends on the skill set, your project and the importance of your role in the project.

E.g if I am building a product that needs to do lots of complex logic and data manipulation which just requires rendering on the front end, the backend would definitely be paid more.

On the other hand, if the majority of the logic is handled by the frontend, then the frontend would be paid more.

Anyone that outrightly states that one is better than the other either has no experience doing both on different projects or is too biased to agree that the dynamics of the difficulty can change.
Business logic and frontend SHOULD NOT BE USED in the same sentence.
If you're adding business logic to your frontend, then your design is pretty flawed and should be rewritten.
You're always warned to avoid adding even a line of business logic to the frontend,
Even at the the backend, the business logic has to be split into layers with each layer inside its own interface and independent/separated from other layers.
ProgrammingRe: Why Are Backend Developers Paid More Than Frontend Developers? by cixak95211: 1:29pm On Jan 19, 2021
BigDawsNet:
Same as front

Without frontend, backend is useless
Without backend, frontend is just as useless as nothing
False.
Most heavy duty APIs dont have a GUI and are used by millions of people.
Can you call that useless?
Using gmail as an example. with the API, backend only , i can login, read emails, save emails, send emails delete emails perfectly.
With just the front end alone and backend disconnected, I cannot even login to gmail. Can only view the landing page, which says welcome to gmail , thats all.
so you tell me which one is useless?
ProgrammingRe: Why Are Backend Developers Paid More Than Frontend Developers? by cixak95211:
emetisuccess:
Front end is definately difficult than backend. Not that much in backend, jst fetching, updating of database(mongodb, mysql, etc), creating a different port, and so on.
Sheybi Google maps is nothing much, only fetching, updating of DB, mongodb, mysql abi?? grin grin grin

lol, seems like you don't know what is called advanced data structures & algorithm . . .
even Frontenders often beg to be excluded from such tests during technical interviews
If i ask you to write an algorithm that fetches the shortest interconnecting flights between 2 or more airports, they will say am wicked.
Or perhaps if i give you my family tree, 10 generations backward and ask you to chart the nearest path between a specific great raised to power N grandfather and my unborn child, they will say am brutal.
The internet is your friend.
ProgrammingRe: Life Of A Phone Programmer by cixak95211: 7:06pm On Jan 18, 2021
I'll be back.
ProgrammingRe: People Are Fraustrating Here On Nairaland by cixak95211: 10:36am On Jan 18, 2021
airsaylongcome:
Never start a project without a clearly defined scope document signed and agreed on by both parties. What you encountered is called scope creep and is a big killer. Deliver on the scope agreed on in the scope documents. Subsequent scope changes can only be entertained after delivery of the initial project. And have a payment agreement. For the kind of madness in Nigeria I will say 70% up front. Payment confirms order
Cant blame him . A programmer only opens an editor, writes code and closes it. It takes beyond a programmer to understand the SDLC (software dev life cycle) and the business behind it. MY advise to OP. . collect your money in milestones for each significant delivery. Deliver login button, get paid, deliver landing page, get paid lol . . Create a dictionary, get paid lol . .
ProgrammingRe: Javascript by cixak95211: 10:27am On Jan 18, 2021
manando1:
Thanks for your response , I was able to code , but now my code when the browser refresh it starts from 0 how can I store the data
localStorage

p.s. it can only store strings for each key => value pair. So dont forget to JSON stringify and JSON. parse when storing and retreiving or better still
use serialization which is better and more performant than JSON strin/parse

Goodluck
ProgrammingRe: Need Good Advices, Precisely From Those With Remote Jobs by cixak95211: 8:02pm On Jan 17, 2021
^^ Empty pride, which makes it worse.
I can bet my life he cannot explain in his own words the difference between == and ===
grin grin grin
ProgrammingRe: Need Good Advices, Precisely From Those With Remote Jobs by cixak95211: 8:44pm On Jan 16, 2021
@gimakon
You're at stage 2. carry on . . you're doing well.
Let us know when you get to stage 5 . . .
12 years a software developer slave

ProgrammingRe: Need Good Advices, Precisely From Those With Remote Jobs by cixak95211: 5:05pm On Jan 16, 2021
@gimakon
Going through your post. I can authoritatively deduce that you've been a developer for "12 days" and NOT "12 years" as you claimed.
1 day of professional coding == 1 year of "on the couch" coding.
Nobody with even 2 years of professional coding experience will ask these kinda questions you just asked.
Feel free to refute my claim with evidence and I'll hook you up to a remote job, guaranteed !!!
CareerRe: Ways One Can Become Rich From Home by cixak95211: 10:56am On Jan 16, 2021
The5DME:
Thank you sir. I'll be going for computer engineering sir..... I just needed someone experienced to advise me.
May the force be with you.
CareerRe: Ways One Can Become Rich From Home by cixak95211: 10:55am On Jan 16, 2021
Karleb:
@cixak95211

So you studied Biochemistry? shocked shocked

Great scot!
Yes sire!
CareerRe: Ways One Can Become Rich From Home by cixak95211: 10:20am On Jan 16, 2021
@The5DME

Many thanks for the honorary title conferred on me, alas, I am "not the only one here with the breadth of wisdom to advise you". Many will tell you otherwise so take my advise with a pinch of salt. Yes there is a diff. Programmers focus only on code, SWEs focus on design and engineering from client to business needs. All SWEs are programmers but not all programmers are SWEs.
If you have the means, pls get a C/S degree, coming from someone who also majored in Biochemistry before my transition into Maths and C/S
, I think have enough knowledge in that area to advise you. Some will advise you otherwise that you can learn DSA on your own. Yes true, but you will struggle, practically. Yes, if you practice for 8hrs per day for a couple of years, you'll be a guru. But that's just for DSA. How about other parts of computing? If you have 2 years to spare, why not add an extra 2 and get the whole cow instead of just the milk? If they want to to prove you wrong, just tell them to "pass" even the Upwork coding certification or any proctored whiteboard interview and tell you their experience. You can be as many things as you want, engineer, scientist, doctor, but you should try to excel in one by a long shot. Jack of all trades, master of . . you know the rest. Cheers. My DM is open for more conversation, hoping the bot spares this post.

1 2 3 4 5 6 7 8 9 10 (of 13 pages)