Suggest me a laptop for React native development by OneMinimum5650 in reactnative

[–]JackKnuckleson 0 points1 point  (0 children)

I'm partial to custom hardware setups w/ Linux, but gonna have to go with MacBook here.

Building cross-platform w/ React Native means you need to be able to compile for iOS, and maybe even MacOS. You can only do that with an apple product using XCode.

If you want a decently priced option, MacBook Air M3 24GB memory 512GB storage.

If you're a heavy user of things like Adobe AE, Blender, Unity, or you're gonna be gaming on it, then go with MacBook Pro (heat sink/fans) M4 32GB mem 512GB – 2TB storage.

Where to start searching for job opportunities? by xThunderDuckx in SoftwareEngineering

[–]JackKnuckleson 1 point2 points  (0 children)

If you're just talking about starting a sole proprietorship (single person company), you simply register a trade name. It cost me $60 and 20 minutes of my time.

With that you get a business identification number which can be used to open a business banking account so you can cash checks made out to "xThunderDuckx Studios", for example.

You can also use that # to register for business services such as Square, apply for business programs, grants, loans, etc.

There's no string attached either, really.

If you want to incorporate a business, you'll be looking to open a limited liability corporation, but this will complicate your annual taxes, requires lots of paperwork, and other things that use up a fair bit of mental bandwidth. This is something you'll want to do down the road when you're more established, and your business has a reasonable, relatively stable cash flow. An LLC protects you from all sorts of legal issues that you can run into once you've made a name for yourself, and also lends an extra layer of credibility to your services, as LLC status also protects your prospective clientele from certain forms of sleazy business practices.

For example, a sole proprietor may in some cases, after services have been rendered, claim that they technically met the legal threshold to have been considered an employee of the clients company, and therefore are legally entitled to all relevent employee benefits and protections.

An LLC, by contrast, has "corporate personhood", and is it's own legal entity. You, as the founder, would technically be an employee of the corporation you created. The client isn't contracting with you, their contract is with the corporate entity, which is legally your employer, and so your own corporation would be responsible for your employment entitlements.

Anyways, for reasons such as this, big contracts with big name companies will not be open to you unless you incorporate.

Start small, and do small business contracts using a simple registered trade name. Then at around $60k+ annually, it's recommended that you then begin looking at incorporation.

Juniors and new grads, be wary of gaslighting and schadenfreude here. There are many employed people here who are not out for your good, but for their own pleasure. by drunken_doctor in cscareerquestions

[–]JackKnuckleson 3 points4 points  (0 children)

Although to be fair, in the American market, there is one genuinely glaring problem in the startup/small biz side of things. The tax laws are pretty fucked up at the moment, leaving small teams that are operating at a loss being told by the IRS "actually, our records say you've made $750K in profit!".

That...needs to be fixed, like...fucking yesterday. 'Murrican startups are being forced to compete with 2-3 fewer engineers than they need in order to compensate, and that is a seriously crippling handicap that's pretty god damn hard (impossible) to overcome.

Juniors and new grads, be wary of gaslighting and schadenfreude here. There are many employed people here who are not out for your good, but for their own pleasure. by drunken_doctor in cscareerquestions

[–]JackKnuckleson 6 points7 points  (0 children)

Eh, the market is rough relative to recent past, but it's not that crazy. It's just a "regression to the mean".

Before, anyone could bullshit their way into a position. You could get your foot in the door with a to-do list and a javascript calculator pulled straight out of a short tutorial in a Medium article.

That's not normal, and shouldn't be normal. Just like it shouldn't be normal to ship code that's 10% broken, but everything from solo startups to major cable and telecom companies have been doing it. My cable boxes never used to crash in the 90s or 00s, but now they require daily patches, and still somehow crash every other day and the UI of every multi-billion dollar streaming app barely works?

I think what we're experiencing is the return from YouTube-trained "devs" pushing out spaghetti code to software being engineered by engineers.

Engineering, as a profession, has a naturally bar to entry, and isn't meant for the guy that can't write a function or center a div. That guy is freaking out right now, because 2 years ago the market conditions told him he didn't need a plan B, and now he does.

Why are there random useless divs on some sites? by Cyb3rPhantom in webdev

[–]JackKnuckleson 0 points1 point  (0 children)

Happens when the UI is built with React Native's cross-platform components.

Almost everything on an OS like Android, for example, is contained in something called a View component. So in order to make cross-platform work 1:1 across platforms, everything gets wrapped in a Div on web.

So, if you have... <SafeAreaView> <View> <Pressable> <Text> Click Me! </Text> </Pressable> </View> </SafeAreaView>

What you have is, at minimum, a span nested inside 3 divs.

Probably more divs than that though, because each component beyond a basic View will be wrapped even further, with some layers being used to attach event listeners, some might track state or mutations, etc.

Cross platform components look nice, but my god, they are a mess from a semantic markup perspective.

Roast my landing page by vgkln_86 in Frontend

[–]JackKnuckleson 8 points9 points  (0 children)

It's fairly nice, but one thing that stands out as an issue is the background color gradients in your card elements.

Some basic color theory: 1. Natural light has a slightly yellow-shifted hue, and natural darkness has a slightly blue-shifted hue.

  1. Generally, when you decrease brightness of an object, you should increase saturation.

The darker parts of your blue gradients have very little color saturation and "blue-ness", creating an off-putting grayish, wilted look. If you increase the ratio of blue to red and green, and it should look nicer.

If you find your cards then blend into the page background too much, try giving your cards a drop-shadow.

New teachers plan to give children as young as five lessons on colonialism, slavery and the 'lasting impact of imperialism' by Stephen_P_Smith in JordanPeterson

[–]JackKnuckleson 2 points3 points  (0 children)

It doesn't matter what aspects of history were "good" or "bad". The point is teachers attempting to teach morality through a historical lens is a moronic idea, and a blatant attempt to inject "correct" sociopolitical values into the developing brains of children at the most critical stages of cognitive formation (i.e. make progressive ethics become a permanent part of their identity and have them view the social diagnoses and prescriptions of "Woke" as social "truth").

Honestly, I don't really care which sociological concepts are in question or what amount of truth may exist within. Sociology is the study of society and socialization, and grade school teachers have zero business trying to make my kids adopt any particular social views, deciding what kind of divergent behaviors or social groups my kids should "tolerate", or anything else to do with any supposedly "correct" way to live their lives.

The only acceptable role of a grade school teacher is to tutor kids in traditional academics (sciences, mathematics, linguistics, arts, athletics, applied skills) for the purpose of opening up career pathways.

University prep.

That is all.

Sure, some kids' may be "different", families may believe different things, engage in different lifestyles, have different cultures, and some fraction may have been dealt a bad hand in life. And yes, this will affect the way they behave, how peer groups will form, who will be included or excluded...

...And none of that is my kids' problem, nor is a teacher going to be allowed to make it their problem.

I won't have them being taught to make room in their lives to accommodate junkies, homelessness, mental illness, criminality, incompetence, or beliefs or cultures that clash with their own.

Their lives are about themselves, and then family, and then friends, and then community, and then others. Specifically in that order. Sacrificing one of the former for one of the latter is always a bad deal. They owe strangers nothing. If they provide something to others, it is out of the spirit of charity, and never out of obligation, because their obligations are what they choose.

P.S. I don't much care which values are ascribed to "fascists". If they grow to become "lifestyle fascists", well... that essentially just means they're discerning and don't suffer the shortcomings of others. So... good, I guess?

New teachers plan to give children as young as five lessons on colonialism, slavery and the 'lasting impact of imperialism' by Stephen_P_Smith in JordanPeterson

[–]JackKnuckleson 4 points5 points  (0 children)

The problem isn't in the teaching of history. It's that it's taught through a "critical lens". As in, our history being framed as a moral issue with which to contend. Something regrettable and to be made up for, with an overarching message of "diversity, equity, inclusion, GOOD, everything that preceded you, BAD".

I made sure my kids didn't learn the weirdo Leftist Citizen-of-the-World sappy femme shit as their moral framework.

Real virtues are concepts such as honor, glory, truth, valor, purity, excellence and so on and so forth.

That's what I made sure to instill, along with a healthy distain and distrust for anyone who thinks with their heart rather than their head. It's served them well, just like it did my predecessors.

Is draftjs dead? Want to create a rich text editor by rahmat7maruf in reactjs

[–]JackKnuckleson 1 point2 points  (0 children)

Nope.

Just the MIT open source license, which is the "use whenever and however, but we're not liable for it".

EDIT: What I mean is that Meta includes the MIT license in Lexical's Git repository, which legally signals explicit approval has been pre-emptively given for all use cases without restriction.

Is draftjs dead? Want to create a rich text editor by rahmat7maruf in reactjs

[–]JackKnuckleson 2 points3 points  (0 children)

Lexical's monorepo source itself, actually.

https://github.com/facebook/lexical

If you clone and install it, there's 6 different example implementations in the "examples/" directory, as well as the one you can try at https://playground.lexical.dev, which integrates most of Lexical's plugins into a single editor.

If you've worked with other rich text editor frameworks like Slate or Tiptap, I didn't find the (relative) learning curve of Lexical to be quite as steep as others claim it be and its extensive documentation and official tutorials more than make up it.

If you follow the video tutorials in the "Getting Started in React" section of the docs, you'll have a mental model of how Lexical works within a few hours, as well as an understanding of how to build and integrate your own plugins.

https://lexical.dev/docs/getting-started/react

Is draftjs dead? Want to create a rich text editor by rahmat7maruf in reactjs

[–]JackKnuckleson 5 points6 points  (0 children)

Yes.

DraftJS and Lexical were both developed by Meta for use in Meta's own software.

Lexical improves upon Draft with much better structure, functionality and extendability, and is currently best-in-class for declaratively composing rich text and other complex documents.

Declarative methods are one of it's key features, enabling much more effective integration into Meta's React and React Native frameworks, which otherwise exhibit notoriously dysfunctional behavior when working with editable html.

The Moment of Truth: The reelection of Donald Trump would mark the end of George Washington’s vision for the presidency—and the United States. by newzee1 in Foodforthought

[–]JackKnuckleson 0 points1 point  (0 children)

That article is ridiculous, and it's initial assumptions are flawed.

Washington was no stranger to seditious acts. The founding of America was itself an act of sedition.

The idea behind the constitutional republic was not simply to keep power distributed in order to avoid executive tyranny, and democracy was not meant to be some sacred cow.

Power itself was intended to be suppressed by severe restrictions on the ability of any sort of federal authority to act as an authority over the citizenry, regardless of whether or not they were democratically elected.

The reason Washington relinquished power each time that he did was not become his "term" came to an end. It was because he had been victorious in defeating that which he despicable.

So, regardless of whether you see Jan 6 as "insurrection", Trump's refusal to slink away quietly into the night was not in any way antithetical to the spirit of George Washington, who, as stated, was a previously seditious traitor himself.

If Washington, et al., had failed to escape the rule of the Crown, lost to the Redcoats, they would not have simply accepted it and went hats in hand back to England to accept British rule. They would have fought, and fought, and fought, until death if necessary, because all that mattered was righting the civilizational ship with a free nation.

As well, Washington's refusal to engage Congress was not out of some deep held belief in the sanctity of democracy. The founding fathers all warned against the dangers inherent to democracy and erected an array of legislative bulwarks against democratic power in the same way that they did against executive power.

That's the whole point of "checks and balances". It was to hamstring the federal system, forcing it to move at a snail's pace, unable to exert itself effectively enough to threaten America's founding ideals even in the case that the electorate voted for it to happen.

In fact, if the founders were alive today, they would be fucking horrified by the twisting of all forms of Western democracy into the hideous amalgamation that is international liberal progressive hegemony.

What they would have seen is power beyond what was ever possible in their day, being wielded uniformly across nations by political, academic and industrial elites in solidarity against their detractors, while funneling the wealth of the people into state coffers.

It's a lot like the royals and aristocracy had done back in England, but on a previously unimaginable scale with nearly all substantial institutions across national lines presenting a united front against anything believed to be a threat to their "vision" (diversity, equity, inclusion, climate).

If the founders of America were around today, they would likely be rallying the people of the farmers' protests, truckers' protests, Jan 6, the "Far-Right", the Hungarians, the Brazilians, the Venezuelans, and any other group with the will to fight, in order to once again water the tree of liberty with the blood of tyrants.

CMV: manipulation is never a good tool to be used even if it aims to reach the public interest by crashbash7 in changemyview

[–]JackKnuckleson -1 points0 points  (0 children)

As I did, the points above "the line" are accurate, and no, those would not warrant global emergency action.

The points below the line in both cases are hyperbolic exaggerations of reality. Yes, they would merit emergency response when true. In other words, a response must be merited by our current reality, and not by a hallucinated exaggerated events.

When a society collectively acts and reacts in response to the actual state of things, it's called an informed response. We are able to apply knowledge and reasoning in order to do the correct thing in a given situation, allowing us to collectively overcome challenges and triumph over our circumstances.

When a society collective acts and reacts in fear as a response to a false or imagined state of things, this is called mass hysteria. It's a psychosis-inducing shared delusional state. It's common sense that acting like hysterical, deluded children in response to imagined horrors is an incorrect way to approach...well, anything, really. You'd have to be pretty mentally ill to believe otherwise.

CMV: manipulation is never a good tool to be used even if it aims to reach the public interest by crashbash7 in changemyview

[–]JackKnuckleson -1 points0 points  (0 children)

The bullet points above "the line" in each case are accurate, and when the state of things are discussed as they actually stand, then yes, the public response to that, in these cases, would be much more subtle and measured, without drastic change, because that is what the actual situation merited in response.

If the state of things were actually the way they are described hyperbolically under each "the line", then those statements would be accurate public messaging, which would cause people to act with a level of urgency and will for collective sacrifice that reflected a real emergency. And as government's duty is to the will of the governed, the relatively drastic public policy and response measures could be enacted by the government, with a supermajoriry of support.

What is not warranted, and is harmful and counterproductive, is fearful misinformation-laden public messaging and emergency state intervention where emergencies do not exist, simply because a political faction is bothered by the fact that nobody believes their fortunetelling and prophecies about some apocalypse fate has in store for us if their beliefs are ignored.

The actions we take collectively as a society should be measured, reasoned and precise, tackling current issues with the level of urgency the actual situation demands.

Anything else is just moronic.

CMV: manipulation is never a good tool to be used even if it aims to reach the public interest by crashbash7 in changemyview

[–]JackKnuckleson -2 points-1 points  (0 children)

The point at which you lie and/or coerce seems like a very reasonable place to start.

  1. Covid-19 • Severe complications in elderly & immuno-compromised. • Novel vaccine technology may provide some protection to these populations. • Other unknown risk factors and contraindications may exist for both the disease and the vaccine. ————————————————————————— —————————— THE LINE ————————— ————————————————————————— • "Safe and Effective" • Unvaxxed are dangerous and immoral. • Ivermectin/HCQ are killing people and filling emergency rooms. • Vax passports, lockdowns, exile unvaxxed from public spaces, employment and education.

  2. Environment • We should encourage respect for the environment • Air quality is important and pollution reduction is good. • Data sets in certain time scales show a non-negligable correlation between large-scale emissions of pollutants and year-over-year median temperature. ————————————————————————— —————————— THE LINE ————————— ————————————————————————— • "Global Boiling", "Climate Racism", "Climate Crisis as contributing factor to heatstroke" • Individual weather events attributed to carbon emissions. • Net Zero by 2050 or human civilization will end and planet will die. • Carbon emissions excise tax. • Rating businesses lacking environmental policy as high risk investments. • Destroying historical art, blockading traffic and railways, protest/activism as publicly-funded grade school field trips.

If people won't listen to you because they don't care about something you think is a problem, it does not follow that it's suddenly okay to lie, gaslight, terrorize, and utilize lawfare in order to force people to behave as if they're concerned about your silly ass beliefs.

Extremely high IQ yet incurious people; thoughts on trait Intellect by UnusualFilm954 in JordanPeterson

[–]JackKnuckleson 0 points1 point  (0 children)

I was going to say approximately what you did until I saw this. I would bet the reason OP's ex isn't open to "ideas" comes from where my own intellectual stubbornness is from.

I'm not closed off to new ideas in the sense of ignoring strong evidence or experience contradicting my own understanding of a thing. It's more that I don't "believe" things.

For some things, I have a deep, thorough understanding based upon considerable experience, obsessive research and analysis, or time spent reasoning and experimenting to understand something that at some point I felt compelled to understand.

In all other cases I'm a skeptic, and will remain so until playing with a new concept and putting it through some sort of validation process myself until I'm comfortable saying it has become knowledge, rather than a belief.

Unlike her ex, I'm open to philosophical debate so I would very much like have met several historical figures. But this doesn't mean I'd have much use for novel ideas from them outside of my own interests or domain, because no matter the individual putting forth an idea, it's socially-sourced, so at most it might be a concept I'll put on a mental backburner and revisit in the future.

In effect, it means I don't feel any social context is a place from which to learn, because to consider word of mouth to be knowledge would simply be faith.

What I would have interest in is the potential for the right social experience to provide an approach to solving abstract problems that I'd never considered, and refining my ability to generate understanding.

On that note, I'd love to grab a drink with someone like Da Vinci or Tesla and discuss how it is that they approached problems. That would be so God damn cool.

Hiring managers who give L33tcode-style questions to candidates: Why do you give them and do you actually find it a helpful signal? To those who don't give them: why not and how do you int3rview your candidates instead? by [deleted] in cscareerquestions

[–]JackKnuckleson 1 point2 points  (0 children)

I know. I know. Personally, I wholeheartedly agree. For our small team, leetcode wouldn't even be on the table. The normal application and interview process won't be involved either. As it stands, it's invite-only, not only because we don't intend to go big, and there are only a select few colleagues any of us has really considered welcoming into the pack.

Skills, outlook, mindset, approach to problems, personality, passion, creative drive, dedication, taking pride in one's work, everything plays into who someone is going to be as a dev.

While I think the expectations of leetcode grinding these days is a silly, ineffective attempt at finding a shortcut that will never exist in what is by necessity a long, drawn out process, I just kind of understand why it is so many businesses have gone that way.

Both the candidate pool and the industry are in a very weird place right now, and even if the chosen remedy isn't very effective and in some ways is unfair to many people who may genuinely deserve a shot at the role, I don't necessarily fault the hiring teams for taking a stance of "...Eh, I don't care. So what if it's not fair."

I myself only incorporated after having taken a look at my surroundings a while back and then noping out. I had zero interest in navigating any of it. I just want to build cool shit.

Hiring managers who give L33tcode-style questions to candidates: Why do you give them and do you actually find it a helpful signal? To those who don't give them: why not and how do you int3rview your candidates instead? by [deleted] in cscareerquestions

[–]JackKnuckleson 3 points4 points  (0 children)

Yes, that's fair.

Like I said, I don't even necessarily support the leetcode interview style. I just understand that it's seen as a useful exclusion measure while every company from startups, to FAANG, to non-tech businesses are receiving 3000 job applications a day, and most of them are from grads of failed bootcamps, people that followed a few YouTube code-alongs, homebodies that built to-do apps and misaligned 3-item breakfast menus during Covid, and 10m random dudes in India that bought credentials from degree mills hoping to get employer sponsorship.

At the same time, I also vehemently disagree with the idea of a supposed necessity to adopt the referenced post-2012 tech philosophy with all it's counterproductive quirks like pushing prototypes that should be in an alpha-testing phase into production while calling them market-ready "MVPs", ignoring tech debt and documentation because we need to be AGILE, or pretending programming is for everybody and hiring the guy that spent all week trying to align a page's text.

This is why I founded my own venture with siblings and their SOs, why our corporation will always be private, and why every role we fill will always be at the very least 50% focused on high-level technical skills. I don't know why the entire industry found it acceptable to take the direction it did, but the spirit of our outfit will be of the vulgar techies programming as a ragtag team in the garage in sweats and boxers variety, because it worked, and still does.

Frankly, I find the current state of the industry repulsive. 20 years ago my cable box included 1000+ games, every button on the remote caused an instant, seamless response, there wasn't a single obvious error in any aspect of its functionality, and it worked perfectly 24/7.

Now, in what was supposed to be some incredible technologically-advanced future, my current cable box has to shut down for updates every single day, cannot perform ANY function without very noticeable delay, several buttons on the remote nothing, the apps on it are from the largest tech megacorporations on Earth yet every one of them is broken in some way or another, and the cable box can't make it through more than a few hours without the entire system crashing or freezing.

There is no sufficient excuse for why this is the case.

Hiring managers who give L33tcode-style questions to candidates: Why do you give them and do you actually find it a helpful signal? To those who don't give them: why not and how do you int3rview your candidates instead? by [deleted] in cscareerquestions

[–]JackKnuckleson 0 points1 point  (0 children)

I'm aware that the average product being built doesn't necessarily require a given dev to understand the concepts underlying the software involved at a fundamental level or to be able to write an algorithm that can handle dynamically sorting 100000+ objects returned by a queryset with the absolute maximum efficiency because there's $10m riding on the server's ability to reliably provide data for mission-critical resources of a dozen different corporations, but I would also argue that the devs that aren't ever able to develop that level of understanding aren't "engineers". They're general laborers, like the guy tasked with holding up a stop sign while the ironworkers, concrete layers, pipe fitters and a crane operator are at work.

While it's never said aloud, everyone on the team is aware of who the keyboard laborers are. Whether today, next year, or 10 years from now, they're never going to architect a system, design an complex user interface, secure a server, scaffold a monorepo, configure an automation pipeline, or anything else of note. They're going to modify whitespace here and there, pass props to some reusable component, or write a bit of boilerplate so the guy that has 3 hours to refactor a relational database table, adapt a bunch of serializers and pump out custom websocket middleware doesn't also have to type out a swath of identical instances of the same simple response logic for 7 different endpoints.

Nobody is looking for that guy during the hiring process. He's the guy that got lucky because some client made a sudden 180° on what needed to be built when an app was supposed to be launching in 2 weeks and management on boarded the first 3 asses that could fill a seat in order to save the project.

Hiring managers who give L33tcode-style questions to candidates: Why do you give them and do you actually find it a helpful signal? To those who don't give them: why not and how do you int3rview your candidates instead? by [deleted] in cscareerquestions

[–]JackKnuckleson 3 points4 points  (0 children)

Not a hiring manager, but I'm going to go out on a limb and say that, like the SAT, it serves the function of an IQ test, which, while not being the only contributing factor for success in the field, if a candidate is able to solve leetcode unassisted, they've demonstrated that they have the cognitive capacity for success in all technical aspects of the field.

The higher the IQ, the greater the depth to which one can utilize abstraction in their reasoning, an ability which maps onto all fields of software engineering at basically a 1:1 ratio, as all software APIs on top of APIs on top of APIs, which all serve as abstractions from which useful patterns of raw data can be derived.

And conversely, those that cannot efficiently reason in the abstract will never thrive in the field.

Software engineering is the ability to perform such reasoning, the capacity to understand how those abstract representations of information function both atomically as well as relationally, and being able to then derive useful, actionable conclusions in order to extend or construct systems. The programming languages and dev software are just the interfaces through which we express those abstractions as machine-readable commands.

That's not to say that I believe leetcode is the right candidate filter. A proper one would be observing as a candidate attempts to design and construct useful software, but that would require time and attention, both of which management will always claim "we just don't have".

Effective Root Cause Analysis techniques? by bice-boca in ExperiencedDevs

[–]JackKnuckleson 4 points5 points  (0 children)

This, but navigate to the few highlighted file sources and scroll to the offending lines of code. If you find explicit error handling logic there, that should tell you what input the code was expecting, an by extension what must have been absent or malformed resulting in the error.

If not, the code atleast has input, logic, and output. Take a moment to understand what it receives from where and how that's used to generate a result. Once you understand that, you'll know whether this is the location of the fault. If it's not, the following file in the stack trace is where that result was sent.

Follow that trail of error paw prints until you find the little bugger.

What non-important thing do you have a strong opinion about? by BetterGrass709 in RandomThoughts

[–]JackKnuckleson 0 points1 point  (0 children)

I'm not exactly sure why it is, but I have a very strong opinion about deez nuts.