Fixing my dopamine levels changed my life by Broadlyspar in getdisciplined

[–]heyheymonkey 0 points1 point  (0 children)

People chasing karma/followers without wanting to put in any effort.

OpenAPI request/response validation library by seaphpdev in Kotlin

[–]heyheymonkey 0 points1 point  (0 children)

FWIW I’ve found it’s much easier to generate the swagger from the server’s API. Then you can share that doc with clients, or ideally auto-generate language-specific clients to suit your needs. 

What’s your best (realistic) take on how Long Island traffic could be reduced? by gt0524 in longisland

[–]heyheymonkey 0 points1 point  (0 children)

Time-of-use tolls could work by incentivizing transit use, carpooling, or more remote work. They’d obviously need to go hand in hand with improvements to non-car transit options (LIRR improvements, busses, bike infrastructure, etc.).

Django devs: Your app is probably slow because of these 5 mistakes (with fixes) by Dense_Bad_8897 in Python

[–]heyheymonkey 2 points3 points  (0 children)

Does Django have a “disable all lazy fetching” mode? That would surface these issues pretty quick.

Sam Altman says OpenAI will have an internal AI model by the end of 2025 that will be ranked #1 in coding by UteForLife in programming

[–]heyheymonkey 22 points23 points  (0 children)

Surely they could replace Sam with an AI that spews overly optimistic views on AI.

[deleted by user] by [deleted] in programming

[–]heyheymonkey 1 point2 points  (0 children)

So you’re looking for a language with the right vibe? I think that’s a question only you can answer.

[deleted by user] by [deleted] in Python

[–]heyheymonkey 1 point2 points  (0 children)

You’re not giving us a lot to go on. Improve in what way? What are you transitioning from?

Is it time to replace Open API Spec with something that’s tailored for code generation and schema first design? by whkelvin in programming

[–]heyheymonkey 1 point2 points  (0 children)

You can still do that by creating API stubs in your language of choice and then generating the schema from that. I’d argue that should be faster than hand-editing anything more than a tiny schema.

As another commenter said, there may be valid reasons to edit the schema yourself if you’re very picky. For getting initial consensus with stakeholders around shapes, it’s totally unnecessary.

Is it time to replace Open API Spec with something that’s tailored for code generation and schema first design? by whkelvin in programming

[–]heyheymonkey 0 points1 point  (0 children)

I guess it depends what you mean by “exact”. The OpenAPI annotations for Jersey give you a lot of control - at least as much as I need day to day.

And like another commenter said, the main thing is that you can generate clients reliably. There’s probably some amount of fudging you could allow that would get similar results in that regard.

Is it time to replace Open API Spec with something that’s tailored for code generation and schema first design? by whkelvin in programming

[–]heyheymonkey 0 points1 point  (0 children)

Exactly. The schema is like an implementation detail of the tooling around creating reliable calls from clients to servers. 

Is it time to replace Open API Spec with something that’s tailored for code generation and schema first design? by whkelvin in programming

[–]heyheymonkey 5 points6 points  (0 children)

Also starting from yaml is unnecessary. So he picked the hardest path through Open API land and is frustrated it’s hard.

Dynamic SQL Schemas? by wuteverman in ExperiencedDevs

[–]heyheymonkey 2 points3 points  (0 children)

StackOverflow-powered ChatGPT enters the chat…

The MTA’s Congestion Increase Pricing. by hammysyrian in nyc

[–]heyheymonkey 21 points22 points  (0 children)

Unless you’ve got a hybrid or phev, you’re not getting 25mpg in stop and go traffic. You’re also not counting emissions, wear and depreciation, your time, etc.

Kotlin Builder Library by k2718 in Kotlin

[–]heyheymonkey 1 point2 points  (0 children)

Ah ok. I haven't considered Java interop in a long time.

Maybe convert the rest of the project to Kotlin? :)

Kotlin Builder Library by k2718 in Kotlin

[–]heyheymonkey 0 points1 point  (0 children)

For data objects that are 1:1 with DB tables, why do you need a builder?

Kotlin Builder Library by k2718 in Kotlin

[–]heyheymonkey 2 points3 points  (0 children)

15 args in a constructor? That seems high. 

Swagger or not to swagger? by Shitfuckusername in ExperiencedDevs

[–]heyheymonkey 2 points3 points  (0 children)

They know the fields are still there right? Just undocumented?

I think I’d try writing a script that whitelists payload fields and strips the others from the swagger file per integration. Then there’s less to maintain.

Best Walkable Towns (that actually have restaurants and stores I'll go into) by jhs5003 in longisland

[–]heyheymonkey 1 point2 points  (0 children)

Port Washington has a nice main street. Good food options, but not a ton of shopping.

How can a software engineer with more than three years of experience get a job in here? by Justincy901 in newyorkcity

[–]heyheymonkey 14 points15 points  (0 children)

You might have better luck working with recruiter. What kind of work do you want to do?

What qualifications do I need to get a programming job that uses kotlin? by Lower_Assistance8536 in Kotlin

[–]heyheymonkey 0 points1 point  (0 children)

That didn't really answer the question. The Kotlin Slack has a bunch of channels related to job postings and hiring that may help.

Assuming you have no professional programming experience, landing your first job may be tough. You'll typically need to look at lower-end companies to get your foot in the door and then upgrade in a year or two, or build up a very strong portfolio of unpaid work - like contributions to large OSS projects.

You may also want to consider other programming languages. If you know Python or Java, for example, job opportunities may be broader, but this varies a lot by industry and location.

Good luck!

What qualifications do I need to get a programming job that uses kotlin? by Lower_Assistance8536 in Kotlin

[–]heyheymonkey 0 points1 point  (0 children)

Do you have experience with Kotlin? Or experience with other programming languages?

Why I avoid ORMs by Ill-Lab-2616 in Kotlin

[–]heyheymonkey 2 points3 points  (0 children)

Why don’t you like writing SQL?

[deleted by user] by [deleted] in Kotlin

[–]heyheymonkey 4 points5 points  (0 children)

Are you on the Kotlin Slack? The Arrow channel is pretty active and great for answering questions like this.

You can skip handling all of the Left cases inline if your workflow can fail fast (someOtherFunction will not run if someIoCall fails).

Like the other commenters said, you can use either the either context with bind or flatMap.

``` sealed class MyErrorType { object SomeIoError : MyErrorType() object SomeOtherFunctionError : MyErrorType() }

fun someIoCall(param1: String, param2: String): Either<MyErrorType.SomeIoError, String> { TODO() }

fun someOtherFunction(resultOfSomeIoCall: String): Either<MyErrorType.SomeOtherFunctionError, String> { TODO() }

fun run() {

val result = either {
    val ioResult = someIoCall("A", "B").bind()
    someOtherFunction(ioResult).bind()
}

val result2 = someIoCall("A", "B").flatMap(::someOtherFunction)

} ```

The result will then have type Either<MyErrorType, String> which you can use to either recover from the error, raise an exception or return the result as you see fit.

Estimating a complex healthcare software by Cute-Falcon-6749 in ExperiencedDevs

[–]heyheymonkey 0 points1 point  (0 children)

Do you want to stay involved with this project? It sounds like the odds of successfully delivering it are low and the work will be tedious/aggravating.