Software Development and Programming Careers (Official Discussion Thread)

Arithmetic

Veteran
Supporter
Joined
Mar 6, 2015
Messages
49,337
Reputation
14,463
Daps
262,191
31 free e-books by oreilly

Code:
http://www.oreilly.com/webops-perf/free/files/anomaly-detection-monitoring.pdf
http://www.oreilly.com/webops-perf/free/files/antifragile-systems-and-teams.pdf
http://www.oreilly.com/webops-perf/free/files/are-your-networks-ready-for-the-iot.pdf
http://www.oreilly.com/webops-perf/free/files/beyond-the-twelve-factor-app.pdf
http://www.oreilly.com/webops-perf/free/files/building-an-optimized-business.pdf
http://www.oreilly.com/webops-perf/free/files/chatops.pdf
http://www.oreilly.com/webops-perf/free/files/cloud-native-evolution.pdf
http://www.oreilly.com/webops-perf/free/files/continuous-delivery-with-windows-and-net.pdf
http://www.oreilly.com/webops-perf/free/files/devops-for-finance.pdf
http://www.oreilly.com/webops-perf/free/files/devops-hiring.pdf
http://www.oreilly.com/webops-perf/free/files/devops-in-practice.pdf
http://www.oreilly.com/webops-perf/free/files/devopssec.pdf
http://www.oreilly.com/webops-perf/free/files/distributed-development-stack.pdf
http://www.oreilly.com/webops-perf/free/files/docker-in-the-cloud.pdf
http://www.oreilly.com/webops-perf/free/files/docker-networking-and-service-delivery.pdf
http://www.oreilly.com/webops-perf/free/files/docker-security.pdf
http://www.oreilly.com/webops-perf/free/files/enterprise-devops-playbook.pdf
http://www.oreilly.com/webops-perf/free/files/everything-is-distributed.pdf
http://www.oreilly.com/webops-perf/free/files/immutable-infrastructure.pdf
http://www.oreilly.com/webops-perf/free/files/kubernetes.pdf
http://www.oreilly.com/webops-perf/free/files/learning-from-first-responders.pdf
http://www.oreilly.com/webops-perf/free/files/lightweight-systems.pdf
http://www.oreilly.com/webops-perf/free/files/mobile-app-analytics.pdf
http://www.oreilly.com/webops-perf/free/files/modern-web-operations.pdf
http://www.oreilly.com/webops-perf/free/files/monitoring-distributed-systems.pdf
http://www.oreilly.com/webops-perf/free/files/network-automation-with-ansible.pdf
http://www.oreilly.com/webops-perf/free/files/release-engineering.pdf
http://www.oreilly.com/webops-perf/free/files/serverless-ops.pdf
http://www.oreilly.com/webops-perf/free/files/the-human-side-of-postmortems.pdf
http://www.oreilly.com/webops-perf/free/files/unikernels.pdf
http://www.oreilly.com/webops-perf/free/files/unsung-tools-of-devops.pdf
 

Jx2

Veteran
Joined
May 28, 2012
Messages
13,462
Reputation
3,885
Daps
65,925
Reppin
NULL
Been at this web development boot camp thing from udemy a few weeks already and i really dig it. Had a dream i was writing code in html5 and styling it in CSS last night:russ: i just wished i picked this up a couple years ago when I first thought about it, I didnt think I would like it this much.
It becomes a more intricate form of puzzle solving that is quite addicting if you have a decent attention span. Good on you sticking it out so far :salute:

Which web dev course are you taking? I'm plodding through Rob Percival's right now
 

Regular_P

Just end the season.
Joined
May 1, 2012
Messages
77,493
Reputation
9,697
Daps
209,140
It becomes a more intricate form of puzzle solving that is quite addicting if you have a decent attention span. Good on you sticking it out so far :salute:

Which web dev course are you taking? I'm plodding through Rob Percival's right now
Man, I couldn't stick with the Percival one. Not a fan of his get rich quick attitude either. I'm doing the Colt Steele (sounds like a porn star name :dame: ) one and it's much better, in my opinion.
 
Joined
May 3, 2012
Messages
10,793
Reputation
3,916
Daps
56,232
Reppin
NULL
It becomes a more intricate form of puzzle solving that is quite addicting if you have a decent attention span. Good on you sticking it out so far :salute:

Which web dev course are you taking? I'm plodding through Rob Percival's right now
You're right about it feeling akin to intricate puzzle solving. I enjoy the challenge and seeing everything come to life in the form of a web page is just so satisfying, it really is addicting like you said. I'm taking the Colt Steele course ( I thought the same shyt about his name sounding like a porn name too:deadmanny:) and I love it so far. Colt breaks down things in a very succinct and easy to follow manner.

https://www.udemy.com/the-web-developer-bootcamp/learn/v4/overview
I might check out the Rob Percival course for the hell of it next time it goes on sale for $15, just to compare at least.
 

Jx2

Veteran
Joined
May 28, 2012
Messages
13,462
Reputation
3,885
Daps
65,925
Reppin
NULL
Man, I couldn't stick with the Percival one. Not a fan of his get rich quick attitude either. I'm doing the Colt Steele (sounds like a porn star name :dame: ) one and it's much better, in my opinion.
How far did you get before you stopped? I'm slogging through the css portion right now. I'm working through another textbook atm so this hasnt been getting my full attention.
 

Regular_P

Just end the season.
Joined
May 1, 2012
Messages
77,493
Reputation
9,697
Daps
209,140
How far did you get before you stopped? I'm slogging through the css portion right now. I'm working through another textbook atm so this hasnt been getting my full attention.
I think after I finished the CSS section I was done. I'd recommend grabbing the Colt Steele one when they have another $10-15 sale. Much better, in my opinion.
 

GollyImGully

Too many wavy women, gotta log outta IG
Joined
May 4, 2012
Messages
10,520
Reputation
2,324
Daps
34,410
Reppin
Brooklyn
Anybody :mjcry:

Can someone point me in the right direction with something I'm trying to do.

I want to create a script that generates a cisco router configuration file.

The idea is 1 file with all the global variables (this file is called settings for example)....

Code:
def variables():
    global hostName, vpn_key
    hostname = []
    vpn_key = []

The next file (main) will reference the settings variables function and this is the actual file that someone will make their changes to fit the specific device...

Code:
import settings

settings.variables()

def change():
    settings.hostName.append("Cisco7200")
    settings.vpn_key.append("DiplomaticIMMUNITY")

Now the configuration file for cisco devices are set in a specific order. Is it possible to generate a separate text file that references the variables created in settings and passes the changes that were made in main.py ??

For example it could look something like this...

Code:
!
hostname {{hostName}}
!
boot-start-marker
!
logging buffered 24576 informational
vpn key {{vpn_key}}
!
aaa new-model
!
!

and the generated file would become

Code:
!
hostname Cisco7200
!
boot-start-marker
!
logging buffered 24576 informational
vpn key DiplomaticIMMUNITY
!
aaa new-model
!
!
 

kevm3

follower of Jesus
Supporter
Joined
May 2, 2012
Messages
16,292
Reputation
5,551
Daps
83,490

Just define your variables in one file and import the other file in. Don't put the 'global variables' in a function because those variables will be scoped to the function, meaning anything outside that function can't touch the variables inside.

For example: settings.py:
Code:
hostname = 'abc'
vpn_key = 'abasfsfzx'

then import settings.py in and access those variables directly
main.py

Code:
import settings

f = open('configsettings.txt', 'w')
f.writelines(['hostname ' + settings.hostname + '\n',
                 '! \n',          
                'logging buffered 24576 informational \n',
                'vpn key ' + settings.vpn_key + '\n',
                '! \n',
                'aaa new-model \n',
                '! \n'])
f.close()

honestly users should be changing the variables in the settings/config file, not the main file. They should just change the variables in the settings file and run the main file, but never have to look inside it.

Is there a reason you are using an array? Typically those are used only if you need to have multiple values together in a single item.
 
Last edited:

Nobu

Superstar
Supporter
Joined
Mar 2, 2017
Messages
5,773
Reputation
8,515
Daps
62,010
Long time listener, first time caller checking in. I'm a CS sophomore and just landed my first internship paying $7300/month :stylin: I've been practicing Leetcode and reading Glassdoor for company interview questions helped a lot. Reddit cscareerquestions was also a good resource.
 

GollyImGully

Too many wavy women, gotta log outta IG
Joined
May 4, 2012
Messages
10,520
Reputation
2,324
Daps
34,410
Reppin
Brooklyn
Just define your variables in one file and import the other file in. Don't put the 'global variables' in a function because those variables will be scoped to the function, meaning anything outside that function can't touch the variables inside.

For example: settings.py:
Code:
hostname = 'abc'
vpn_key = 'abasfsfzx'

then import settings.py in and access those variables directly
main.py

Code:
import settings

f = open('configsettings.txt', 'w')
f.writelines(['hostname ' + settings.hostname + '\n',
                 '! \n',         
                'logging buffered 24576 informational \n',
                'vpn key ' + settings.vpn_key + '\n',
                '! \n',
                'aaa new-model \n',
                '! \n'])
f.close()

honestly users should be changing the variables in the settings/config file, not the main file. They should just change the variables in the settings file and run the main file, but never have to look inside it.

Is there a reason you are using an array? Typically those are used only if you need to have multiple values together in a single item.
:salute:

Honesly no specific reason for using the array thats just bad coding on my part :russ:

But yeah I want to only change the variables in the settings file. This can do exactly what I want I think I was just overcomplicating things
 

PikaDaDon

Thunderbolt Them Suckers
Joined
Oct 13, 2012
Messages
9,361
Reputation
2,335
Daps
25,316
Reppin
NULL
Long time listener, first time caller checking in. I'm a CS sophomore and just landed my first internship paying $7300/month :stylin: I've been practicing Leetcode and reading Glassdoor for company interview questions helped a lot. Reddit cscareerquestions was also a good resource.

.....wtf. I think I dropped the ball in my life. I was a very good programmer but the job market back in my day was really fukked up. Everything was being outsourced to Indians. I feel like a fukking idiot. Should've stayed with it.

Edit: I don't understand how brehs who follow some 6-week 'bootcamp' training are able to land jobs. It can't be that easy....can it?
 

Matt504

YSL as a gang must end
Joined
Sep 7, 2013
Messages
45,083
Reputation
14,687
Daps
272,825
I know someone who dropped out of Uni (liberal arts major) and self taught for ~6 months every waking hour not at his minimum wage day job and landed a $60k job via recruiter. Also I've heard of reddit users doing bootcamps and getting 6 figure jobs, though I'm not saying it's the norm. I guess what I'm saying is if you hustle your ass off you can get pretty damn far in a year or so. Do a search for 'bootcamp' on that cscareerquestions reddit and you should find lots of discussions.

One of the best guys at my company is completely self taught.

:wow:
 
Top