Software Development and Programming Careers (Official Discussion Thread)

Rev Leon Lonnie Love

damned mine eyes, DAMNED mine eyes!!
Joined
Nov 11, 2017
Messages
21,890
Reputation
5,468
Daps
88,941
Be tasked with refactoring an entire project filled with spaghetti code, no documentaion outside of example notebooks, plus no unittests....while being expected to knock this out the part in a month, with unittests included plus documentaion....all alone....while being constantly asked about status updates and whether people can start using the new version yet :francis:.


I aint had a normal weekend since end of Jan :to:
 

Cereal_Bowl_Assassin

Superstar
Supporter
Joined
Jul 3, 2018
Messages
10,217
Reputation
4,098
Daps
55,878
Be tasked with refactoring an entire project filled with spaghetti code, no documentaion outside of example notebooks, plus no unittests....while being expected to knock this out the part in a month, with unittests included plus documentaion....all alone....while being constantly asked about status updates and whether people can start using the new version yet :francis:.


I aint had a normal weekend since end of Jan :to:

What kind of hell are you in:picard:
They are asking A LOT, for one person imo
 
Last edited:

Cereal_Bowl_Assassin

Superstar
Supporter
Joined
Jul 3, 2018
Messages
10,217
Reputation
4,098
Daps
55,878
What can I do, i want the money so I agreed...plus being a new employee you do what you gotta do to establish trust and prove yourself :mjcry:

True but thats a lot for most pay grades....to put that on one person is fine but giving you a hard stop date with limited resources would stress put a lot of people. But as long as you're good fam keep on grinding:salute:
 

Secure Da Bag

Veteran
Joined
Dec 20, 2017
Messages
40,024
Reputation
20,339
Daps
126,135
Be tasked with refactoring an entire project filled with spaghetti code, no documentaion outside of example notebooks, plus no unittests....while being expected to knock this out the part in a month, with unittests included plus documentaion....all alone....while being constantly asked about status updates and whether people can start using the new version yet :francis:.


I aint had a normal weekend since end of Jan :to:

I'm about to be in that same pit of hell next month. :sadcam:
 

Dr. Acula

Hail Hydra
Supporter
Joined
Jul 26, 2012
Messages
25,778
Reputation
8,591
Daps
136,820
How do you change the permissions of the library folder on a Mac? When I use chown, it says operation not permitted.
Are you looking to change user ownership or user permission like reading, writing, and executing permissions? Chown, at least in UNIX is for changing user ownership while chmod is for changing the wrx permissions.
 

Rev Leon Lonnie Love

damned mine eyes, DAMNED mine eyes!!
Joined
Nov 11, 2017
Messages
21,890
Reputation
5,468
Daps
88,941
Brehs in here pulling $200k complaining :hhh:


I mean I feel your pain but there's folks in the streets that wish they could get that much money.

:hhh:





























Me. Im people in the streets :sadcam::mjcry:
what they dont tell you is that money goes straight to prescriptions for eye strains, depression and physio for back pain due to sitting for 12+ hours, 6 days a week. The one they have left goes straight to investments and savings since they're too exhausted to even enjoy it like regular folks.
 

TheAnointedOne

Superstar
Joined
Jul 30, 2012
Messages
7,784
Reputation
666
Daps
30,669
You guys probably think I'm retarded.

So I was working on a raytracer in rust and I stumbled across how to do an integral programmatically. I always assumed doing high level math shyt in code was super complex but that wasn't the case here. My small mind is blown away by the simplicity of it though.

Code:
fn integrate( iterations:i32, begin:f32, end:f32, f: fn(f32) -> f32 ) -> f32 {
 
    let mut sum = 0f32 ;
    let mut rng = thread_rng() ;

    for _ in 0..iterations {

        let x = rng.gen_range( begin..=end ) ;
        sum += f(x) ;
    }

    (end * sum)/iterations as f32
}

Edit:

Python version I just made incase folks here are confused by the rust alien syntax (python version is less accurate though but whatever)

Code:
import random

def integrate( iter, beg, end, f ):

    sum = 0    

    for i in range( 0, iter ):
        x = random.uniform( beg, end )        
        sum += f(x)

    return (end * sum)/iter

y = integrate( 100000, 0.0, 4.0, lambda x: x*x )
print(y)
 
Last edited:

6CertsAndAMovie

All Star
Joined
Aug 16, 2017
Messages
994
Reputation
530
Daps
4,620
You guys probably think I'm retarded.

So I was working on a raytracer in rust and I stumbled across how to do an integral programmatically. I always assumed doing high level math shyt in code was super complex but that wasn't the case here. My small mind is blown away by the simplicity of it though.


[/code]

oh that's fire I want to get my Rust and Haskell up for this new year

advice for learning rust
 

Rev Leon Lonnie Love

damned mine eyes, DAMNED mine eyes!!
Joined
Nov 11, 2017
Messages
21,890
Reputation
5,468
Daps
88,941
You guys probably think I'm retarded.

So I was working on a raytracer in rust and I stumbled across how to do an integral programmatically. I always assumed doing high level math shyt in code was super complex but that wasn't the case here. My small mind is blown away by the simplicity of it though.

Code:
fn integrate( iterations:i32, begin:f32, end:f32, f: fn(f32) -> f32 ) -> f32 {
 
    let mut sum = 0f32 ;
    let mut rng = thread_rng() ;

    for _ in 0..iterations {

        let x = rng.gen_range( begin..=end ) ;
        sum += f(x) ;
    }

    (end * sum)/iterations as f32
}

Edit:

Python version I just made incase folks here are confused by the rust alien syntax (python version is less accurate though but whatever)

Code:
import random

def integrate( iter, beg, end, f ):

    sum = 0  

    for i in range( 0, iter ):
        x = random.uniform( beg, end )      
        sum += f(x)

    return (end * sum)/iter

y = integrate( 100000, 0.0, 4.0, lambda x: x*x )
print(y)
Integration can get complicated pretty quickly since you have to deal with corner cases in your implementation before it can be considered robust. Take a look at this integration module to see things need to be for "production" level code: https://github.com/scipy/scipy/blob/main/scipy/integrate/_quad_vec.py

In fact the entire integration module is at least 20 files or so: scipy/scipy/integrate at main · scipy/scipy

As someone who has written and still writes quite a lot of mathematical/scientific code, the implementations get complicated quickly if you consider cases beyond the most basic input values in whatever function. For example, your function doesn't consider the simple case of your bounds being equal, infinity, Non-numerical or even flipped around. Another weakness is that there is no stopping criteria implemented. Running 100000 iterations when the integration converges in just 10 iterations is a waste of computing power and will slow things down.
But it is a good start. I would also write lots of unittests in order to reveal the weaknesses in the implementation and then improve on that.

Another thing is, using loops like that for integration is gonna be sloooooooooooow the larger `iter` is. Lots of libraries implement such loops using clever tricks found in research papers or languages like FORTRAN or C and then inter-op with the high-level interface written in python.
 
Last edited:

F K

All Star
Joined
Jan 13, 2017
Messages
3,204
Reputation
480
Daps
10,121
Be tasked with refactoring an entire project filled with spaghetti code, no documentaion outside of example notebooks, plus no unittests....while being expected to knock this out the part in a month, with unittests included plus documentaion....all alone....while being constantly asked about status updates and whether people can start using the new version yet :francis:.


I aint had a normal weekend since end of Jan :to:
:lupe: rip to you brother. Hopefully you get paid handsomely. Is it too complex to rewrite from scratch?
 

F K

All Star
Joined
Jan 13, 2017
Messages
3,204
Reputation
480
Daps
10,121
I feel like a lot of these big money big stress jobs have to be treated like doing a bid at an oil field or consulting firm. Do a year or two... don't change your consumption/ spending patterns, stack the dough and then go find a job that pays mediocre but lets you coast.
 

BlackJesus

Spread science, save with coupons
Joined
Nov 16, 2015
Messages
7,254
Reputation
-3,318
Daps
20,956
Reppin
The Cosmos
what they dont tell you is that money goes straight to prescriptions for eye strains, depression and physio for back pain due to sitting for 12+ hours, 6 days a week. The one they have left goes straight to investments and savings since they're too exhausted to even enjoy it like regular folks.

Eye strain and back problems can easily be avoided with ergonomics and regular breaks. It’s your responsibility to take care of your body. Don’t blame that on a super low stress work environment
 
  • Dap
Reactions: F K
Top