• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:15
CET 19:15
KST 03:15
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation12Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
Mech is the composition that needs teleportation t RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview [TLMC] Fall/Winter 2025 Ladder Map Rotation TL.net Map Contest #21: Winners
Tourneys
RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? SnOw's ASL S20 Finals Review BW General Discussion Brood War web app to calculate unit interactions
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
PvZ map balance Current Meta Simple Questions, Simple Answers How to stay on top of macro?
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread Clair Obscur - Expedition 33 Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread Artificial Intelligence Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2038 users

The Big Programming Thread - Page 825

Forum Index > General Forum
Post a Reply
Prev 1 823 824 825 826 827 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2017-01-06 22:12:01
January 06 2017 21:25 GMT
#16481
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
January 06 2017 21:57 GMT
#16482
When I'm looking at intern or new hire resumes I look for projects that the person has worked on. Most of the new grads have a senior design project that I'll ask them questions about during the interview and ideally some other work that they were interested in. Having some giant list of languages and frameworks you've seen or worked on is fairly useless in my opinion, but different people look for different things.
I'll always be your shadow and veil your eyes from states of ain soph aur.
Acrofales
Profile Joined August 2010
Spain18117 Posts
January 06 2017 22:08 GMT
#16483
On January 07 2017 02:44 spinesheath wrote:
First of all you should sort your lines by length. There should be a sort-method readily available in Java, you might have to pass it a Comparer of sorts, which converts a line into its length. The result of this step is a sorted list of lines.

Then in the second step, you iterate over the sorted lines. For each line, you check it against all lines, which you do again by iterating over the sorted lines, skipping the one you're currently checking. If you find one that doesn't intersect any line, you return that one as a result. It is the smallest one because it's the first in the sorted list.

There is no recursion here. It's a naive approach, but clean and simple. It's O(n^2). More sophisticated approaches probably would keep the first part, but tweak the second part to use sort of a divide and conquer approach, but that won't be very simple at all. I can imagine O(n log n), but I don't know if it actually is possible.

This approach includes a number of pointless checks, in the worst case 50%. This is because I check against all lines without skipping the pairs already covered. We can avoid that easily by storing the sorted lines in a list, then iterate over the list by index. If we are currently at list[5], we only check against list[6] and beyond:

for(int i = 0; i < list.Count; ++i) {
for(int k = i + 1; k < list.Count; ++k) {
check if list[i] intersects list[k];
}
}
Still is O(n^2) though.

Always ask yourself if you can split your problem into smaller chunks. Sort first, check after. Simple approach first, optimization after.

Also Java or rather the JVM is not well equipped for heavy recursion. Don't avoid recursion at all costs, but if you're doing a lot of work with deep recursion, you probably should try to avoid it.

Why keep a list? You know you've checked intersections with all the lines up to i-1, so just check i+1 forward. This has to go together with roomofmush's optimization of removing intersecting lines from the list, of course. That seems like a pretty efficient way of doing it. Not quite sure how you could optimize further (which is of course Nesserev's cue to show how to make a vast improvement ).
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
January 06 2017 22:36 GMT
#16484
That's what the list is for, so I can do index access. And in the inner for, notice the initialization of k.
If you have a good reason to disagree with the above, please tell me. Thank you.
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
January 07 2017 14:09 GMT
#16485
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

You might rate yourself on your skills on a scale of 1 to either 3, 5 or 10. Also, nobody wants you to know how to program in assembly. I know how to do it and never had to use it for anything professionally. I don't rate my skills in my resume. They are just a comma separated list. I don't even think that people take this stuff seriously.

What matters most is always projects. If you feel like with just a small amount of research I could do most of what there is to do in Java, do something with it. Not just say you're "fluent in java" or whatever the bull crap that is. You're going to be a fresh grad. Projects will be a yes/no question for you, not a "wh-" question (unlike more senior developers). If you have something to show, you're golden.

Also, Low level languages are C and C++. I don't even think your recruiter/boss/manager can program in assembly, even if s/he is a "lead/staff/senior embedded systems developer". They only teach assembly to students so that they have a better idea about what happens under the hood.
"windows bash is a steaming heap of shit" tofucake
RoomOfMush
Profile Joined March 2015
1296 Posts
January 07 2017 15:52 GMT
#16486
On January 07 2017 23:09 Djagulingu wrote:
Show nested quote +
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

You might rate yourself on your skills on a scale of 1 to either 3, 5 or 10. Also, nobody wants you to know how to program in assembly. I know how to do it and never had to use it for anything professionally. I don't rate my skills in my resume. They are just a comma separated list. I don't even think that people take this stuff seriously.

What matters most is always projects. If you feel like with just a small amount of research I could do most of what there is to do in Java, do something with it. Not just say you're "fluent in java" or whatever the bull crap that is. You're going to be a fresh grad. Projects will be a yes/no question for you, not a "wh-" question (unlike more senior developers). If you have something to show, you're golden.

Also, Low level languages are C and C++. I don't even think your recruiter/boss/manager can program in assembly, even if s/he is a "lead/staff/senior embedded systems developer". They only teach assembly to students so that they have a better idea about what happens under the hood.

There are a few select positions where you need to use assembly though. Highly unlikely travis will end up with one of these but perfectly possible. I wouldnt recommend learning it though unless out of curiousity. If you really need it for your job it will probably be something very specific which you will need to learn again anyways.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 07 2017 19:48 GMT
#16487
On January 08 2017 00:52 RoomOfMush wrote:
Show nested quote +
On January 07 2017 23:09 Djagulingu wrote:
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

You might rate yourself on your skills on a scale of 1 to either 3, 5 or 10. Also, nobody wants you to know how to program in assembly. I know how to do it and never had to use it for anything professionally. I don't rate my skills in my resume. They are just a comma separated list. I don't even think that people take this stuff seriously.

What matters most is always projects. If you feel like with just a small amount of research I could do most of what there is to do in Java, do something with it. Not just say you're "fluent in java" or whatever the bull crap that is. You're going to be a fresh grad. Projects will be a yes/no question for you, not a "wh-" question (unlike more senior developers). If you have something to show, you're golden.

Also, Low level languages are C and C++. I don't even think your recruiter/boss/manager can program in assembly, even if s/he is a "lead/staff/senior embedded systems developer". They only teach assembly to students so that they have a better idea about what happens under the hood.

There are a few select positions where you need to use assembly though. Highly unlikely travis will end up with one of these but perfectly possible. I wouldnt recommend learning it though unless out of curiousity. If you really need it for your job it will probably be something very specific which you will need to learn again anyways.


Am I right in guessing that you need it for reverse engineering?
tofucake
Profile Blog Joined October 2009
Hyrule19152 Posts
January 07 2017 20:11 GMT
#16488
Microcontroller programming uses it a lot as well
Liquipediaasante sana squash banana
RoomOfMush
Profile Joined March 2015
1296 Posts
January 07 2017 20:14 GMT
#16489
On January 08 2017 04:48 travis wrote:
Show nested quote +
On January 08 2017 00:52 RoomOfMush wrote:
On January 07 2017 23:09 Djagulingu wrote:
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

You might rate yourself on your skills on a scale of 1 to either 3, 5 or 10. Also, nobody wants you to know how to program in assembly. I know how to do it and never had to use it for anything professionally. I don't rate my skills in my resume. They are just a comma separated list. I don't even think that people take this stuff seriously.

What matters most is always projects. If you feel like with just a small amount of research I could do most of what there is to do in Java, do something with it. Not just say you're "fluent in java" or whatever the bull crap that is. You're going to be a fresh grad. Projects will be a yes/no question for you, not a "wh-" question (unlike more senior developers). If you have something to show, you're golden.

Also, Low level languages are C and C++. I don't even think your recruiter/boss/manager can program in assembly, even if s/he is a "lead/staff/senior embedded systems developer". They only teach assembly to students so that they have a better idea about what happens under the hood.

There are a few select positions where you need to use assembly though. Highly unlikely travis will end up with one of these but perfectly possible. I wouldnt recommend learning it though unless out of curiousity. If you really need it for your job it will probably be something very specific which you will need to learn again anyways.


Am I right in guessing that you need it for reverse engineering?

I dont know how much you would need it. It could certainly be helpful. Most of the work is done by algorithms though.
tofucake
Profile Blog Joined October 2009
Hyrule19152 Posts
January 07 2017 21:00 GMT
#16490
On January 08 2017 05:14 RoomOfMush wrote:
Show nested quote +
On January 08 2017 04:48 travis wrote:
On January 08 2017 00:52 RoomOfMush wrote:
On January 07 2017 23:09 Djagulingu wrote:
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

You might rate yourself on your skills on a scale of 1 to either 3, 5 or 10. Also, nobody wants you to know how to program in assembly. I know how to do it and never had to use it for anything professionally. I don't rate my skills in my resume. They are just a comma separated list. I don't even think that people take this stuff seriously.

What matters most is always projects. If you feel like with just a small amount of research I could do most of what there is to do in Java, do something with it. Not just say you're "fluent in java" or whatever the bull crap that is. You're going to be a fresh grad. Projects will be a yes/no question for you, not a "wh-" question (unlike more senior developers). If you have something to show, you're golden.

Also, Low level languages are C and C++. I don't even think your recruiter/boss/manager can program in assembly, even if s/he is a "lead/staff/senior embedded systems developer". They only teach assembly to students so that they have a better idea about what happens under the hood.

There are a few select positions where you need to use assembly though. Highly unlikely travis will end up with one of these but perfectly possible. I wouldnt recommend learning it though unless out of curiousity. If you really need it for your job it will probably be something very specific which you will need to learn again anyways.


Am I right in guessing that you need it for reverse engineering?

I dont know how much you would need it. It could certainly be helpful. Most of the work is done by algorithms though.
"Algorithms" is a thing that can be done in any language. This statement confuses me.
Liquipediaasante sana squash banana
Mr. Wiggles
Profile Blog Joined August 2010
Canada5894 Posts
January 07 2017 21:22 GMT
#16491
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

On my own resume, I use "Comfortable with:" and "Familiar with:", and then provide a short list of languages. This takes two lines, and that's it. I more or less define comfortable to be that I can sit down and start being productive in the language immediately, while a language I'm familiar with is one I've used before, but would need some time/support to brush up on it again and get back up to speed.

On the other hand, I'm unsure of how closely anyone's even going to look at what languages you put down. If the language is actually important, and isn't something that it's ok to bootstrap as you start, then I'd think they'd be more interested in past professional experience or demonstrable skill through something else like projects.

I'd say it also depends a bit on where you're applying to. There's nothing stopping you from tweaking your resume to highlight different things depending on the company you're trying to work with. I think a good rule of thumb is to also try to highlight "soft" skills as well, to show that you've worked well in the past as part of a team, have leadership experience, etc.
you gotta dance
Acrofales
Profile Joined August 2010
Spain18117 Posts
January 07 2017 22:54 GMT
#16492
On January 08 2017 06:00 tofucake wrote:
Show nested quote +
On January 08 2017 05:14 RoomOfMush wrote:
On January 08 2017 04:48 travis wrote:
On January 08 2017 00:52 RoomOfMush wrote:
On January 07 2017 23:09 Djagulingu wrote:
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

You might rate yourself on your skills on a scale of 1 to either 3, 5 or 10. Also, nobody wants you to know how to program in assembly. I know how to do it and never had to use it for anything professionally. I don't rate my skills in my resume. They are just a comma separated list. I don't even think that people take this stuff seriously.

What matters most is always projects. If you feel like with just a small amount of research I could do most of what there is to do in Java, do something with it. Not just say you're "fluent in java" or whatever the bull crap that is. You're going to be a fresh grad. Projects will be a yes/no question for you, not a "wh-" question (unlike more senior developers). If you have something to show, you're golden.

Also, Low level languages are C and C++. I don't even think your recruiter/boss/manager can program in assembly, even if s/he is a "lead/staff/senior embedded systems developer". They only teach assembly to students so that they have a better idea about what happens under the hood.

There are a few select positions where you need to use assembly though. Highly unlikely travis will end up with one of these but perfectly possible. I wouldnt recommend learning it though unless out of curiousity. If you really need it for your job it will probably be something very specific which you will need to learn again anyways.


Am I right in guessing that you need it for reverse engineering?

I dont know how much you would need it. It could certainly be helpful. Most of the work is done by algorithms though.
"Algorithms" is a thing that can be done in any language. This statement confuses me.

Presumably most of the lower level work in reverse engineering is automated? I wouln't know, because I know next to nothing about reverse engineering. When I was still interested in that kinda stuff, I mostly just tried to decompile stuff, took one look at the gigantic mess I was left with and gave up.
RoomOfMush
Profile Joined March 2015
1296 Posts
January 08 2017 00:37 GMT
#16493
On January 08 2017 06:00 tofucake wrote:
Show nested quote +
On January 08 2017 05:14 RoomOfMush wrote:
On January 08 2017 04:48 travis wrote:
On January 08 2017 00:52 RoomOfMush wrote:
On January 07 2017 23:09 Djagulingu wrote:
On January 07 2017 06:25 travis wrote:
Okay I've got a question for the professionals out there

on my resume, what sort of terminology should I use to explain how familiar I am with languages/systems?

For example, I've been programming almost exclusively in Java, have finished 2 rigorous classes on it, and feel like with just a small amount of research I could do most of what there is to do in Java. But there's still lots to learn, of course.
Would it be reasonable to say that I am "fluent in java" on my resume?

Let's say I finish a large introductory text on python and learn all the concepts, and I am now capable of writing basic python programs. could I say that I am "familiar" with python?

etc etc

thanks



also, I am filling out an online application for an internship and they ask me "are you familiar with high and low level languages". I feel like the answer is obviously "no" since I don't know any low level languages. I do, however, have a basic idea of how assembly works.. But they are wanting me to actually know how to program in assembly / something comparable?

You might rate yourself on your skills on a scale of 1 to either 3, 5 or 10. Also, nobody wants you to know how to program in assembly. I know how to do it and never had to use it for anything professionally. I don't rate my skills in my resume. They are just a comma separated list. I don't even think that people take this stuff seriously.

What matters most is always projects. If you feel like with just a small amount of research I could do most of what there is to do in Java, do something with it. Not just say you're "fluent in java" or whatever the bull crap that is. You're going to be a fresh grad. Projects will be a yes/no question for you, not a "wh-" question (unlike more senior developers). If you have something to show, you're golden.

Also, Low level languages are C and C++. I don't even think your recruiter/boss/manager can program in assembly, even if s/he is a "lead/staff/senior embedded systems developer". They only teach assembly to students so that they have a better idea about what happens under the hood.

There are a few select positions where you need to use assembly though. Highly unlikely travis will end up with one of these but perfectly possible. I wouldnt recommend learning it though unless out of curiousity. If you really need it for your job it will probably be something very specific which you will need to learn again anyways.


Am I right in guessing that you need it for reverse engineering?

I dont know how much you would need it. It could certainly be helpful. Most of the work is done by algorithms though.
"Algorithms" is a thing that can be done in any language. This statement confuses me.

When you compile things you just transform information from one model to "roughly equal" information in a different model. The process is usually not perfect though and some information is lost during the transformation. Reverse engineering is the process of reversing compilation. Transforming from the second model back to the first is difficult though because of that lost information I was talking about earlier.

However, there is a lot of information which can be "guessed" or deducted through statistical analysis, heuristics or simple brute force computational power. Todays computers are strong enough to reverse the process of compilation fairly well. You will never get an identical product (because names will be missing for most languages since they are not part of the compilation output) but you get something workable. Assembly is then no longer necessary because the output can be C or C++ or any other language you like.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 09 2017 15:33 GMT
#16494
I am learning python right now and I figured it would be easiest to just ask this here

If I make a list, listOne

and I say

listTwo = listOne

did I just assign a reference to listOne or did I copy the values?
Acrofales
Profile Joined August 2010
Spain18117 Posts
January 09 2017 15:43 GMT
#16495
Reference, but it's easy enough to test, and in general, get used to figuring out such stuff

Try:


listOne = [1, 2, 3]
listTwo = listOne
listTwo[1] = "foo"
print(listOne)

Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2017-01-09 16:02:47
January 09 2017 15:53 GMT
#16496
yeah I guess I could have just tested it, which I kind of did but not in a proper context

for the life of me I can't figure out what this program is doing

I am doing this little online coding game for fun and the question is to take a list of elements and return a list of non unique elements. for example [5, 5, 3, 2, 2] would return [5,5,2,2]

my code



def checkio(data):
#Your code here
#It's main function. Don't remove this function
#It's used for auto-testing and must return a result for check.

newlist = []

for k in data:
newlist.append(k)

templist = []

for n in newlist:
if not n in templist:
templist.append(n)
newlist.remove(n)

for j in data:
if not j in newlist:
data.remove(j)



return data




I'd expect this to work, and for some situations it does seem to, but when the test passes [1, 2, 3, 1, 3] I seem to return 1, 2, 3, 1, 3 back. which doesn't make sense to me


my thinking is that I make an empty list
make a copy of data to play with

take 1 of each element in my copy, put them in my empty list and remove them from my copy

which should leave me with

data = [1, 2, 3, 1, 3]
templist = [1, 2, 3]
newlist = [1, 3]

then for each element in data, if it isn't in newlist, remove it

which should leave me with data = [1, 3, 1, 3]

but it doesn't.

what am I doing wrong?


does the problem actually have something to do with concurrent modification?





disclaimer: I know there's probably methods to use and other ways that are probably easier. I'll find those out as I go along. Though if you want to tell me feel free



edit 2. yay I solved it, I did this:


def checkio(data):
#Your code here
#It's main function. Don't remove this function
#It's used for auto-testing and must return a result for check.

copyList = []

for j in data:
copyList.append(j)

for n in copyList:
if copyList.count(n) == 1:
data.remove(n)



return data


and it looks like concurrent modification does mess it up so I can't modify a list as I iterate. is that something that tends to happen in all languages?
Acrofales
Profile Joined August 2010
Spain18117 Posts
January 09 2017 16:22 GMT
#16497
On January 10 2017 00:53 travis wrote:
yeah I guess I could have just tested it, which I kind of did but not in a proper context

for the life of me I can't figure out what this program is doing

I am doing this little online coding game for fun and the question is to take a list of elements and return a list of non unique elements. for example [5, 5, 3, 2, 2] would return [5,5,2,2]

my code



def checkio(data):
#Your code here
#It's main function. Don't remove this function
#It's used for auto-testing and must return a result for check.

newlist = []

for k in data:
newlist.append(k)

templist = []

for n in newlist:
if not n in templist:
templist.append(n)
newlist.remove(n)

for j in data:
if not j in newlist:
data.remove(j)



return data




I'd expect this to work, and for some situations it does seem to, but when the test passes [1, 2, 3, 1, 3] I seem to return 1, 2, 3, 1, 3 back. which doesn't make sense to me


my thinking is that I make an empty list
make a copy of data to play with

take 1 of each element in my copy, put them in my empty list and remove them from my copy

which should leave me with

data = [1, 2, 3, 1, 3]
templist = [1, 2, 3]
newlist = [1, 3]

then for each element in data, if it isn't in newlist, remove it

which should leave me with data = [1, 3, 1, 3]

but it doesn't.

what am I doing wrong?


does the problem actually have something to do with concurrent modification?





disclaimer: I know there's probably methods to use and other ways that are probably easier. I'll find those out as I go along. Though if you want to tell me feel free



edit 2. yay I solved it, I did this:


def checkio(data):
#Your code here
#It's main function. Don't remove this function
#It's used for auto-testing and must return a result for check.

copyList = []

for j in data:
copyList.append(j)

for n in copyList:
if copyList.count(n) == 1:
data.remove(n)



return data


and it looks like concurrent modification does mess it up so I can't modify a list as I iterate. is that something that tends to happen in all languages?


Most languages. It's something you should avoid. Java outright doesn't allow it, hence why you haven't seen it before. The only situations in which it is okay to add/remove stuff in a list you are looping through if you loop through with a regular for loop rather than an iterator, and ensure your for loop ends at the end of the list despite your modifications. I *think* that with the way Python works, it is okay to remove elements that your iterator has already passed, but make extra double sure that that is actually true, and even then it's still best practice to not do that kind of thing, because it's just way too easy to send things going screwy when you decide to modify your code to work slightly differently.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
January 09 2017 16:42 GMT
#16498
Most of the time, you're much better off constructing a new list with all the good stuff instead of removing the bad stuff from the original list.
If you have a good reason to disagree with the above, please tell me. Thank you.
RoomOfMush
Profile Joined March 2015
1296 Posts
Last Edited: 2017-01-09 18:11:33
January 09 2017 18:10 GMT
#16499
On January 10 2017 00:53 travis wrote:
and it looks like concurrent modification does mess it up so I can't modify a list as I iterate. is that something that tends to happen in all languages?

Whether concurrent modification is supported by a particular data structure depends on the implementation. If we take java as an example: The ArrayList and LinkedList do not support concurrent modification. This has technical reasons. The datastructures could be corrupted by concurrent modification. Instead of building in safeguards which make concurrent modification work they decided to disallow it. The safeguards would cost overhead of course and the devs argued that would not be a smart solution. Both of these data structures allow concurrent modification if you use an Iterator-Object though.

The CopyOnWriteArrayList on the other hand does allow concurrent modification in java. By design there is no possibility of corruption.


In other languages it is probably the same way. If concurrent modification can only be avoided at significant costs it is not supported. After all: the implementations of LinkedLists and ArrayLists are probably very similar in most languages.

Do as spinesheath said and use a new list. You could also save only the changes in the new list and then have them carried out after the iteration.
Hanh
Profile Joined June 2016
146 Posts
January 10 2017 05:00 GMT
#16500
You could avoid manipulating lists yourself and hence avoid side effects altogether.


from itertools import groupby

a = [5, 5, 3, 2, 2]

counts = {k:len(list(v)) for k, v in groupby(sorted(a))}
b = [x for x in a if counts[x] > 1]
print(b)


The complexity is lower too.
Prev 1 823 824 825 826 827 1032 Next
Please log in or register to reply.
Live Events Refresh
IPSL
17:00
Ro16 Group D
ZZZero vs rasowy
Napoleon vs KameZerg
Liquipedia
PSISTORM Gaming Misc
15:55
FSL teamleague CNvsASH, ASHvRR
Freeedom33
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Railgan 184
IndyStarCraft 110
BRAT_OK 47
MindelVK 29
EmSc Tv 13
StarCraft: Brood War
Britney 25290
Calm 2532
Shuttle 775
Stork 341
firebathero 288
Dewaltoss 113
Barracks 68
Mong 61
Rock 43
Shine 18
Dota 2
Gorgc5830
qojqva1713
Dendi963
Counter-Strike
ScreaM1084
byalli378
Heroes of the Storm
Khaldor535
Liquid`Hasu237
Other Games
Beastyqt573
DeMusliM291
Hui .222
Fuzer 215
Lowko213
Trikslyr46
CadenZie18
Organizations
Dota 2
PGL Dota 2 - Main Stream8971
Other Games
EGCTV625
gamesdonequick359
StarCraft 2
angryscii 24
EmSc Tv 13
EmSc2Tv 13
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• HappyZerGling 71
• HeavenSC 61
• printf 5
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• Kozan
• IndyKCrew
StarCraft: Brood War
• Airneanach42
• HerbMon 6
• Michael_bg 3
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2455
• WagamamaTV359
• Ler79
League of Legends
• Nemesis2825
Other Games
• imaqtpie1125
• Shiphtur313
Upcoming Events
OSC
45m
davetesta15
BSL 21
1h 45m
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
15h 45m
RSL Revival
15h 45m
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
17h 45m
Cure vs herO
Reynor vs TBD
WardiTV Korean Royale
17h 45m
BSL 21
1d 1h
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
1d 1h
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
1d 4h
Wardi Open
1d 17h
[ Show More ]
Monday Night Weeklies
1d 22h
WardiTV Korean Royale
2 days
BSL: GosuLeague
3 days
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
BSL: GosuLeague
5 days
RSL Revival
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
WardiTV Korean Royale
6 days
IPSL
6 days
Julia vs Artosis
JDConan vs DragOn
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.