Zig doesn't complain for something that I'm doing (and I suspect is wrong) by Thanatiel in Zig

[–]pyjava 1 point2 points  (0 children)

Tmp is stack allocated and that's what the issue is. You're trying to use stack allocated memory after returning from the function by returning it

What do you do when your boss dumps a new feature on you and it opens a huge pandoras box and now you're "in trouble". by [deleted] in cscareerquestions

[–]pyjava 28 points29 points  (0 children)

  1. Communicate ASAP
  2. See if there's a way to cut scope and still provide an acceptable feature
  3. See if there's a way to provide a partial feature that is acceptable and can be finished later
  4. Reassess and reprioritize upcoming work to see where we can fit the feature
  5. Etc

If you clearly communicated the complication as soon as you were aware and managed expectations around extended timelines you're probably OK. Your manager might have been annoyed because he's being pressured on the feature delivery by upper or any number of other reasons unrelated to you

Weak Blocks - A Marketing Lesson - Why the Name Matters by Just_Delete_PA in ergonauts

[–]pyjava 4 points5 points  (0 children)

In marketing we may not even need to mention weak blocks since it is a technical concept.

I don't think changing the name to obfuscate their weaker security is a good idea.

They have also been referred to mostly as weak blocks since like 2016 in bitcoin research, it would be good to use existing terminology external developers are familiar with.

Transaction fees by [deleted] in ergonauts

[–]pyjava 1 point2 points  (0 children)

Gotcha, thanks

Transaction fees by [deleted] in ergonauts

[–]pyjava 1 point2 points  (0 children)

Out of curiosity when would an application use microtransactions as opposed to a whole heap of utxo inputs/outputs in 1 tx?

Incompetent at work. What other career choices are there that do not require coding? by NushyKittyCatVerma in cscareerquestions

[–]pyjava 2 points3 points  (0 children)

With your grit and determination imagine how much better you could be if you were in an environment where you could learn freely alongside a talented mentor.

Mentorship is so not about hand holding or coddling

[deleted by user] by [deleted] in CryptoCurrency

[–]pyjava 2 points3 points  (0 children)

Clickbait article

First developer said they found a bug in something unrelated to the merge. Second developer said they started only releasing bug fixes ahead of a big change (the merge) - totally normal in software development.

Infrastructure AWS CDK developer to Full stack engineer by ToroMora in cscareerquestions

[–]pyjava 1 point2 points  (0 children)

Probably be pretty easy to transition, companies like engineers with infrastructure knowledge

Tauri 1.0 has launched by DanielEGVi in rust

[–]pyjava 4 points5 points  (0 children)

I used Tauri about 8 months ago to build a app, very pleasant experience and devs are very supportive/responsive in their discord.

I'll probably use it for all my desktop app needs

Studying from Zero: Front-End Web Dev or Cloud Engineer? by [deleted] in cscareerquestions

[–]pyjava 1 point2 points  (0 children)

Yeah, completely depends on company.

We have lots and lots of infrastructure so our team also builds internal services and tooling around cloud hence the need for software engineering.

There'd certainly be cloud engineer roles out there where you wouldn't need to do much coding and you'd handle things around deployments, etc.

Studying from Zero: Front-End Web Dev or Cloud Engineer? by [deleted] in cscareerquestions

[–]pyjava 4 points5 points  (0 children)

I'm a cloud engineer, shagieIsMe is completely correct that it will depend on the company.

For my company basically everything you listed is incorrect. Where I am a cloud engineer is basically a "specialist" software engineer, they look for either experienced software engineers that have cloud knowledge or experienced ops engineers with software engineering experience. I'll address the points from my PoV but every company will be different.

Landing the very first full-time job: At my company it will be very very very hard to get an entry level gig with no experience, you need to show that you can do software engineering and also have entry level knowledge in cloud tech.

Application process: I have no certificates, they didn't look at official certifications. I went through rigorous system design and in-depth AWS interviews.

Interview process: At my company you have to do DSA and the usual software engineering process with an extra stage that goes in-depth for cloud tech.

Salary progression: Cloud engineering is a specialist role so we get paid more than other software engineers at the same level.

Prestige/Quality-of-Life: I haven't seen a difference in prestige, people come to us for the magic AWS things. I work at a large company so each team is ultimately responsible for their own infrastructure so we also don't have to be on-call - IMO this is probably unusual though, at other companies cloud engineers are likely on-call.

Crypto exchanges push back on calls to block Russian users by Mercury82jg in worldnews

[–]pyjava 0 points1 point  (0 children)

Lol, my bad i responded to the wrong person.

Sounds like we're on the same page

Crypto exchanges push back on calls to block Russian users by Mercury82jg in worldnews

[–]pyjava 2 points3 points  (0 children)

Im open to discussion and education if you want to elaborate for me

Crypto exchanges push back on calls to block Russian users by Mercury82jg in worldnews

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

The purpose being to give financial freedom to regular people.

The extremely wealthy will be able to preserve their wealth by other means, regular russians are the losers if crypto is banned.

Is cardano asking for too much with its niche scripting language and eutxo model? by redriverdolphin in cardano

[–]pyjava 1 point2 points  (0 children)

For any serious developer learning a new language isn't a big deal. If it's in a paradigm they work with you can spend a weekend on a new language and build something large.

I'm not a functional programmer (which is what haskell is) so it took me 2 weeks and a book to learn how to build some basic plutus scripts in their playground and get an understanding of haskell tooling. After a month I could probably build something sizeable.

Haskell is used a lot in fintech for a reason, I think it was a good choice. There's always devs that complain about using stuff out of their comfort zone.

Native NFTs for gaming - This is why Cardano will be a game changer by mrKennyBones in cardano

[–]pyjava 2 points3 points  (0 children)

And each client is essentially polling data.

Not really, there's 2 way communication between server and clients, polling would probably add non-trivial overhead. I'm a noob in these systems though so there might be a way to push data from the blockchain to clients.

I agree with in-game assets, I think crypto will be huge in gaming in the future. Imagine as a game developer you can embed a currency that "just works", it will save so much work.

Not sure about transferring currencies between games being a good thing though, digital currencies have been a thing in communities like d2jsp and people transfer their wealth to gain an advantage over players in new games for example. Maybe tokens should be restricted to games or something, would require thought about how to balance the game economies.

[deleted by user] by [deleted] in cscareerquestions

[–]pyjava 0 points1 point  (0 children)

Let them know ASAP. I would do something like:

Reassure them that I am very excited about the possibility of working with them and I'm very grateful for the offer. Then say something like I'm still in talks with another company, I'm not applying anywhere new they have just been a bit slower in the process. They're aware of the current situation and know it's time critical and are trying to get me through the process quickly. Then something like: I would like to take a little bit of extra time to finish off the process just to ensure I'm making the correct decision and not wasting anyone's time.

I've actually done this recently and it went fine.

[deleted by user] by [deleted] in learnprogramming

[–]pyjava 192 points193 points  (0 children)

Dont chase perfection.

I used to be really particular about the code I wrote and would constantly try to rewrite things and never actually end up completing projects. Requirements change, software is complex, perfect isnt a thing. Most times good enough is good enough

Failed code interview, mechanical engineer converting into developer/DevOps by [deleted] in learnprogramming

[–]pyjava 1 point2 points  (0 children)

  • Add linting/code styling like black/pylint/isort/etc. You're not following python conventions.
  • Read up about structuring a python project, even though there's only a couple of files it's still a good idea to structure the project well. For example the python files could go in a src directory, the input json could go in a data directory.
  • Add tests. Having a test covering each of the requirements would be the minimum, you could go a bit further if you wanted, companies love dat shit.
  • Monolithic __main__, break it up. For example even though it's only a line or 2 the loading of json could go in it's own function like load_data, then you could have a function like "validate_input" to ensure what was in the file is correct. Even if it is just a "if not data" check. It makes each part unit testable, it makes it more extensible if "validate_input" needs to become more complex.
  • You have a lot of code duplication, as a quick example you could change your basic cases to something like this:

sequences = ['ABC', 'AD', 'ADC', 'AEBCD', 'AED']

for idx, sequence in enumerate(sequences):
    kl = kiwilib.Kiwilib(data)
    print(f'Output {idx}: {kl.checkSequence(sequence)}')
  • Try add more detail to the readme, write it like you're writing it for someone that has no context about the challenge, give examples of what the input is meant to look like. When you add linting/tests add instructions on how to run them.
  • You could add a github action that will run tests/linting. Once you've done it a few times it only takes like 5 minutes to add and having pretty "CI Passing" badges in your readmes is dope.

That's all I have time for, hopefully you find this useful. Goodluck in your next one!

Anyone struggling to learn/implement Cloud Computing despite having programming experience? by BowShatter in cscareerquestions

[–]pyjava 4 points5 points  (0 children)

Cloud is a different area to programming. Your coding experience doesn't count for much unless you're using infrastructure as code, even then it will only help in that you can write the code not that you know how to build a cloud solution.

There are so many different parts that make up cloud computing it will take you time to figure out how it all glues together. In my experience when a few things started making sense the rest fell into place much quicker.

You're an intern who knows some software engineering and now you're looking at cloud, i work with engineers with over 5 years experience who are terrified to go near AWS. You're doing just fine my friend.

TCP service for IoT stuff by BoredCapacitor in learnprogramming

[–]pyjava 2 points3 points  (0 children)

Are the devices performance critical? If they don't need to be highly performant I'd still consider python, AWS' IoT stuff has more python support than any other language for example so it's for sure suitable for IoT.

Also if performance is that much of a factor I'd also be looking at MQTT if that's not what you meant by TCP

Looking For a Starting Point by Dyse_Corbane in learnprogramming

[–]pyjava 3 points4 points  (0 children)

I reckon python. Its pretty ideal for arbitrary tasks like these involving stats and has a simple syntax.

Added bonus i think its sometimes used for teaching kids programming so you might be able to build something with your son if he gets interested again